|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A connection between two nodes. It can be either directed - allowing messages to pass only in one direction - or undirected. It has a graphical representation. A connection has some properties and may be not working.
Line
Field Summary | |
static String |
DIRECTED_PROPERTY_NAME
the name of the property that determines whether the connection is directed |
static String |
SPEED_PROPERTY_NAME
the name of the property that determines the speed of the connection |
Fields inherited from interface fdda.model.WorkingPart |
WORKING_PROPERTY_NAME |
Method Summary | |
Node |
getEndNode()
Returns the node where the connection ends. |
Line |
getGraphicalRepresentation()
Returns the graphical representation of the connection |
int |
getNr()
Returns the internal number of the connection, which is unique. |
double |
getSpeed()
Returns the speed of the connection. |
Node |
getStartNode()
Returns the node where the connection starts. |
boolean |
isDirected()
Returns whether the connection is directed |
void |
setDirected(boolean directed)
Specifies whether the connection is directed. |
Methods inherited from interface fdda.model.PropertyHolder |
addProperty, addPropertyListener, changeProperty, firePropertyChanged, getProperties, getProperty, removeProperty, removePropertyListener |
Methods inherited from interface fdda.model.WorkingPart |
isWorking, setWorking |
Field Detail |
public static final String DIRECTED_PROPERTY_NAME
public static final String SPEED_PROPERTY_NAME
Method Detail |
public Node getStartNode()
public Node getEndNode()
public Line getGraphicalRepresentation()
public boolean isDirected()
public void setDirected(boolean directed)
directed
- whether the connection shall be directedpublic int getNr()
public double getSpeed()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |