public class CellEntrance extends Object
partition cell has been
entered during a path search.
The path that was followed in order to reach a given partition cell can be reconstructed by
traversing all previous entrances. The enter interval and enter direction
determine how the partition cell was entered.
| Constructor and Description |
|---|
CellEntrance(CellEntrance other)
Creates a new
CellEntrance instance that is a copy of a given other CellEntrance. |
CellEntrance(PartitionCell cell)
Creates a new
CellEntrance instance for a given PartitionCell. |
| Modifier and Type | Method and Description |
|---|---|
PartitionCell |
getCell()
Gets the
partition cell of this CellEntrance instance. |
double |
getCosts()
Gets the costs for the implicit path given by the
previous entrances. |
Direction |
getEnterDirection()
Gets the direction from which this
cell was entered. |
OrthogonalInterval |
getEnterInterval()
Gets the
OrthogonalInterval that was used for entering this cell. |
double |
getHeuristicCosts()
Gets the heuristic costs for the implicit path given by the
previous entrances. |
EdgeCellInfo |
getPreviousEdgeCellInfo()
Gets the
EdgeCellInfo describing how the previous partition cell was traversed. |
CellEntrance |
getPreviousEntrance()
Gets the previous
CellEntrance along the path that was traversed in order to reach the cell. |
void |
setCosts(double value)
Sets the costs for the implicit path given by the
previous entrances. |
void |
setEnterDirection(Direction value)
Sets the direction from which this
cell was entered. |
void |
setEnterInterval(OrthogonalInterval value)
Sets the
OrthogonalInterval that was used for entering this cell. |
void |
setHeuristicCosts(double value)
Sets the heuristic costs for the implicit path given by the
previous entrances. |
void |
setPreviousEdgeCellInfo(EdgeCellInfo value)
Sets the
EdgeCellInfo describing how the previous partition cell was traversed. |
void |
setPreviousEntrance(CellEntrance value)
Sets the previous
CellEntrance along the path that was traversed in order to reach the cell. |
String |
toString()
Returns a string representation of this
CellEntrance. |
public CellEntrance(CellEntrance other)
CellEntrance instance that is a copy of a given other CellEntrance.other - the CellEntrance to be copiedpublic CellEntrance(PartitionCell cell)
CellEntrance instance for a given PartitionCell.cell - the PartitionCell that is enteredpublic PartitionCell getCell()
partition cell of this CellEntrance instance.partition cell of this CellEntrance instancepublic double getCosts()
previous entrances.
The costs must be non-negative.
IllegalArgumentException - if the costs are negativeprevious entrancessetCosts(double)public Direction getEnterDirection()
cell was entered.cell was entered or null if this cell is
a start entrancesetEnterDirection(Direction)public OrthogonalInterval getEnterInterval()
OrthogonalInterval that was used for entering this cell.OrthogonalInterval used for entering this cell or null if it is a start entrancesetEnterInterval(OrthogonalInterval)public double getHeuristicCosts()
previous entrances.
Heuristic costs must be non-negative.
IllegalArgumentException - if the heuristic costs are negativeprevious entrancessetHeuristicCosts(double)public EdgeCellInfo getPreviousEdgeCellInfo()
EdgeCellInfo describing how the previous partition cell was traversed.EdgeCellInfo describing how the previous cell was traversed or null if this cell
is a start entrancesetPreviousEdgeCellInfo(EdgeCellInfo)public CellEntrance getPreviousEntrance()
CellEntrance along the path that was traversed in order to reach the cell.CellEntrance or null if this cell is a start entrancesetPreviousEntrance(CellEntrance)public void setCosts(double value)
previous entrances.
The costs must be non-negative.
IllegalArgumentException - if the costs are negativevalue - the costs for the implicit path given by the previous entrancesgetCosts()public void setEnterDirection(Direction value)
cell was entered.value - the direction from which this cell was entered or null if this cell is
a start entrancegetEnterDirection()public void setEnterInterval(OrthogonalInterval value)
OrthogonalInterval that was used for entering this cell.value - the OrthogonalInterval used for entering this cell or null if it is a start entrancegetEnterInterval()public void setHeuristicCosts(double value)
previous entrances.
Heuristic costs must be non-negative.
IllegalArgumentException - if the heuristic costs are negativevalue - the heuristic costs for the implicit path given by the previous entrancesgetHeuristicCosts()public void setPreviousEdgeCellInfo(EdgeCellInfo value)
EdgeCellInfo describing how the previous partition cell was traversed.value - the EdgeCellInfo describing how the previous cell was traversed or null if this cell
is a start entrancegetPreviousEdgeCellInfo()public void setPreviousEntrance(CellEntrance value)
CellEntrance along the path that was traversed in order to reach the cell.value - the previous CellEntrance or null if this cell is a start entrancegetPreviousEntrance()public String toString()
CellEntrance.toString in class ObjectCellEntrance