public class FloorSequencer
extends java.lang.Object
| Constructor and Description |
|---|
FloorSequencer(GridAStar pathfinder,
java.util.List<java.util.List<java.util.List<GridNode>>> searchArea,
java.util.List<FloorConnector> floorConnectors)
Class contructor
|
| Modifier and Type | Method and Description |
|---|---|
java.util.List<GridNode> |
findPath(GridNode start,
GridNode dest)
Calculates the approximate shortest path from the start node to the dest node
even when both nodes are on different floors.
|
void |
printFloorSequences(java.util.List<java.util.List<GridNode>> floorSequences)
Prints the given floor sequences in an easy-to-view format.
|
void |
printPath(java.util.List<java.util.List<java.util.List<GridNode>>> searchArea,
java.util.List<GridNode> path)
Prints the given path over top of the given 3D search area in an
easy-to-view format.
|
public FloorSequencer(GridAStar pathfinder, java.util.List<java.util.List<java.util.List<GridNode>>> searchArea, java.util.List<FloorConnector> floorConnectors)
pathfinder - Patfinder used to calculate pathssearchArea - Search area for the buildingfloorConnectors - Floor connectors for the buildingpublic java.util.List<GridNode> findPath(GridNode start, GridNode dest)
start - the start nodedest - the end nodepublic void printFloorSequences(java.util.List<java.util.List<GridNode>> floorSequences)
floorSequences - list of node sequencespublic void printPath(java.util.List<java.util.List<java.util.List<GridNode>>> searchArea, java.util.List<GridNode> path)
searchArea - the 3D list of nodes representing the building layoutpath - the list of nodes that make up the path