public class BorderControlGateArea extends GateArea
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Desk> |
borderControlDesks
The desks.
|
private QueuingArea |
borderControlQueue
The queing area.
|
private java.util.Collection<Passenger> |
passedBorderControl
The desks.
|
shapepositionmap| Constructor and Description |
|---|
BorderControlGateArea(double topX,
double topY,
double width,
double height,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
Creates a rectangular gate area from a specified (x,y) coordinate, width
and height.
|
BorderControlGateArea(int gateNumber,
double topX,
double topY,
double width,
double height,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
Creates a rectangular gate area from a specified (x,y) coordinate, width
and height.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
alreadyPassedBorderControl(Passenger agent)
Determines if a passenger already passed border control.
|
void |
borderControl(Passenger agent)
Indicates that a passenger is checked when crossing border control.
|
java.util.List<Desk> |
getBorderControlDesks()
Gets the border control desks.
|
QueuingArea |
getBorderControlQueue()
Gets the border control queue.
|
getGateNumbercontains, contains, generatePosition, generatePosition, generatePositions, generatePositions, getCorners, getVectorToPosition, isCollision, isLineCollision, toStringgetDistance, getPositionisDestroyedprivate java.util.List<Desk> borderControlDesks
private QueuingArea borderControlQueue
private java.util.Collection<Passenger> passedBorderControl
public BorderControlGateArea(double topX,
double topY,
double width,
double height,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
topX - The x coordinate.topY - The y coordinate.width - The width.height - The height.borderControlDesks - The border control desks.borderControlQueue - The border control queue.public BorderControlGateArea(int gateNumber,
double topX,
double topY,
double width,
double height,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
gateNumber - The gate number.topX - The x coordinate.topY - The y coordinate.width - The width.height - The height.borderControlDesks - The border control desks.borderControlQueue - The border control queue.public BorderControlGateArea(int gateNumber,
java.util.List<Position> corners,
java.util.List<Desk> borderControlDesks,
QueuingArea borderControlQueue)
gateNumber - The gate number.corners - The corner points.borderControlDesks - The border control desks.borderControlQueue - The border control queue.public BorderControlGateArea(java.util.List<Position> corners, java.util.List<Desk> borderControlDesks, QueuingArea borderControlQueue)
corners - The corner points.borderControlDesks - The border control desks.borderControlQueue - The border control queue.public boolean alreadyPassedBorderControl(Passenger agent)
agent - The agent.public void borderControl(Passenger agent)
agent - The passenger.public java.util.List<Desk> getBorderControlDesks()
public QueuingArea getBorderControlQueue()