|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgraph.Edge
| Constructor Summary | |
Edge(Node src,
Node dst)
Initializes the Edge with given source and destination nodes. |
|
Edge(java.lang.String label,
Node src,
Node dst)
Initializes the Edge with given label and source and destination nodes. |
|
| Method Summary | |
int |
compareTo(java.lang.Object o)
|
Node |
dest()
Returns the destination node of the edge. |
java.lang.String |
get(java.lang.String property)
Returns the value for the given property of the edge |
double |
getDouble(java.lang.String property)
Returns the value for the given property of the edge |
int |
getInt(java.lang.String property)
Returns the value for the given property of the edge |
java.lang.String |
label()
Returns the label of the edge |
void |
set(java.lang.String property,
java.lang.String value)
Sets the given property of the edge to given value |
void |
setDouble(java.lang.String property,
double value)
Sets the given property of the edge to given value |
void |
setInt(java.lang.String property,
int value)
Sets the given property of the edge to given value |
Node |
source()
Returns the source node of the edge. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Edge(java.lang.String label,
Node src,
Node dst)
label - the label of the edgesrc - source Node of the edgedst - destination Node of the edge
public Edge(Node src,
Node dst)
src - source Node of the edgedst - destination Node of the edge| Method Detail |
public Node source()
public Node dest()
public int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparablepublic java.lang.String label()
public void set(java.lang.String property,
java.lang.String value)
property - a String containing property for which the value is setvalue - a String containing the new value for the property
public void setInt(java.lang.String property,
int value)
property - a String containing property for which the value is setvalue - an integer containing the new value for the property
public void setDouble(java.lang.String property,
double value)
property - a String containing property for which the value is setvalue - a double containing the new value for the propertypublic java.lang.String get(java.lang.String property)
property - a String containing the requested property
public int getInt(java.lang.String property)
throws java.lang.NumberFormatException
property - a String containing the requested property
java.lang.NumberFormatException
public double getDouble(java.lang.String property)
throws java.lang.NumberFormatException
property - a String containing the requested property
java.lang.NumberFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||