-
Notifications
You must be signed in to change notification settings - Fork 2
NodeData
-
public NodeData()
-
public NodeData(int key)
-
public NodeData(node_data other)
-
public NodeData(NodeData other)
-
public NodeData(int key,geo_location location)
toString public String toString() - Display a vertex
toString in class java.lang.Object Returns: vertex display
public String toJSON()
public int getKey() Returns the key associated with this node. Specified by: getKey in interface node_data Returns:
getLocation public geo_location getLocation() Returns the location of this node, if none return null. Specified by: getLocation in interface node_data Returns:
setLocation public void setLocation(geo_location p) Allows changing this node's location. Specified by: setLocation in interface node_data Parameters: p - - new new location (position) of this node.
public double getWeight() Returns the weight associated with this node. Specified by: getWeight in interface node_data Returns:
public void setWeight(double weight) Allows changing this node's weight. Specified by: setWeight in interface node_data Parameters: weight - - the new weight
public java.lang.String getInfo() Returns the remark (meta data) associated with this node. Specified by:
Returns:
public void setInfo(java.lang.String s) Allows changing the remark (meta data) associated with this node. Specified by: setInfo in interface node_data Parameters: s -
public int getTag() Temporal data (aka color: e,g, white, gray, black) which can be used be algorithms Specified by: getTag in interface node_data Returns:
public void setTag(int t) Allows setting the "tag" value for temporal marking an node - common practice for marking by algorithms. Specified by: setTag in interface node_data Parameters: t - - the new value of the tag
public double getSinker()
public void setSinker(double sinker)
public int hashCode() Overrides: hashCode in class java.lang.Object
public boolean equals(java.lang.Object o) Overrides: equals in class java.lang.Object