public class DefaultSearchNode extends Object implements SearchNode, Comparable<DefaultSearchNode>
Modifier and Type | Field and Description |
---|---|
double |
f |
double |
g |
double |
h |
org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> |
heapHandle |
DefaultSearchNode |
predecessor |
byte |
searchStatus |
int |
x |
int |
y |
int |
z |
Constructor and Description |
---|
DefaultSearchNode() |
DefaultSearchNode(int x,
int y,
int z,
double g,
double h,
DefaultSearchNode predecessor,
byte searchStatus) |
Modifier and Type | Method and Description |
---|---|
Path |
asPath(double x_spacing,
double y_spacing,
double z_spacing,
String spacing_units) |
Path |
asPathReversed(double x_spacing,
double y_spacing,
double z_spacing,
String spacing_units) |
int |
compareTo(DefaultSearchNode o) |
boolean |
equals(Object o) |
org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> |
getHandle() |
DefaultSearchNode |
getPredecessor() |
int |
getX() |
int |
getY() |
int |
getZ() |
int |
hashCode() |
void |
setFrom(DefaultSearchNode another) |
void |
setHandle(org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> handle) |
void |
setPredecessor(DefaultSearchNode p) |
String |
toString() |
public int x
public int y
public int z
public org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> heapHandle
public double g
public double h
public double f
public DefaultSearchNode predecessor
public byte searchStatus
public DefaultSearchNode()
public DefaultSearchNode(int x, int y, int z, double g, double h, DefaultSearchNode predecessor, byte searchStatus)
public DefaultSearchNode getPredecessor()
public void setPredecessor(DefaultSearchNode p)
public org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> getHandle()
public void setHandle(org.jheaps.AddressableHeap.Handle<DefaultSearchNode,Void> handle)
public int getX()
getX
in interface SearchNode
public int getY()
getY
in interface SearchNode
public int getZ()
getZ
in interface SearchNode
public void setFrom(DefaultSearchNode another)
public int compareTo(DefaultSearchNode o)
compareTo
in interface Comparable<DefaultSearchNode>
public Path asPath(double x_spacing, double y_spacing, double z_spacing, String spacing_units)
Copyright © 2015–2021 Fiji. All rights reserved.