NodeData - meytar14/ex2 GitHub Wiki
NodeData
Constructor:
public NodeData(int key,GeoLocation GL,double weight,String info, int tag)
Methods:
getInfo()- Returns the remark (meta gameClient.data) associated with this node.
getKey()- Returns the key (id) associated with this node.
getLocation()- Returns the location of this node, if none return null.
getTag()- Temporal gameClient.data (aka color: e,g, white, gray, black) which can be used be algorithms
getWeight()- Returns the weight associated with this node.
setInfo(java.lang.String s)- Allows changing the remark (meta gameClient.data) associated with this node. setLocation(geo_location p)- Allows changing this node's location. setTag(int t)- Allows setting the "tag" value for temporal marking an node - common practice for marking by algorithms. setWeight(double w)- Allows changing this node's weight.