Class WebPathNode
- java.lang.Object
-
- org.dreambot.api.methods.walking.pathfinding.impl.web.WebPathNode
-
- All Implemented Interfaces:
java.lang.Comparable<WebPathNode>
public class WebPathNode extends java.lang.Object implements java.lang.Comparable<WebPathNode>
-
-
Constructor Summary
Constructors Constructor Description WebPathNode(WebPathNode owner, AbstractWebNode current)WebPathNode(WebPathNode owner, AbstractWebNode destination, AbstractWebNode current)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)intcompareTo(WebPathNode o)booleanequals(java.lang.Object obj)java.util.List<WebPathNode>getConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)doublegetCost()AbstractWebNodegetCurrent()intgetDepth()WebPathNodegetOwner()intgetX()intgetY()intgetZ()inthashCode()booleanisValid()java.lang.StringtoString()voidupdateCost()
-
-
-
Constructor Detail
-
WebPathNode
@Deprecated public WebPathNode(WebPathNode owner, AbstractWebNode destination, AbstractWebNode current)
Deprecated.
-
WebPathNode
public WebPathNode(WebPathNode owner, AbstractWebNode current)
-
-
Method Detail
-
updateCost
public void updateCost()
-
getConnections
public java.util.List<WebPathNode> getConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
-
addConnections
public void addConnections(java.util.Queue<WebPathNode> open, java.util.Set<WebPathNode> closed)
-
getX
public int getX()
-
getY
public int getY()
-
getZ
public int getZ()
-
compareTo
public int compareTo(WebPathNode o)
- Specified by:
compareToin interfacejava.lang.Comparable<WebPathNode>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isValid
public boolean isValid()
-
getCurrent
public AbstractWebNode getCurrent()
-
getOwner
public WebPathNode getOwner()
-
getDepth
public int getDepth()
-
getCost
public double getCost()
-
-