public class BiSearchNode extends Object implements SearchNode
SearchNode
which can maintain both a from-start and from-goal search state.Modifier and Type | Class and Description |
---|---|
static class |
BiSearchNode.State |
Constructor and Description |
---|
BiSearchNode() |
BiSearchNode(int x,
int y,
int z) |
BiSearchNode(int x,
int y,
int z,
double fFromStart,
double fFromGoal,
double gFromStart,
double gFromGoal,
BiSearchNode predecessorFromStart,
BiSearchNode predecessorFromGoal) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
double |
getF(boolean fromStart) |
double |
getFFromGoal() |
double |
getFFromStart() |
double |
getG(boolean fromStart) |
double |
getGFromGoal() |
double |
getGFromStart() |
org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> |
getHeapHandle(boolean fromStart) |
org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> |
getHeapHandleFromGoal() |
org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> |
getHeapHandleFromStart() |
BiSearchNode |
getPredecessorFromGoal() |
BiSearchNode |
getPredecessorFromStart() |
BiSearchNode.State |
getState(boolean fromStart) |
BiSearchNode.State |
getStateFromGoal() |
BiSearchNode.State |
getStateFromStart() |
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
void |
heapDecreaseKey(boolean fromStart) |
void |
heapInsert(org.jheaps.AddressableHeap<BiSearchNode,Void> heap,
boolean fromStart) |
void |
setFFromGoal(double fFromGoal) |
void |
setFFromStart(double fFromStart) |
void |
setFrom(double g,
double f,
BiSearchNode p,
boolean fromStart) |
void |
setFromGoal(double gFromGoal,
double fFromGoal,
BiSearchNode predecessorFromGoal) |
void |
setFromStart(double gFromStart,
double fFromStart,
BiSearchNode predecessorFromStart) |
void |
setGFromGoal(double gFromGoal) |
void |
setGFromStart(double gFromStart) |
void |
setHeapHandle(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> handle,
boolean fromStart) |
void |
setHeapHandleFromGoal(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> heapHandleFromGoal) |
void |
setHeapHandleFromStart(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> heapHandleFromStart) |
void |
setPosition(int x,
int y,
int z) |
void |
setPredecessorFromGoal(BiSearchNode predecessorFromGoal) |
void |
setPredecessorFromStart(BiSearchNode predecessorFromStart) |
void |
setState(BiSearchNode.State state,
boolean fromStart) |
void |
setStateFromGoal(BiSearchNode.State stateFromGoal) |
void |
setStateFromStart(BiSearchNode.State stateFromStart) |
void |
setX(int x) |
void |
setY(int y) |
void |
setZ(int z) |
public BiSearchNode()
public BiSearchNode(int x, int y, int z)
public BiSearchNode(int x, int y, int z, double fFromStart, double fFromGoal, double gFromStart, double gFromGoal, BiSearchNode predecessorFromStart, BiSearchNode predecessorFromGoal)
public void setPosition(int x, int y, int z)
public void setFrom(double g, double f, BiSearchNode p, boolean fromStart)
public void setFromStart(double gFromStart, double fFromStart, BiSearchNode predecessorFromStart)
public void setFromGoal(double gFromGoal, double fFromGoal, BiSearchNode predecessorFromGoal)
public void heapInsert(org.jheaps.AddressableHeap<BiSearchNode,Void> heap, boolean fromStart)
public void heapDecreaseKey(boolean fromStart)
public BiSearchNode.State getStateFromStart()
public BiSearchNode.State getStateFromGoal()
public BiSearchNode.State getState(boolean fromStart)
public void setState(BiSearchNode.State state, boolean fromStart)
public void setStateFromStart(BiSearchNode.State stateFromStart)
public void setStateFromGoal(BiSearchNode.State stateFromGoal)
public void setX(int x)
public void setY(int y)
public void setZ(int z)
public void setGFromStart(double gFromStart)
public void setGFromGoal(double gFromGoal)
public void setFFromStart(double fFromStart)
public void setFFromGoal(double fFromGoal)
public void setPredecessorFromStart(BiSearchNode predecessorFromStart)
public void setPredecessorFromGoal(BiSearchNode predecessorFromGoal)
public void setHeapHandle(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> handle, boolean fromStart)
public void setHeapHandleFromStart(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> heapHandleFromStart)
public void setHeapHandleFromGoal(org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> heapHandleFromGoal)
public double getG(boolean fromStart)
public double getGFromStart()
public double getGFromGoal()
public double getF(boolean fromStart)
public double getFFromStart()
public double getFFromGoal()
public BiSearchNode getPredecessorFromStart()
public BiSearchNode getPredecessorFromGoal()
public org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> getHeapHandle(boolean fromStart)
public org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> getHeapHandleFromStart()
public org.jheaps.AddressableHeap.Handle<BiSearchNode,Void> getHeapHandleFromGoal()
public int getX()
getX
in interface SearchNode
public int getY()
getY
in interface SearchNode
public int getZ()
getZ
in interface SearchNode
Copyright © 2015–2021 Fiji. All rights reserved.