uk.ac.ed.inf.sdp2012.group7.strategy.astar
Class Node

java.lang.Object
  extended by java.awt.geom.Point2D
      extended by java.awt.Point
          extended by uk.ac.ed.inf.sdp2012.group7.strategy.astar.Node
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<Node>

public class Node
extends java.awt.Point
implements java.lang.Comparable<Node>

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.awt.geom.Point2D
java.awt.geom.Point2D.Double, java.awt.geom.Point2D.Float
 
Field Summary
 
Fields inherited from class java.awt.Point
x, y
 
Constructor Summary
Node(int x, int y)
           
Node(java.awt.Point point)
           
Node(java.awt.Point point, int obstacleCost)
           
 
Method Summary
 int compareTo(Node o)
           
 double getfCost()
           
 double getgCost()
           
 double gethCost()
           
 double getObstacleCost()
           
 Node getParent()
           
 int hashCode()
           
 boolean isBall()
           
 boolean isNavPoint()
           
 boolean isOpposition()
           
 boolean isOurGoalCentre()
           
 boolean isPath()
           
 boolean isStart()
           
 boolean isTarget()
           
 boolean isTheirGoalCentre()
           
 void setBall(boolean ball)
           
 void setfCost()
           
 void setgCost(double gCost)
           
 void sethCost(double hcost)
           
 void setNavPoint(boolean isNavPoint)
           
 void setObstacleCost(double obstacleCost)
           
 void setOpposition(boolean opposition)
           
 void setOurGoalCentre(boolean isOurGoalCentre)
           
 void setParent(Node parent)
           
 void setPath(boolean isPath)
           
 void setStart(boolean start)
           
 void setTarget(boolean isTarget)
           
 void setTheirGoalCentre(boolean isTheirGoalCentre)
           
 java.lang.String toString()
           
 
Methods inherited from class java.awt.Point
equals, getLocation, getX, getY, move, setLocation, setLocation, setLocation, translate
 
Methods inherited from class java.awt.geom.Point2D
clone, distance, distance, distance, distanceSq, distanceSq, distanceSq, setLocation
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Node

public Node(java.awt.Point point,
            int obstacleCost)

Node

public Node(java.awt.Point point)

Node

public Node(int x,
            int y)
Method Detail

compareTo

public int compareTo(Node o)
Specified by:
compareTo in interface java.lang.Comparable<Node>

hashCode

public int hashCode()
Overrides:
hashCode in class java.awt.geom.Point2D

getfCost

public double getfCost()

setfCost

public void setfCost()

getgCost

public double getgCost()

setgCost

public void setgCost(double gCost)

gethCost

public double gethCost()

sethCost

public void sethCost(double hcost)

isOpposition

public boolean isOpposition()

setOpposition

public void setOpposition(boolean opposition)

isBall

public boolean isBall()

setBall

public void setBall(boolean ball)

isTarget

public boolean isTarget()

setTarget

public void setTarget(boolean isTarget)

getObstacleCost

public double getObstacleCost()

setObstacleCost

public void setObstacleCost(double obstacleCost)

isStart

public boolean isStart()

setStart

public void setStart(boolean start)

setParent

public void setParent(Node parent)

getParent

public Node getParent()

toString

public java.lang.String toString()
Overrides:
toString in class java.awt.Point

isPath

public boolean isPath()

setPath

public void setPath(boolean isPath)

isNavPoint

public boolean isNavPoint()

setNavPoint

public void setNavPoint(boolean isNavPoint)

isTheirGoalCentre

public boolean isTheirGoalCentre()

setTheirGoalCentre

public void setTheirGoalCentre(boolean isTheirGoalCentre)

isOurGoalCentre

public boolean isOurGoalCentre()

setOurGoalCentre

public void setOurGoalCentre(boolean isOurGoalCentre)