|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.samcrow.Link
public class Link
Field Summary | |
---|---|
static double |
DEFAULT_SPEED
|
private double |
distance
|
private Node |
end
|
private double |
speed
|
private Node |
start
|
Constructor Summary | |
---|---|
Link(Node node1,
Node node2,
double inSpeed)
|
Method Summary | |
---|---|
double |
distance()
Get the distance of this link |
Node |
endNode()
Get the start node of this link |
boolean |
equals(java.lang.Object obj)
|
org.lekan.graphics.SGObject |
getDrawObject()
Get the SGObject that should be drawn to represent this link |
org.lekan.graphics.SGText |
getLabel()
Get the SGText SGObject to display the label for this Link |
int |
hashCode()
|
double |
speed()
Get the speed of this link |
Node |
startNode()
Get the start node of this link |
double |
time()
Get the time in seconds taken to traverse this link |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final double DEFAULT_SPEED
private Node start
private Node end
private double distance
private double speed
Constructor Detail |
---|
public Link(Node node1, Node node2, double inSpeed)
Method Detail |
---|
public double speed()
public double time()
public double distance()
public Node startNode()
public Node endNode()
public org.lekan.graphics.SGObject getDrawObject()
public org.lekan.graphics.SGText getLabel()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |