public final class ModelComponentBuilder
extends java.lang.Object
| Constructor and Description |
|---|
ModelComponentBuilder() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.List<SimulationObject> |
checkInArea(Position start,
int numberOfDesks,
double degreeRotation)
Create a check in area.
|
static java.util.List<SimulationObject> |
checkpoint(Position start,
int numberOfLanes,
double queueWidth,
boolean blockingWall,
double degreeRotation)
Creates a checkpoint.
|
static Desk |
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 |
createQueueSeparator(Position start,
double width,
double height,
double degreeRotation)
Creates a
QueueSeparator. |
static QueueSeparator |
createQueueSeparator(Position start,
double width,
double height,
Position origin,
double degreeRotation)
Creates a
QueueSeparator with a specified width and height. |
static QueueSeparator |
createQueuSeparator(java.util.List<Position> cornerPoints,
double degreeRotation)
Creates a rotated
QueueSeparator from its original corner points
and a given degree rotation. |
static QueueSeparator |
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 |
createWall(java.util.List<Position> cornerPoints,
double degreeRotation)
Creates a rotated
Wall from its original corner points and a
given degree rotation. |
static Wall |
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 |
createWall(Position start,
double width,
double height,
double degreeRotation)
Creates a
Wall with a given width and height and rotation angle. |
static Wall |
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> |
gate(Position start,
int numberOfRows,
int numberOfChairsPerRow,
double degreeRotation)
Create a gate.
|
static java.util.List<Position> |
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> |
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> |
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> |
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.
|
static java.util.List<SimulationObject> |
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> |
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> |
sittingArea(Position start,
int numberOfRows,
int numberOfChairsPerRow,
double degreeRotation)
Create a sitting area.
|
public static java.util.List<SimulationObject> checkInArea(Position start, int numberOfDesks, double degreeRotation)
start - The starting position.numberOfDesks - The number of desks.degreeRotation - The degrees it is rotated.public static java.util.List<SimulationObject> checkpoint(Position start, int numberOfLanes, double queueWidth, boolean blockingWall, double degreeRotation)
start - The starting position.numberOfLanes - The number of lanes.queueWidth - The width of the queue.blockingWall - Add a blocking wall or not.degreeRotation - The degrees it is rotated (in deg.).public static Desk createDesk(Position start, double width, double height, Position origin, double degreeRotation, Position servingPosition)
Desk with a given width and height and rotation angle.
The rotation is around the given origin position.start - The starting position.width - The width (in meter).height - The height (in meter).origin - The rotation origin.degreeRotation - The degrees it is rotated (in deg.).servingPosition - The serving position.public static QueueSeparator createQueueSeparator(Position start, double width, double height, double degreeRotation)
QueueSeparator.start - The starting position.width - The width (in meter).height - The height (in meter).degreeRotation - The degrees it is rotated (in deg.).public static QueueSeparator createQueueSeparator(Position start, double width, double height, Position origin, double degreeRotation)
QueueSeparator with a specified width and height. It is
rotated around the origin position with a specified angle.start - The starting position.width - The width (in meter).height - The height (in meter).origin - The rotation origin.degreeRotation - The degrees it is rotated (in deg.).public static QueueSeparator createQueuSeparator(java.util.List<Position> cornerPoints, double degreeRotation)
QueueSeparator from its original corner points
and a given degree rotation. The rotation is around the first corner
point.cornerPoints - The corner points.degreeRotation - The degrees it is rotated (deg.).public static QueueSeparator createQueuSeparator(java.util.List<Position> cornerPoints, Position origin, double degreeRotation)
QueueSeparator from its original corner points
and a given degree rotation. The rotation is around the given origin
point.cornerPoints - The corner points.origin - The rotation origin.degreeRotation - The degrees it is rotated (deg.).public static Wall createWall(java.util.List<Position> cornerPoints, double degreeRotation)
Wall from its original corner points and a
given degree rotation. The rotation is around the first corner point.cornerPoints - The corner points.degreeRotation - The degrees it is rotated (deg.).public static Wall createWall(java.util.List<Position> cornerPoints, Position origin, double degreeRotation)
Wall from its original corner points and a
given degree rotation. The rotation is around the given origin point.cornerPoints - The corner points.origin - The rotation origin.degreeRotation - The degrees it is rotated (deg.).public static Wall createWall(Position start, double width, double height, double degreeRotation)
Wall with a given width and height and rotation angle.
The rotation is around the given starting position.start - The starting position.width - The width (in meter).height - The height (in meter).degreeRotation - The degrees it is rotated (in deg.).public static Wall createWall(Position start, double width, double height, Position origin, double degreeRotation)
Wall with a given width and height and rotation angle.
The rotation is around the given origin position.start - The starting position.width - The width (in meter).height - The height (in meter).origin - The rotation origin.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<SimulationObject> gate(Position start, int numberOfRows, int numberOfChairsPerRow, double degreeRotation)
start - The starting position.numberOfRows - The number of rows for seats.numberOfChairsPerRow - The number of chairs per row.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<Position> getCornerPoints(java.util.List<Position> cornerPoints, double degreeRotation)
cornerPoints - The corner points.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<Position> getCornerPoints(java.util.List<Position> cornerPoints, Position origin, double degreeRotation)
cornerPoints - The corner points.origin - The rotation origin.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<Position> getCornerPoints(Position position, double width, double height, double degreeRotation)
position - The starting position.width - The width.height - The height.degreeRotation - The degrees it is rotated (deg.).public static java.util.List<Position> getCornerPoints(Position position, double width, double height, Position origin, double degreeRotation)
position - The starting position.width - The width.height - The height.origin - The rotation origin.degreeRotation - The degrees it is rotated (deg.).public static java.util.List<SimulationObject> queue(Position start, int numberOfLanes, double queueWidth, boolean addBlockingWall, double degreeRotation)
start - The starting position.numberOfLanes - The number of lanes.queueWidth - The width of the queue.addBlockingWall - Flag to indicate if we want to add a blocking wall.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<SimulationObject> queue(Position start, int numberOfLanes, double queueWidth, boolean addBlockingWall, Position rotationOrigin, double degreeRotation)
start - The starting position.numberOfLanes - The number of lanes.queueWidth - The width of the queue.addBlockingWall - Flag to indicate if we want to add a blocking wall.rotationOrigin - The rotation origin.degreeRotation - The degrees it is rotated (in deg.).public static java.util.List<SimulationObject> sittingArea(Position start, int numberOfRows, int numberOfChairsPerRow, double degreeRotation)
start - The starting position.numberOfRows - The number of rows of chairs.numberOfChairsPerRow - The number of chairs per row.degreeRotation - The degrees it is rotated (in deg.).