|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.router.polyline.CellEntrance
public class CellEntrance
This class describes the location and the direction from which a given 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 Summary | |
---|---|
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 . |
Method Summary | |
---|---|
PartitionCell |
getCell()
Returns the partition cell of this CellEntrance instance. |
double |
getCosts()
Returns the costs for the implicit path given by the previous entrances . |
Direction |
getEnterDirection()
Returns the direction from which this cell was entered. |
OrthogonalInterval |
getEnterInterval()
Returns the OrthogonalInterval that was used for entering this cell . |
double |
getHeuristicCosts()
Returns the heuristic costs for the implicit path given by the previous entrances . |
EdgeCellInfo |
getPreviousEdgeCellInfo()
Returns the EdgeCellInfo describing how the previous partition cell was traversed. |
CellEntrance |
getPreviousEntrance()
Returns the previous CellEntrance along the path that was traversed in order to reach the
cell . |
void |
setCosts(double costs)
Specifies the costs for the implicit path given by the previous entrances . |
void |
setEnterDirection(Direction direction)
Specifies the direction from which this cell was entered. |
void |
setEnterInterval(OrthogonalInterval interval)
Specifies the OrthogonalInterval that was used for entering this cell . |
void |
setHeuristicCosts(double heuristicCosts)
Specifies the heuristic costs for the implicit path given by the previous entrances . |
void |
setPreviousEdgeCellInfo(EdgeCellInfo previousEdgeCellInfo)
Specifies the EdgeCellInfo describing how the previous partition cell was traversed. |
void |
setPreviousEntrance(CellEntrance previous)
Specifies the previous CellEntrance along the path that was traversed in order to reach the
cell . |
java.lang.String |
toString()
Returns a string representation of this CellEntrance . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CellEntrance(PartitionCell cell)
CellEntrance
instance for a given PartitionCell
.
cell
- the PartitionCell
that is enteredpublic CellEntrance(CellEntrance other)
CellEntrance
instance that is a copy of a given other CellEntrance
.
other
- the CellEntrance
to be copiedMethod Detail |
---|
public java.lang.String toString()
CellEntrance
.
toString
in class java.lang.Object
CellEntrance
public PartitionCell getCell()
partition cell
of this CellEntrance
instance.
partition cell
of this CellEntrance
instancepublic 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 setPreviousEntrance(CellEntrance previous)
CellEntrance
along the path that was traversed in order to reach the
cell
.
previous
- the previous CellEntrance
or null
if this cell
is a start entrancepublic 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 void setEnterInterval(OrthogonalInterval interval)
OrthogonalInterval
that was used for entering this cell
.
interval
- the OrthogonalInterval
used for entering this cell
or null
if it is a start entrancepublic Direction getEnterDirection()
cell
was entered.
cell
was entered or null
if this
cell
is a start entrancesetEnterDirection(Direction)
public void setEnterDirection(Direction direction)
cell
was entered.
direction
- the direction from which this cell
was entered or null
if this
cell
is a start entrancepublic double getCosts()
previous entrances
.
The costs must be non-negative.
previous entrances
setCosts(double)
public void setCosts(double costs)
previous entrances
.
The costs must be non-negative.
costs
- the costs for the implicit path given by the previous entrances
java.lang.IllegalArgumentException
- if the costs are negativepublic double getHeuristicCosts()
previous entrances
.
Heuristic costs must be non-negative.
previous entrances
setHeuristicCosts(double)
public void setHeuristicCosts(double heuristicCosts)
previous entrances
.
Heuristic costs must be non-negative.
heuristicCosts
- the heuristic costs for the implicit path given by the previous entrances
java.lang.IllegalArgumentException
- if the heuristic costs are negativepublic 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 entrancepublic void setPreviousEdgeCellInfo(EdgeCellInfo previousEdgeCellInfo)
EdgeCellInfo
describing how the previous partition cell
was traversed.
previousEdgeCellInfo
- the EdgeCellInfo
describing how the previous cell
was traversed
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |