Package com.anylogic.engine.markup
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.AbstractLevelMarkup
- Methods inherited from class com.anylogic.engine.markup.MarkupShape
- Methods inherited from class com.anylogic.engine.markup.AbstractMarkup
- Methods inherited from class java.lang.Object
- Methods inherited from interface com.anylogic.engine.markup.AbstractPositionalMarkup
- Methods inherited from interface com.anylogic.engine.markup.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.presentation.SVGElement
- Methods inherited from interface com.anylogic.engine.presentation.UsdElement
- Constructor Details
- Method Details
- getLowerLevel
- setLowerLevel
- getUpperLevel
- setUpperLevel
- getX
- setX
- getY
- setY
- getZ
- setZ
- getLength
- setLength
- getWidth
- setWidth
- getAngle
- setAngle
- getStepWidth
- getStepWidth
- setStepWidth
- setStepWidth
- getLowerLandingLength
- setLowerLandingLength
- getUpperLandingLength
- setUpperNewelLength
- getRightBalustradeWidth
- setRightBalustradeLength
- getLeftBalustradeWidth
- setLeftBalustradeWidth
- getInternalBalustradeWidth
- setInternalBalustradeLength
- getRotation
- setRotation
- postInitialize
- addEscalator
- getEscalators
- contains
- turnOff
- turnOff
- turnOn
- turnOn
- isRunning
- block
- block
- unblock
- unblock
- isBlocked
- setSpeed
- setSpeed
- setSpeed
- setSpeed
- getSpeed
- getSpeed
- setMovementDirection
- setMovementDirection
- getMovementDirection
- getPedestrianBehaviorUp
- setPedestrianBehaviorUp
- walkingPercentageUp
- getPedestrianBehaviorDown
- setPedestrianBehaviorDown
- walkingPercentageDown
- getBoundingRectangle
- updateDynamicProperties
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.EscalatorGroup
- All Implemented Interfaces:
AbstractPositionalMarkup
,AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,SVGElement
,UsdElement
,Serializable
public class EscalatorGroup extends AbstractLevelMarkup implements AbstractPositionalMarkup
- See Also:
- Serialized Form
Constructor | Description |
---|---|
EscalatorGroup() | |
EscalatorGroup |
Deprecated.
deprecated in version 8.4, will be removed in the future releases
|
Modifier and Type | Method | Description |
---|---|---|
void | addEscalator |
Adds an Escalator element to this escalator group.
|
void | block() |
Blocks all escalators in this group.
|
void | block |
Blocks the escalator with the specified index.
|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
double | getAngle() |
Returns the angle of inclination of an escalator to the horizontal floor level (typically is 30 degrees).
|
BoundingRectangle | getBoundingRectangle() | |
List<Escalator> | getEscalators() |
Returns the list of escalators in this group.
|
double | getInternalBalustradeWidth() |
Returns the width of the internal balustrade (in pixels)
|
double | getLeftBalustradeWidth() |
Returns the width of the left balustrade (in pixels)
|
double | getLength() |
Returns escalator length in pixels
|
double | getLowerLandingLength() |
Returns the length of the lower landing
|
Level | getLowerLevel() |
Returns the lower level.
|
EscalatorMovementDirection | getMovementDirection |
Returns the current movement direction for the escalator specified by index.
|
EscalatorPedestrianBehavior | getPedestrianBehaviorDown() |
Returns the behavior for pedestrians moving down in this escalator group.
|
EscalatorPedestrianBehavior | getPedestrianBehaviorUp() |
Returns the behavior for pedestrians moving up in this escalator group.
|
double | getRightBalustradeWidth() |
Returns the width of the right balustrade (in pixels)
|
double | getRotation() |
Returns the current rotation angle (in radians)
|
double | getSpeed |
Returns the speed of the specified escalator (in meters per second).
|
double | getSpeed |
Returns the speed of the escalator (in the units passed via the units argument) with the specified index.
|
double | getStepWidth() |
Returns the step width (a.k.a.
|
double | getStepWidth |
Returns the step width (a.k.a.
|
double | getUpperLandingLength() |
Returns the length of the upper landing
|
Level | getUpperLevel() |
Returns the upper level.
|
double | getWidth() |
Returns escalator width in pixels
|
double | getX() |
Returns the X coordinate of this element
|
double | getY() |
Returns the Y coordinate of this element
|
double | getZ() |
Returns the Z coordinate of this element
|
boolean | isBlocked |
Checks whether the escalator with the specified index is blocked, or not.
|
boolean | isRunning |
Checks whether the escalator with the specified index is running, or not.
|
void | postInitialize() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
void | setAngle |
Sets the angle of inclination of an escalator to the horizontal floor level.
|
void | setInternalBalustradeLength |
Sets the width of the internal balustrade (in pixels).
|
void | setLeftBalustradeWidth |
Sets the width of the left balustrade (in pixels).
|
void | setLength |
Sets the escalator length (in pixels).
|
void | setLowerLandingLength |
Sets the length of the lower landing.
|
void | setLowerLevel |
Sets the lower level.
|
void | setMovementDirection |
Sets new movement direction for the specified escalator.
|
void | setMovementDirection |
Sets new movement direction for all the escalators in this group.
|
void | setPedestrianBehaviorDown |
Sets the behavior for pedestrians moving down in this escalator group.
|
void | setPedestrianBehaviorUp |
Sets the behavior for pedestrians moving up in this escalator group.
|
void | setRightBalustradeLength |
Sets the width of the right balustrade (in pixels).
|
void | setRotation |
Sets the current rotation
|
void | setSpeed |
Sets the speed (in meters per second) of all the escalators in this group.
|
void | setSpeed |
Sets the speed (in meters per second) of the escalator with the specified index.
|
void | setSpeed |
Sets the speed (in meters per second) of the escalator with the specified index.
|
void | setSpeed |
Sets the speed (in the units passed via the units argument) of the escalator with the specified index.
|
void | setStepWidth |
Sets the step width (a.k.a.
|
void | setStepWidth |
Sets the step width (a.k.a.
|
void | setUpperLevel |
Sets upper level.
|
void | setUpperNewelLength |
Sets the length of the upper landing.
|
void | setWidth |
Sets the escalator width (in pixels).
|
void | setX |
Sets the X coordinate of this element.
|
void | setY |
Sets the Y coordinate of this element.
|
void | setZ |
Sets the Z coordinate of this element.
|
void | turnOff() |
Turns off all escalators in this group.
|
void | turnOff |
Turns off the escalator with the specified index.
|
void | turnOn() |
Turns on all escalators in this group.
|
void | turnOn |
Turns on the escalator with the specified index.
|
void | unblock() |
Unblocks all escalators in this group, allowing pedestrians to enter the escalators.
|
void | unblock |
Unblocks the escalator with the specified index.
|
void | updateDynamicProperties() |
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties. |
double | walkingPercentageDown() |
Override this function to return probability of choice to walk or stay.
|
double | walkingPercentageUp() |
Override this function to return probability of choice to walk or stay.
|
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getOrGenerateUSDId, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicPropertiesStructural, updateSVGProperties
public EscalatorGroup()
@Deprecated public EscalatorGroup(Agent owner, ShapeDrawMode drawMode, boolean isPublic, Level upperLevel, double x, double y, double z, double width, double length, double speedInMPS, double stepWidthInMeter, double angle, double rotation, double lowerLandingLength, double upperLandingLength, double rightBalustradeWidth, double leftBalustradeWidth, double internalBalustradeWidth, Color balustradecolor, boolean solidBalustrade, EscalatorPedestrianBehavior pedestrianBehaviorUp, EscalatorPedestrianBehavior pedestrianBehaviorDown, Escalator... escalators)
Deprecated.
deprecated in version 8.4, will be removed in the future releases
- Parameters:
owner
-drawMode
-isPublic
-upperLevel
-x
-y
-z
-width
-length
-speedInMPS
-stepWidthInMeter
-angle
-rotation
-lowerLandingLength
-upperLandingLength
-rightBalustradeWidth
-leftBalustradeWidth
-internalBalustradeWidth
-balustradecolor
-solidBalustrade
-pedestrianBehaviorUp
-pedestrianBehaviorDown
-escalators
-
public Level getLowerLevel()
Returns the lower level. Pedestrians are on this level when they enter the escalator.
- Returns:
- the lower level
public void setLowerLevel(Level level)
Sets the lower level. Pedestrians are on this level when they enter the escalator.
- Parameters:
level
- the lower level
public Level getUpperLevel()
Returns the upper level. Pedestrians get on this level when they leave the escalator.
- Returns:
- the upper level
public void setUpperLevel(Level level)
Sets upper level. Pedestrians get on this level when they leave the escalator.
- Parameters:
level
- the upper level
public double getX()
Returns the X coordinate of this element
- Specified by:
getX
in interfaceAbstractPositionalMarkup
- Returns:
- the X coordinate of this element
public void setX(double x)
Sets the X coordinate of this element. The element should be uninitialized
- Parameters:
x
- the coordinate value
public double getY()
Returns the Y coordinate of this element
- Specified by:
getY
in interfaceAbstractPositionalMarkup
- Returns:
- the Y coordinate of this element
public void setY(double y)
Sets the Y coordinate of this element. The element should be uninitialized
- Parameters:
y
- the coordinate value
public double getZ()
Returns the Z coordinate of this element
- Specified by:
getZ
in interfaceAbstractPositionalMarkup
- Returns:
- the Z coordinate of this element
public void setZ(double z)
Sets the Z coordinate of this element. The element should be uninitialized
- Parameters:
z
- the coordinate value
public double getLength()
Returns escalator length in pixels
- Returns:
- escalator length
public void setLength(double length)
Sets the escalator length (in pixels). The element should be uninitialized.
- Parameters:
length
- escalator length
public double getWidth()
Returns escalator width in pixels
- Returns:
- escalator width
public void setWidth(double width)
Sets the escalator width (in pixels). The element should be uninitialized.
- Parameters:
width
- escalator width
public double getAngle()
Returns the angle of inclination of an escalator to the horizontal floor level (typically is 30 degrees).
- Parameters:
angle
- the angle of inclination
public void setAngle(double angle)
Sets the angle of inclination of an escalator to the horizontal floor level. The element should be uninitialized.
- Parameters:
angle
- the angle of inclination
public double getStepWidth()
Returns the step width (a.k.a. step depth) of the escalator (in meters)
- Returns:
- step width
public double getStepWidth(LengthUnits units)
Returns the step width (a.k.a. step depth) of the escalator (in specified units)
- Parameters:
units
- length units- Returns:
- step width in units
public void setStepWidth(double stepWidthInMeter)
Sets the step width (a.k.a. step depth) of the escalator (in meters). The element should be uninitialized.
- Parameters:
stepWidthInMeter
- step width
public void setStepWidth(double stepWidth, LengthUnits units)
Sets the step width (a.k.a. step depth) of the escalator (in specified length units).
The element should be uninitialized.
- Parameters:
stepWidthInMeter
- step widthunits
- length units
public double getLowerLandingLength()
Returns the length of the lower landing
- Returns:
- the length of the lower landing
public void setLowerLandingLength(double lowerLandingLength)
Sets the length of the lower landing. The element should be uninitialized.
- Parameters:
lowerLandingLength
-
public double getUpperLandingLength()
Returns the length of the upper landing
- Returns:
- the length of the upper landing
public void setUpperNewelLength(double upperLandingLength)
Sets the length of the upper landing. The element should be uninitialized.
- Parameters:
upperLandingLength
-
public double getRightBalustradeWidth()
Returns the width of the right balustrade (in pixels)
- Returns:
- the width of the right balustrade
public void setRightBalustradeLength(double rightBalustradeWidth)
Sets the width of the right balustrade (in pixels). The element should be uninitialized.
- Parameters:
rightBalustradeWidth
- width value
public double getLeftBalustradeWidth()
Returns the width of the left balustrade (in pixels)
- Returns:
- the width of the left balustrade
public void setLeftBalustradeWidth(double leftBalustradeWidth)
Sets the width of the left balustrade (in pixels). The element should be uninitialized.
- Parameters:
leftBalustradeWidth
- width value
public double getInternalBalustradeWidth()
Returns the width of the internal balustrade (in pixels)
- Returns:
- the width of the internal balustrade
public void setInternalBalustradeLength(double internalBalustradeWidth)
Sets the width of the internal balustrade (in pixels). The element should be uninitialized.
- Parameters:
internalBalustradeWidth
- width value
public double getRotation()
Returns the current rotation angle (in radians)
- Specified by:
getRotation
in interfaceAbstractPositionalMarkup
- Returns:
- the current rotation
public void setRotation(double rotation)
Sets the current rotation
- Parameters:
rotation
- rotation in radians
public void postInitialize()
Description copied from interface:
AggregatableAnimationElement
This method is internal and shouldn't be called by user.
it may be removed/renamed in future.
it may be removed/renamed in future.
- Specified by:
postInitialize
in interfaceAggregatableAnimationElement
public void addEscalator(Escalator escalator)
Adds an Escalator element to this escalator group. The element should be uninitialized.
- Parameters:
escalator
- the escalator to be added
public List<Escalator> getEscalators()
Returns the list of escalators in this group. The element should be initialized.
- Returns:
- the list of escalators
public boolean contains(double px, double py)
Description copied from class:
MarkupShape
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e. in the same system with the coordinates
of this shape, x and y)
- Specified by:
contains
in classMarkupShape
- Parameters:
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's container- Returns:
true
if the shape contains the point with the given coordinates
public void turnOff()
Turns off all escalators in this group. The element should be initialized.
When you turn off an escalator, the escalator power supply stops,
so the escalator steps are not moving anymore, but pedestrians can move on their own.
public void turnOff(int index)
Turns off the escalator with the specified index. The element should be initialized.
When you turn off an escalator, the escalator power supply stops,
so the escalator steps are not moving anymore, but pedestrians can move on their own.
- Parameters:
index
-
public void turnOn()
Turns on all escalators in this group. The element should be initialized.
public void turnOn(int index)
Turns on the escalator with the specified index. The element should be initialized.
- Parameters:
index
-
public boolean isRunning(int index)
Checks whether the escalator with the specified index is running, or not. The element should be initialized.
If the escalator is running, the function returns true, otherwise it returns false.
- Parameters:
index
- the escalator index- Returns:
- true if the escalator is running, false otherwise
public void block()
Blocks all escalators in this group. The element should be initialized.
When you block an escalator, the gate before the escalator gets closed,
and no more pedestrians are allowed to enter this escalator.
public void block(int index)
Blocks the escalator with the specified index. The element should be initialized.
When you block an escalator, the gate before the escalator gets closed,
and no more pedestrians are allowed to enter this escalator.
- Parameters:
index
- escalator index
public void unblock()
Unblocks all escalators in this group, allowing pedestrians to enter the escalators.
The element should be initialized.
public void unblock(int index)
Unblocks the escalator with the specified index. The element should be initialized.
- Parameters:
index
- escalator indes
public boolean isBlocked(int index)
Checks whether the escalator with the specified index is blocked, or not. The element should be initialized.
- Parameters:
index
- escalator index- Returns:
- true if the escalator is blocked, false otherwise
public void setSpeed(double speedInMPS)
Sets the speed (in meters per second) of all the escalators in this group. The element should be initialized.
- Parameters:
speedInMPS
- speed
public void setSpeed(int index, double speedInMPS)
Sets the speed (in meters per second) of the escalator with the specified index. The element should be initialized.
- Parameters:
index
- escalator indexspeedInMPS
- speed
public void setSpeed(double speed, SpeedUnits units)
Sets the speed (in meters per second) of the escalator with the specified index. The element should be initialized.
- Parameters:
speed
- speedunits
- speed units
public void setSpeed(int index, double speed, SpeedUnits units)
Sets the speed (in the units passed via the units argument) of the escalator with the specified index.
The element should be initialized.
- Parameters:
speed
- speedunits
- speed units
public double getSpeed(int index)
Returns the speed of the specified escalator (in meters per second). The element should be initialized.
- Parameters:
index
- index of the escalator- Returns:
- the speed of the escalator
public double getSpeed(int index, SpeedUnits units)
Returns the speed of the escalator (in the units passed via the units argument) with the specified index.
The element should be initialized.
- Parameters:
index
- escalator indexunits
- speed units- Returns:
- speed of the escalator
public void setMovementDirection(EscalatorMovementDirection movementDirection)
Sets new movement direction for all the escalators in this group. The element should be initialized.
You set the new value by passing one of the following values as the function argument:
- EscalatorMovementDirection.UP
- EscalatorMovementDirection.DOWN
- Parameters:
movementDirection
- direction
public void setMovementDirection(int index, EscalatorMovementDirection movementDirection)
Sets new movement direction for the specified escalator. The element should be initialized.
You set the new value by passing one of the following values as the function argument:
- EscalatorMovementDirection.UP
- EscalatorMovementDirection.DOWN
- Parameters:
index
- escalator indexmovementDirection
- direction
public EscalatorMovementDirection getMovementDirection(int index)
Returns the current movement direction for the escalator specified by index.
The element should be initialized.
The possible return values are:
- EscalatorMovementDirection.UP
- EscalatorMovementDirection.DOWN
- Parameters:
index
- escalator index- Returns:
- the current movement direction for the escalator
public EscalatorPedestrianBehavior getPedestrianBehaviorUp()
Returns the behavior for pedestrians moving up in this escalator group.
The possible return values are:
- EscalatorPedestrianBehavior.ESCALATOR_STAY_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_LEFT_SIDE
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_RIGHT_SIDE
- Returns:
public void setPedestrianBehaviorUp(EscalatorPedestrianBehavior pedestrianBehaviorUp)
Sets the behavior for pedestrians moving up in this escalator group.
You set the new value by passing one of the following values as the function argument:
- EscalatorPedestrianBehavior.ESCALATOR_STAY_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_LEFT_SIDE
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_RIGHT_SIDE
- Parameters:
pedestrianBehaviorUp
- behavior value
public double walkingPercentageUp()
Override this function to return probability of choice to walk or stay.
This value is evaluated each time pedestrian enters the escalator.
Default implementation returns
0.5
.- Returns:
- value between 0 and 1
public EscalatorPedestrianBehavior getPedestrianBehaviorDown()
Returns the behavior for pedestrians moving down in this escalator group.
The possible return values are:
- EscalatorPedestrianBehavior.ESCALATOR_STAY_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_LEFT_SIDE
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_RIGHT_SIDE
- Returns:
public void setPedestrianBehaviorDown(EscalatorPedestrianBehavior pedestrianBehaviorDown)
Sets the behavior for pedestrians moving down in this escalator group.
You set the new value by passing one of the following values as the function argument:
- EscalatorPedestrianBehavior.ESCALATOR_STAY_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ALL
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_LEFT_SIDE
- EscalatorPedestrianBehavior.ESCALATOR_WALK_ON_RIGHT_SIDE
- Parameters:
pedestrianBehaviorUp
- behavior value
public double walkingPercentageDown()
Override this function to return probability of choice to walk or stay.
This value is evaluated each time pedestrian enters the escalator.
Default implementation returns
0.5
.- Returns:
- value between 0 and 1
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
@AnyLogicInternalCodegenAPI public void updateDynamicProperties()
Description copied from class:
AbstractMarkup
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
Method should be overridden for shapes with dynamic properties. Note that you should call super.updateDynamicProperties() at the end of overridden method
Method should be overridden for shapes with dynamic properties. Note that you should call super.updateDynamicProperties() at the end of overridden method
- Overrides:
updateDynamicProperties
in classAbstractMarkup