Constructor and Description |
---|
Agent(Position position)
Creates an agent at a specific
Position with a 0 radius. |
Agent(Position position,
double radius)
Creates an agent at a specific
Position . |
Constructor and Description |
---|
HumanAgent(Position position,
double radius,
double mass,
java.awt.Color color)
Creates a human agent.
|
Modifier and Type | Field and Description |
---|---|
protected Position |
Passenger.Builder.position |
Modifier and Type | Method and Description |
---|---|
Position |
AatomHumanAgent.getGoalPosition()
Gets the goal
Position from the StrategicModel . |
Modifier and Type | Method and Description |
---|---|
java.util.List<Position> |
AatomHumanAgent.getGoalPositions()
Gets a list of all goal
Position s from the StrategicModel
. |
Modifier and Type | Method and Description |
---|---|
T |
Passenger.Builder.setPosition(Position position)
Set the
Position . |
Constructor and Description |
---|
AatomHumanAgent(Position position,
double radius,
double mass,
StrategicModel strategicModel,
TacticalModel tacticalModel,
OperationalModel operationalModel)
Creates a human agent with a specified
StrategicModel and
OperationalModel with default color red. |
AatomHumanAgent(Position position,
double radius,
double mass,
StrategicModel strategicModel,
TacticalModel tacticalModel,
OperationalModel operationalModel,
java.awt.Color color)
Creates a human agent.
|
OperatorAgent(Position position,
double radius,
double mass,
Activity assignment)
Creates an operator agent.
|
OperatorAgent(Position position,
double radius,
double mass,
Activity assignment,
java.awt.Color color)
Creates an operator agent.
|
Passenger(Flight flight,
boolean checkedIn,
java.lang.Class<? extends Facility> facility,
Position position,
double radius,
double mass,
java.util.Collection<Luggage> luggage,
StrategicModel strategicModel,
TacticalModel tacticalModel,
OperationalModel operationalModel,
java.awt.Color color)
|
Modifier and Type | Method and Description |
---|---|
Position |
MovementModule.getPosition()
Gets the position of the agent.
|
Modifier and Type | Method and Description |
---|---|
Position |
TacticalModel.getGoalPosition()
Gets the goal
Position . |
Modifier and Type | Method and Description |
---|---|
java.util.List<Position> |
TacticalModel.getGoalPositions()
Gets the list of goal positions
Position . |
Modifier and Type | Method and Description |
---|---|
void |
TacticalModel.setGoal(Position position)
Sets the goal position.
|
void |
TacticalModel.setShortTermGoal(Position position)
Sets a short term goal
Position for the agent. |
Modifier and Type | Method and Description |
---|---|
void |
TacticalModel.setShortTermGoals(java.util.List<Position> positions)
Sets a set of short term goal
Position s for the agent. |
Modifier and Type | Method and Description |
---|---|
abstract Position |
Activity.getActivityPosition()
Gets the activity position.
|
Position |
ActivityModule.getNextActivityPosition()
Get the next activity position.
|
Modifier and Type | Method and Description |
---|---|
Position |
BasicXRayActivity.getActivityPosition() |
Position |
BasicTravelDocumentCheckActivity.getActivityPosition() |
Position |
BasicPhysicalCheckActivity.getActivityPosition() |
Position |
BasicOperatorCheckInActivity.getActivityPosition() |
Position |
BasicOperatorBorderControlActivity.getActivityPosition() |
Position |
BasicLuggageDropActivity.getActivityPosition() |
Position |
BasicLuggageCheckActivity.getActivityPosition() |
Position |
BasicETDCheckActivity.getActivityPosition() |
Modifier and Type | Method and Description |
---|---|
Position |
QueueActivity.getActivityPosition() |
Modifier and Type | Method and Description |
---|---|
private double |
QueueActivity.getAngle(Position target,
Position origin)
Calculates the angle between two positions.
|
Modifier and Type | Field and Description |
---|---|
private Position |
BasicSchipholCheckpointActivity.activityPosition
The activity position.
|
private Position |
BasicRegionalCheckpointActivity.activityPosition
The activity position.
|
Modifier and Type | Method and Description |
---|---|
Position |
BasicSchipholCheckpointActivity.getActivityPosition()
Gets the activity position.
|
Position |
BasicRegionalCheckpointActivity.getActivityPosition()
Gets the activity position.
|
Position |
BasicPassengerCheckInActivity.getActivityPosition() |
Position |
BasicPassengerBorderControlActivity.getActivityPosition() |
Position |
BasicGateActivity.getActivityPosition() |
Position |
BasicFacilityActivity.getActivityPosition() |
Position |
BasicExitActivity.getActivityPosition() |
private Position |
BasicPassengerCheckInActivity.getTemporaryPosition()
Gets a temporary position to prevent getting stuck behind other
passengers.
|
private Position |
BasicPassengerBorderControlActivity.getTemporaryPosition()
Gets a temporary position to prevent getting stuck behind other
passengers.
|
Modifier and Type | Field and Description |
---|---|
private Position |
StuckDetector.prevPos
Previous position for stuck detection.
|
Modifier and Type | Field and Description |
---|---|
private java.util.List<Position> |
PassengerNavigationModule.checkInGoals
Check in goals.
|
protected java.util.List<Position> |
NavigationModule.goalPositions
The goal
Position s. |
Modifier and Type | Method and Description |
---|---|
Position |
NavigationModule.getGoalPosition()
Gets the closest goal position.
|
private Position |
NavigationModule.getQueueGoal()
Gets the queue goal.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Position> |
PassengerNavigationModule.getCheckInGoal(Position position)
Set the goal position if we are doing a check-in.
|
java.util.List<Position> |
NavigationModule.getGoalPositions()
Gets the goal positions.
|
Modifier and Type | Method and Description |
---|---|
private java.util.List<Position> |
PassengerNavigationModule.getCheckInGoal(Position position)
Set the goal position if we are doing a check-in.
|
private PolygonMapComponent |
DiscretizedMap.getShape(Position position,
double radius)
Gets the shape of a tile based on the position and radius.
|
void |
PassengerNavigationModule.setGoal(Position position) |
void |
NavigationModule.setGoal(Position position)
Sets the goal position.
|
void |
PassengerNavigationModule.setShortTermGoal(Position position) |
void |
NavigationModule.setShortTermGoal(Position position)
Set a short term goal position.
|
Modifier and Type | Method and Description |
---|---|
void |
PassengerNavigationModule.setShortTermGoals(java.util.List<Position> positions) |
void |
NavigationModule.setShortTermGoals(java.util.List<Position> positions)
Sets a set of short term positions.
|
Constructor and Description |
---|
NavigationModule(java.util.List<Position> goalPositions)
Creates a goal activity.
|
OperatorNavigationModule(java.util.List<Position> goalPositions)
Creates a navigation module.
|
PassengerNavigationModule(Flight flight,
java.util.List<Position> goalPositions)
Creates a goal activity.
|
Modifier and Type | Method and Description |
---|---|
private Position |
AStarPathFinder.getPositionFromNode(AStarNode node)
Gets a
Position from a A Star Node. |
private Position |
DijkstraPathFinder.getPositionFromNode(DijkstraNode node)
Gets a
Position from a Dijkstra Node. |
private Position |
JumpPointSearchPathFinder.getPositionFromNode(JumpPointNode node)
Gets a
Position from a A Star Node. |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Position> |
PathFinder.getCornerPoints2(java.util.List<Position> path)
Gets the corner points from a path, represented as a list of
Position s. |
java.util.List<Position> |
PathFinder.getPath(Position start,
Position goal)
|
abstract java.util.List<Position> |
PathFinder.getPath(Position start,
Position goal,
boolean smooth)
|
java.util.List<Position> |
JumpPointSearchPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
java.util.List<Position> |
DijkstraPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
java.util.List<Position> |
AStarPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
java.util.List<Position> |
PathFinder.smooth(java.util.List<Position> path)
Gets the corner points from a path, represented as a list of
Position s. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
PathFinder.directPathPossible(Position start,
Position goal)
Determines if there is a direct path possible between two
Position s. |
private JumpPointNode |
JumpPointSearchPathFinder.getNodeFromPosition(Position position)
Gets a JPS node from a
Position . |
private DijkstraNode |
DijkstraPathFinder.getNodeFromPosition(Position position)
Gets a Dijkstra node from a
Position . |
private AStarNode |
AStarPathFinder.getNodeFromPosition(Position position)
Gets a AStar node from a
Position . |
java.util.List<Position> |
PathFinder.getPath(Position start,
Position goal)
|
abstract java.util.List<Position> |
PathFinder.getPath(Position start,
Position goal,
boolean smooth)
|
java.util.List<Position> |
JumpPointSearchPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
java.util.List<Position> |
DijkstraPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
java.util.List<Position> |
AStarPathFinder.getPath(Position start,
Position goal,
boolean smooth) |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<Position> |
PathFinder.getCornerPoints2(java.util.List<Position> path)
Gets the corner points from a path, represented as a list of
Position s. |
java.util.List<Position> |
PathFinder.smooth(java.util.List<Position> path)
Gets the corner points from a path, represented as a list of
Position s. |
Modifier and Type | Field and Description |
---|---|
private Position |
QueuingArea.entrancePosition
Entrance position.
|
private Position |
QueuingArea.leavingPosition
The leaving position.
|
Modifier and Type | Method and Description |
---|---|
Position |
QueuingArea.getEntrancePosition()
Gets the entrance position.
|
Position |
QueuingArea.getLeavingPosition()
Gets the leaving position.
|
Constructor and Description |
---|
QueuingArea(double topX,
double topY,
double width,
double height,
Position entrancePosition,
Position leavingPosition)
Creates a queuing area.
|
QueuingArea(java.util.List<Position> corners,
Position entrancePosition,
Position leavingPosition)
Creates the area with a set of specified corner points.
|
Constructor and Description |
---|
Area(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
BorderControlArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
BorderControlGateArea(int gateNumber,
java.util.List<Position> corners,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
Creates the area with a set of specified corner points.
|
BorderControlGateArea(java.util.List<Position> corners,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
Creates the area with a set of specified corner points.
|
CheckInArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
CheckpointArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
EntranceArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
Facility(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
GateArea(int gateNumber,
java.util.List<Position> corners)
Creates the area with a set of specified corner points.
|
GateArea(java.util.List<Position> corners)
Creates the area with a set of specified corner points.
|
OpenArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
QueuingArea(java.util.List<Position> corners,
Position entrancePosition,
Position leavingPosition)
Creates the area with a set of specified corner points.
|
Restaurant(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
SecureArea(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
Shop(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
Toilet(java.util.List<Position> corners)
Create a area from a list of corner
Position s. |
Modifier and Type | Field and Description |
---|---|
private Position |
Chair.entryPosition
The position in front of the chair.
|
private Position |
Desk.servingPosition
The serving position.
|
Modifier and Type | Method and Description |
---|---|
Position |
Chair.getEntryPosition()
Gets the entry
Position . |
Position |
Desk.getServingPosition()
Gets the serving position.
|
Constructor and Description |
---|
Chair(Position position,
Position entryPosition,
double width)
Creates a chair at a certain
Position with a certain width. |
Desk(double[] x,
double[] y,
Position servingPosition)
Create a wall from a list of (x,y) coordinates.
|
Desk(double x0,
double x1,
double x2,
double x3,
double y0,
double y1,
double y2,
double y3,
Position servingPosition)
Creates a wall from four corner coordinates.
|
Desk(double topX,
double topY,
double width,
double height,
Position servingPosition)
Creates a rectangular wall with a specified top left corner, width and
height.
|
Desk(java.util.List<Position> corners,
Position servingPosition)
Create a wall from a list of corner
Position s. |
Constructor and Description |
---|
Desk(java.util.List<Position> corners,
Position servingPosition)
Create a wall from a list of corner
Position s. |
PhysicalObject(java.util.List<Position> corners)
Create a physical object from a list of corner
Position s. |
QueueSeparator(java.util.List<Position> corners)
Create a queue separator from a list of corner
Position s. |
Wall(java.util.List<Position> corners)
Create a wall from a list of corner
Position s. |
Modifier and Type | Method and Description |
---|---|
void |
Luggage.setPosition(Position position)
Sets the position of the luggage.
|
Modifier and Type | Field and Description |
---|---|
protected Position |
WalkThroughMetalDetector.checkPosition
The check position.
|
private Position |
XRaySystem.enterPosition
The enter position.
|
private Position |
XRaySystem.leavePosition
The leave position.
|
private Position[] |
XRaySystem.luggageCollectPositions
The collect position for bags.
|
private Position[] |
XRaySystem.luggageDropOffPositions
The drop off position for bags.
|
private Position |
XRaySystem.luggageEndPosition
The ending position of the luggage.
|
private Position |
XRaySystem.luggageStartPosition
The starting position of the luggage.
|
Modifier and Type | Method and Description |
---|---|
Position |
WalkThroughMetalDetector.getCheckPosition()
Gets the check position.
|
Position |
XRaySystem.getCollectPosition(int position)
Gets the luggage collect position.
|
Position |
XRaySystem.getDropOffPosition(int index)
Gets the luggage drop off position.
|
Position |
XRaySystem.getEnterPosition()
Gets the enter position for passengers of the system.
|
Position |
XRaySystem.getLeavePosition()
Gets the leave position for passengers of the system.
|
Constructor and Description |
---|
WalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition)
Creates a WTMD from its corner
Position s. |
XRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd)
Creates an x-ray system from a set of corner points.
|
XRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd,
boolean otherWayAround)
Creates an x-ray system from a set of corner points.
|
Constructor and Description |
---|
Sensor(java.util.List<Position> corners)
Creates a sensor.
|
WalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition)
Creates a WTMD from its corner
Position s. |
XRaySensor(java.util.List<Position> corners)
Creates an X-Ray sensor from its corner
Position s. |
XRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd)
Creates an x-ray system from a set of corner points.
|
XRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd,
boolean otherWayAround)
Creates an x-ray system from a set of corner points.
|
Constructor and Description |
---|
BasicWalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition,
double etdThreshold,
double randomCheckThreshold)
Creates a WTMD from its corner
Position s. |
BasicXRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd)
Creates an x-ray system from a set of corner points.
|
BasicXRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd,
boolean otherWayAround)
Creates an x-ray system from a set of corner points.
|
Constructor and Description |
---|
BasicWalkThroughMetalDetector(java.util.List<Position> corners,
Position checkPosition,
double etdThreshold,
double randomCheckThreshold)
Creates a WTMD from its corner
Position s. |
BasicXRaySensor(java.util.List<Position> corners)
Creates an X-Ray sensor from its corner
Position s. |
BasicXRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd)
Creates an x-ray system from a set of corner points.
|
BasicXRaySystem(java.util.List<Position> systemCornerPoints,
XRaySensor sensor,
Position luggageStart,
Position luggageEnd,
boolean otherWayAround)
Creates an x-ray system from a set of corner points.
|
Modifier and Type | Class and Description |
---|---|
class |
Vector
A 2D vector.
|
Modifier and Type | Field and Description |
---|---|
static Position |
Position.NO_POSITION
Holder to indicate no position.
|
Modifier and Type | Method and Description |
---|---|
Position |
Position.clone() |
Modifier and Type | Method and Description |
---|---|
float |
Position.distanceTo(Position other)
The distance to another position.
|
Modifier and Type | Field and Description |
---|---|
protected Position |
PhysicalMapComponent.position
The position of the map component on the map.
|
Modifier and Type | Method and Description |
---|---|
Position |
PhysicalMapComponent.getPosition()
Gets the
Position of the map component. |
Modifier and Type | Method and Description |
---|---|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(java.util.List<Position> cornerPoints,
double degreeRotation)
Gets a list of rotated corner points, with a given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Gets a list of rotated corner points, with a given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(Position position,
double width,
double height,
double degreeRotation)
Gets the corner points from a given starting point, width, height and a
given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(Position position,
double width,
double height,
Position origin,
double degreeRotation)
Gets the corner points from a given starting point, width, height and a
given rotation angle.
|
Modifier and Type | Method and Description |
---|---|
static java.util.List<SimulationObject> |
ModelComponentBuilder.checkInArea(Position start,
int numberOfDesks,
double degreeRotation)
Create a check in area.
|
static java.util.List<SimulationObject> |
ModelComponentBuilder.checkpoint(Position start,
int numberOfLanes,
double queueWidth,
boolean blockingWall,
double degreeRotation)
Creates a checkpoint.
|
static Desk |
ModelComponentBuilder.createDesk(Position start,
double width,
double height,
Position origin,
double degreeRotation,
Position servingPosition)
Creates a
Desk with a given width and height and rotation angle. |
static QueueSeparator |
ModelComponentBuilder.createQueueSeparator(Position start,
double width,
double height,
double degreeRotation)
Creates a
QueueSeparator . |
static QueueSeparator |
ModelComponentBuilder.createQueueSeparator(Position start,
double width,
double height,
Position origin,
double degreeRotation)
Creates a
QueueSeparator with a specified width and height. |
static QueueSeparator |
ModelComponentBuilder.createQueuSeparator(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Creates a rotated
QueueSeparator from its original corner points
and a given degree rotation. |
static Wall |
ModelComponentBuilder.createWall(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Creates a rotated
Wall from its original corner points and a
given degree rotation. |
static Wall |
ModelComponentBuilder.createWall(Position start,
double width,
double height,
double degreeRotation)
Creates a
Wall with a given width and height and rotation angle. |
static Wall |
ModelComponentBuilder.createWall(Position start,
double width,
double height,
Position origin,
double degreeRotation)
Creates a
Wall with a given width and height and rotation angle. |
static java.util.List<SimulationObject> |
ModelComponentBuilder.gate(Position start,
int numberOfRows,
int numberOfChairsPerRow,
double degreeRotation)
Create a gate.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Gets a list of rotated corner points, with a given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(Position position,
double width,
double height,
double degreeRotation)
Gets the corner points from a given starting point, width, height and a
given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(Position position,
double width,
double height,
Position origin,
double degreeRotation)
Gets the corner points from a given starting point, width, height and a
given rotation angle.
|
double |
PhysicalMapComponent.getDistance(Position position)
Gets the distance between a
Position and the component. |
abstract Vector |
PhysicalMapComponent.getVectorToPosition(Position position)
|
abstract boolean |
PhysicalMapComponent.isLineCollision(Position start,
Position end)
Determines if a line intersects with the
PhysicalMapComponent . |
boolean |
Map.isOutOfBounds(Position position)
Check if a
Position is out of map. |
static java.util.List<SimulationObject> |
ModelComponentBuilder.queue(Position start,
int numberOfLanes,
double queueWidth,
boolean addBlockingWall,
double degreeRotation)
Creates a queue with a specified number of lanes and width.
|
static java.util.List<SimulationObject> |
ModelComponentBuilder.queue(Position start,
int numberOfLanes,
double queueWidth,
boolean addBlockingWall,
Position rotationOrigin,
double degreeRotation)
Creates a queue with a specified number of lanes and width.
|
static java.util.List<SimulationObject> |
ModelComponentBuilder.sittingArea(Position start,
int numberOfRows,
int numberOfChairsPerRow,
double degreeRotation)
Create a sitting area.
|
Modifier and Type | Method and Description |
---|---|
static QueueSeparator |
ModelComponentBuilder.createQueuSeparator(java.util.List<Position> cornerPoints,
double degreeRotation)
Creates a rotated
QueueSeparator from its original corner points
and a given degree rotation. |
static QueueSeparator |
ModelComponentBuilder.createQueuSeparator(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Creates a rotated
QueueSeparator from its original corner points
and a given degree rotation. |
static Wall |
ModelComponentBuilder.createWall(java.util.List<Position> cornerPoints,
double degreeRotation)
Creates a rotated
Wall from its original corner points and a
given degree rotation. |
static Wall |
ModelComponentBuilder.createWall(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Creates a rotated
Wall from its original corner points and a
given degree rotation. |
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(java.util.List<Position> cornerPoints,
double degreeRotation)
Gets a list of rotated corner points, with a given rotation angle.
|
static java.util.List<Position> |
ModelComponentBuilder.getCornerPoints(java.util.List<Position> cornerPoints,
Position origin,
double degreeRotation)
Gets a list of rotated corner points, with a given rotation angle.
|
Constructor and Description |
---|
PhysicalMapComponent(Position position)
Create the map component at a specified
Position . |
Modifier and Type | Field and Description |
---|---|
private java.util.List<Position> |
PathShape.corners |
Modifier and Type | Method and Description |
---|---|
Position |
PolygonMapComponent.generatePosition()
Generates a position inside the shape.
|
Position |
PathShape.generatePosition()
Generates a position inside the shape.
|
Position |
PolygonMapComponent.generatePosition(RandomPlus randomGenerator)
Generates a position inside the shape.
|
Position |
PathShape.generatePosition(RandomPlus randomGenerator)
Generates a position inside the shape.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<Position> |
PolygonMapComponent.generatePositions(int numberOfPositions)
Generates a set of positions inside the shape.
|
java.util.List<Position> |
PathShape.generatePositions(int numberOfPositions)
Generates a set of positions inside the shape.
|
java.util.List<Position> |
PolygonMapComponent.generatePositions(int numberOfPositions,
RandomPlus randomGenerator)
Generates a set of positions inside the shape.
|
java.util.List<Position> |
PathShape.generatePositions(int numberOfPositions,
RandomPlus randomGenerator)
Generates a set of positions inside the shape.
|
java.util.List<Position> |
PolygonShape.getCorners()
Gets the corner points of the polygon.
|
java.util.List<Position> |
PolygonMapComponent.getCorners()
Gets the list of corner
Position s. |
java.util.List<Position> |
PathShape.getCorners()
Gets the list of corner
Position s. |
Modifier and Type | Method and Description |
---|---|
boolean |
PolygonMapComponent.contains(Position position)
Determines if the shape contains a position.
|
boolean |
PathShape.contains(Position position)
Determines if the shape contains a position.
|
Vector |
PolygonMapComponent.getVectorToPosition(Position position) |
Vector |
CircularMapComponent.getVectorToPosition(Position position) |
boolean |
PolygonMapComponent.isLineCollision(Position start,
Position end) |
boolean |
PathShape.isLineCollision(Position start,
Position end)
Determines if a line intersects with the shape.
|
boolean |
CircularMapComponent.isLineCollision(Position start,
Position end) |
Modifier and Type | Method and Description |
---|---|
boolean |
PolygonMapComponent.contains(java.util.List<Position> positions)
Determines if a point out of a set of points is contained in a shape.
|
boolean |
PathShape.contains(java.util.List<Position> positions)
Determines if a point out of a set of points is contained in a shape.
|
Constructor and Description |
---|
CircularMapComponent(Position position,
double radius)
Creates a circular
MapComponent . |
Constructor and Description |
---|
PathShape(java.util.List<Position> corners)
Create the path shape.
|
PolygonMapComponent(java.util.List<Position> corners)
Create a wall from a list of corner
Position s. |
Modifier and Type | Method and Description |
---|---|
static Position |
Utilities.getAveragePosition(java.util.List<Position> corners)
Gets the central position of a set of points.
|
static Position |
Utilities.transform(Position position,
Position origin,
double degreeRotation)
Transforms a
Position based on an origin and a rotation. |
Modifier and Type | Method and Description |
---|---|
static <T extends PhysicalMapComponent> |
Utilities.getMapComponentsInNeighborhood(Position position,
double radius,
java.util.Collection<T> mapComponents)
Gets all
MapComponent s in a list within a specified distance from
a Position . |
static Vector |
Utilities.getPositionToLineVector(Position position,
Position lineStart,
Position lineEnd)
|
static <T extends PhysicalMapComponent> |
Utilities.isLineCollision(Position start,
Position end,
java.util.Collection<T> components)
Determines if a line intersects with a set of components.
|
static boolean |
Utilities.isLineCollision(Position firstLineStart,
Position firstLineEnd,
Position secondLineStart,
Position secondLineEnd)
Checks if two lines intersect.
|
static Position |
Utilities.transform(Position position,
Position origin,
double degreeRotation)
Transforms a
Position based on an origin and a rotation. |
Modifier and Type | Method and Description |
---|---|
static Position |
Utilities.getAveragePosition(java.util.List<Position> corners)
Gets the central position of a set of points.
|
Modifier and Type | Field and Description |
---|---|
private java.util.HashMap<Passenger,Position> |
DistanceAnalyzer.currentPosition
The positions of the agents.
|
Modifier and Type | Method and Description |
---|---|
static void |
ShapeDrawer.drawCircle(java.awt.Color color,
Position position,
double radius)
Draws a circle.
|
static void |
ShapeDrawer.drawLine(java.awt.Color color,
Position start,
Position end)
Draws a line.
|
static void |
ShapeDrawer.drawPath(java.awt.Color color,
Position position,
java.util.List<Position> positions)
Draws a path.
|
static void |
ShapeDrawer.drawRectangle(java.awt.Color color,
Position position,
double width,
double height)
Draws a rectangle.
|
static java.awt.Rectangle |
ShapeDrawer.getRectangle(Position position,
double width,
double height)
Gets a rectangle that can be used as a bounding box.
|
Modifier and Type | Method and Description |
---|---|
static void |
ShapeDrawer.drawPath(java.awt.Color color,
Position position,
java.util.List<Position> positions)
Draws a path.
|
static void |
ShapeDrawer.drawPolygon(java.awt.Color color,
java.util.List<Position> positions)
Draws a polygon.
|