|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jscience.architecture.traffic.tools.EdgeNodeTool
public class EdgeNodeTool
Tool to set spawning and destination frequencies. A little HOW-TO: - Open infrastructure in GLDsim. - Select 'Edge configuration' tool. - Click on an EdgeNode to select it. - Right-click anywhere on the view to deselect. - Select a roaduser type from the dropdown box in the toolbar if you like. - To change spawning frequency (for currently selected roaduser type): - Left-click on currently selected EdgeNode (with the magenta rectangle around it). - Hold the mousebutton and drag left to decrease, right to increase the spawning frequency. - To change destination frequencies (for currently selected roaduser type): - When an EdgeNode is selected, you can change the chance for each other EdgeNode that a newly spawned Roaduser will go there. - Left-click on the EdgeNode you want to change the frequency for. - Hold the mousebutton and drag left to decrease, right to increase the destination frequency. // This really works a lot easier than any dialog I could think of. :) //
| Nested Class Summary | |
|---|---|
protected class |
EdgeNodeTool.RoaduserPanel
Panel containing a dropdown box for all concrete Roaduser types. |
| Nested classes/interfaces inherited from interface org.jscience.architecture.traffic.tools.Tool |
|---|
Tool.Mask |
| Constructor Summary | |
|---|---|
EdgeNodeTool(Controller c)
Creates a new EdgeNodeTool. |
|
| Method Summary | |
|---|---|
protected EdgeNode |
findEdgeNode(java.awt.Point p)
Returns the EdgeNode at given Point. |
protected Node |
findNode(java.awt.Point p)
Returns the EdgeNode at given Point. |
java.awt.Panel |
getPanel()
DOCUMENT ME! |
void |
mouseMoved(View view,
java.awt.Point p,
Tool.Mask mask)
DOCUMENT ME! |
void |
mousePressed(View view,
java.awt.Point p,
Tool.Mask mask)
DOCUMENT ME! |
void |
mouseReleased(View view,
java.awt.Point p,
Tool.Mask mask)
DOCUMENT ME! |
int |
overlayType()
DOCUMENT ME! |
void |
paint(java.awt.Graphics g)
DOCUMENT ME! |
void |
setEdgeNodes(EdgeNode[] _edges)
Sets the current set of EdgeNodes. |
protected void |
setRuType(java.lang.String sel)
Sets the current roaduser type. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeNodeTool(Controller c)
c - The SimController this tool is used in.| Method Detail |
|---|
public void setEdgeNodes(EdgeNode[] _edges)
_edges - DOCUMENT ME!protected void setRuType(java.lang.String sel)
sel - Description of the roaduser type to set as current.
public void mousePressed(View view,
java.awt.Point p,
Tool.Mask mask)
mousePressed in interface Toolview - DOCUMENT ME!p - DOCUMENT ME!mask - DOCUMENT ME!protected EdgeNode findEdgeNode(java.awt.Point p)
p - DOCUMENT ME!
protected Node findNode(java.awt.Point p)
p - DOCUMENT ME!
public void mouseReleased(View view,
java.awt.Point p,
Tool.Mask mask)
mouseReleased in interface Toolview - DOCUMENT ME!p - DOCUMENT ME!mask - DOCUMENT ME!
public void mouseMoved(View view,
java.awt.Point p,
Tool.Mask mask)
mouseMoved in interface Toolview - DOCUMENT ME!p - DOCUMENT ME!mask - DOCUMENT ME!public int overlayType()
overlayType in interface Overlay
public void paint(java.awt.Graphics g)
throws TrafficException
paint in interface Overlayg - DOCUMENT ME!
TrafficException - DOCUMENT ME!public java.awt.Panel getPanel()
getPanel in interface Tool
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||