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.AggregatableAnimationElement
- Methods inherited from interface com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
- Field Details
- Constructor Details
- Method Details
- isObstacle
- setObstacle
- ports
- getLibraryDescriptor
- getLiftLandings
- getX
- setX
- getY
- setY
- getZ
- setZ
- getXYZ
- setXYZ
- getWidth
- setWidth
- getDepth
- setDepth
- getRotation
- setRotation
- setLineColor
- setLineColor
- getLineColor
- getLineTexture
- setFillColor
- setFillColor
- getFillColor
- getFillTexture
- getPlatformType
- setPlatformType
- initializeLiftLandings
- postInitialize
- getPlatformZ
- getPlatformFloor
- getZHeight
- contains
- isMainLanding
- setMainLanding
- getMainLanding
- setMainLanding
- isFailed
- fail
- repair
- getFloorElevation
- setFloorElevation
- getLiftingSpeed
- setLiftingSpeed
- pickingUpTime
- droppingOffTime
- getSelectionMode
- setSelectionMode
- priority
- comparison
- queueSize
- getAgentFromQueue
- onPickupStarted
- onDropoffFinished
- collectAllPairedPorts
- getBoundingRectangle
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.Lift<A>
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,IMarkupLibraryDescriptor
,LevelElement
,LevelMarkup
,com.anylogic.engine.markup.material_handling.ILiftDescriptor<A>
,com.anylogic.engine.markup.material_handling.IMaterialFallible
,com.anylogic.engine.markup.material_handling.IMaterialMarkupLibraryDescriptor
,SVGElement
,Serializable
public class Lift<A extends Agent> extends AbstractLevelMarkup implements com.anylogic.engine.markup.material_handling.ILiftDescriptor<A>
- See Also:
- Serialized Form
Modifier and Type | Field | Description |
---|---|---|
final MarkupPort | eastPort |
Lift's
NetworkPort located to east |
final MarkupPort | northPort |
Lift's
NetworkPort located to north |
final MarkupPort | southPort |
Lift's
NetworkPort located to south |
final MarkupPort | westPort |
Lift's
NetworkPort located to west |
Constructor | Description |
---|---|
Lift() | |
Lift |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons. |
Modifier and Type | Method | Description |
---|---|---|
List<MarkupPort> | collectAllPairedPorts | |
boolean | comparison |
Returns the result of evaluating the expression specified by the user in "agent1 is preferred to agent2" parameter.
|
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
double | droppingOffTime |
Returns the time specified for agent movement between the center of the lift and the starting point of network path/conveyor.
|
void | fail() |
Initiates the lift's failure.
|
Agent | getAgentFromQueue |
Returns the agent from the queue with the specified index.
|
BoundingRectangle | getBoundingRectangle() | |
double | getDepth |
Returns the depth of the markup shape.
|
Color | getFillColor() |
Returns the fill color of the shape, or
null if shape has no fill color or
has textured fill (in this case getFillTexture() should be used instead) |
Texture | getFillTexture() |
Returns the fill texture of the shape, if the shape has fill texture
|
double | getFloorElevation |
Returns the distance between the lift and the surface you are using as level in the specified length units.
|
com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> | getLibraryDescriptor() | |
double | getLiftingSpeed |
Returns the speed of the lift movement in the specified speed units.
|
List<Lift<?>> | getLiftLandings() |
Returns all landings this lift has, including itself.
|
Color | getLineColor() |
Returns the line color of the markup element, or
null if markup element has no line color or
has textured line (in this case getLineTexture() should be used instead) |
Texture | getLineTexture() |
Returns the line texture of the markup element, if the markup element has line texture
|
Lift<?> | getMainLanding() |
Returns the main landing out of the collection of lift elements connected to each other.
|
Lift<?> | getPlatformFloor() | |
LiftPlatformDrawingType | getPlatformType() |
Returns platform type.
|
double | getPlatformZ() | |
double | getRotation() |
Returns the rotation of the shape.
|
LiftSelectionMode | getSelectionMode() |
Returns the type of agent selection pattern for this lift, i.e.
|
double | getWidth |
Returns the width of the markup shape.
|
double | getX() |
Returns the x coordinate of the markup element.
|
Point | getXYZ() |
Returns coordinates of the markup element.
|
double | getY() |
Returns the y coordinate of the markup element.
|
double | getZ() |
Returns the z coordinate of the markup element.
|
double | getZHeight | |
void | initializeLiftLandings() | |
boolean | isFailed() |
Returns
true if the lift failed (broke down) and is not operating, otherwise returns false . |
boolean | isMainLanding() |
Returns
true if this lift is set as the main landing. |
boolean | isObstacle() |
Returns
true if the lift is obstacle for transporters and else otherwise. |
void | onDropoffFinished |
Calls
onDropoffFinished() code of the lift |
void | onPickupStarted |
Calls
onPickupStarted() code of the lift |
double | pickingUpTime |
Returns the time specified for agent movement between the ending point of network path/conveyor and the center.
|
List<MarkupPort> | ports() |
Returns all ports of this element
|
void | postInitialize() |
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. |
double | priority |
Returns the priority of the agent.
|
int | queueSize() |
Returns the number of agents (material items) in the lift's queue.
|
void | repair() |
Repairs the lift.
|
void | setDepth |
Sets the depth of the markup shape.
|
void | setFillColor |
Sets the fill color of the shape.
|
void | setFillColor |
Sets the fill color (or
Texture ) of the shape. |
void | setFloorElevation |
Sets the distance between the lift and the surface you are using as level in the specified length units.
|
void | setLiftingSpeed |
Set the speed of the lift movement in the specified speed units.
|
void | setLineColor |
Sets the line color of the markup element.
|
void | setLineColor |
Sets the line color (or
Texture ) of the markup element. |
void | setMainLanding |
Sets the lift as the main landing.
|
void | setMainLanding |
Assigns the main landing status to a lift from a collection of lift elements connected to each other.
|
void | setObstacle |
Sets wether this lift is an obstacle for transporters.
|
void | setPlatformType |
Sets platform type
|
void | setRotation |
Sets the rotation of the shape.
|
void | setSelectionMode |
Sets the new type of agent selection pattern for this lift, i.e.
|
void | setWidth |
Sets the width of the markup shape.
|
void | setX |
Sets the x coordinate of the markup element.
|
void | setXYZ |
Sets coordinates of the markup element.
|
void | setY |
Sets the y coordinate of the markup element.
|
void | setZ |
Sets the z coordinate of the markup element.
|
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGProperties
public final MarkupPort northPort
Lift's
NetworkPort
located to northpublic final MarkupPort southPort
Lift's
NetworkPort
located to southpublic final MarkupPort westPort
Lift's
NetworkPort
located to westpublic final MarkupPort eastPort
Lift's
NetworkPort
located to eastpublic Lift()
@AnyLogicInternalCodegenAPI public Lift(Agent owner, ShapeDrawMode drawMode, boolean isPublic, boolean isObstacle, double x, double y, double z, double widthInMeters, double depthInMeters, double rotation, Paint fillColor, Paint lineColor, LiftPlatformDrawingType platformType, com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> descriptor)
This method is internal and shouldn't be called by user.
it may be removed/renamed in future. It is public due to technical reasons.
it may be removed/renamed in future. It is public due to technical reasons.
public boolean isObstacle()
Returns
true
if the lift is obstacle for transporters and else
otherwise.- Returns:
true
if the lift is obstacle for transporters andelse
otherwise
public void setObstacle(boolean isObstacle)
Sets wether this lift is an obstacle for transporters.
- Parameters:
isObstacle
- -true
if you want this lift was an obstacle for transporters andfalse
otherwise.
public List<MarkupPort> ports()
Returns all ports of this element
- Returns:
- all ports of this element
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> getLibraryDescriptor()
public List<Lift<?>> getLiftLandings()
Returns all landings this lift has, including itself.
- Returns:
List<Lift>
- list of all landings this lift has, including itself
public double getX()
Returns the x coordinate of the markup element.
- Returns:
- the x coordinate of the markup element
public void setX(double x)
Sets the x coordinate of the markup element.
- Parameters:
x
- the new value of x coordinate
public double getY()
Returns the y coordinate of the markup element.
- Returns:
- the y coordinate of the markup element
public void setY(double y)
Sets the y coordinate of the markup element.
- Parameters:
y
- the new value of y coordinate
public double getZ()
Returns the z coordinate of the markup element.
- Returns:
- the z coordinate of the markup element
public void setZ(double z)
Sets the z coordinate of the markup element.
- Parameters:
z
- the new value of z coordinate
public Point getXYZ()
Returns coordinates of the markup element.
- Returns:
- coordinates of the markup element
public void setXYZ(double x, double y, double z)
Sets coordinates of the markup element.
- Parameters:
x
- the new value of x coordinatey
- the new value of y coordinatez
- the new value of z coordinate
public double getWidth(LengthUnits units)
Returns the width of the markup shape.
- Returns:
- the width of the markup shape
public void setWidth(double width, LengthUnits units)
Sets the width of the markup shape.
- Parameters:
width
- the new width of the markup shapeunits
- the units of length
public double getDepth(LengthUnits units)
Returns the depth of the markup shape.
- Returns:
- the depth of the markup shape
public void setDepth(double depth, LengthUnits units)
Sets the depth of the markup shape.
- Parameters:
depth
- the new depth of the markup shapeunits
- the units of length
public double getRotation()
Returns the rotation of the shape.
- Returns:
- the rotation of the shape in radians, clockwise
public void setRotation(double rotation)
Sets the rotation of the shape.
- Parameters:
r
- the new value of rotation in radians
public void setLineColor(Color lineColor)
Sets the line color of the markup element.
- Parameters:
lineColor
- the new line color, null = do not draw the markup element line
public void setLineColor(Paint lineColor)
Sets the line color (or
Texture
) of the markup element.- Parameters:
lineColor
- the new line color, null = do not draw the markup element line
public Color getLineColor()
Returns the line color of the markup element, or
null
if markup element has no line color or
has textured line (in this case getLineTexture()
should be used instead)- Returns:
- the line color of the markup element
public Texture getLineTexture()
Returns the line texture of the markup element, if the markup element has line texture
- Returns:
- the line texture of the markup element
public void setFillColor(Color fillColor)
Sets the fill color of the shape.
- Parameters:
fillColor
- the new fill color, null = do not fill the shape
public void setFillColor(Paint fillColor)
Sets the fill color (or
Texture
) of the shape.- Parameters:
fillColor
- the new fill color, null = do not fill the shape
public Color getFillColor()
Returns the fill color of the shape, or
null
if shape has no fill color or
has textured fill (in this case getFillTexture()
should be used instead)- Returns:
- the fill color of the shape
public Texture getFillTexture()
Returns the fill texture of the shape, if the shape has fill texture
- Returns:
- the fill texture of the shape
public LiftPlatformDrawingType getPlatformType()
Returns platform type.
- Returns:
- platform type. Valid values are:
LIFT_PLATFORM_FLAT
LIFT_PLATFORM_ROLLER
public void setPlatformType(LiftPlatformDrawingType platformType)
Sets platform type
- Parameters:
platformType
- - desired platform type. Valid values are:LIFT_PLATFORM_FLAT
LIFT_PLATFORM_ROLLER
@AnyLogicInternalAPI public void initializeLiftLandings()
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
@AnyLogicInternalAPI public double getPlatformZ()
@AnyLogicInternalAPI public Lift<?> getPlatformFloor()
@AnyLogicInternalAPI public double getZHeight(LengthUnits units)
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 boolean isMainLanding()
Returns
true
if this lift is set as the main landing. Otherwise, returns false
.public void setMainLanding(boolean isMain)
Sets the lift as the main landing.
public Lift<?> getMainLanding()
Returns the main landing out of the collection of lift elements connected to each other.
public void setMainLanding(Lift<?> mainLift)
Assigns the main landing status to a lift from a collection of lift elements connected to each other.
public boolean isFailed()
Returns
true
if the lift failed (broke down) and is not operating, otherwise returns false
.- Specified by:
isFailed
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
- Returns:
true
if the lift failed andfalse
otherwise
public void fail()
Initiates the lift's failure. The lift stops working.
- Specified by:
fail
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public void repair()
Repairs the lift. The lift becomes available again.
- Specified by:
repair
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public double getFloorElevation(LengthUnits units)
Returns the distance between the lift and the surface you are using as level in the specified length units.
public void setFloorElevation(double floorLevel, LengthUnits units)
Sets the distance between the lift and the surface you are using as level in the specified length units.
public double getLiftingSpeed(SpeedUnits units)
Returns the speed of the lift movement in the specified speed units.
public void setLiftingSpeed(double speed, SpeedUnits units)
Set the speed of the lift movement in the specified speed units.
public double pickingUpTime(A agent, TimeUnits units)
Returns the time specified for agent movement between the ending point of network path/conveyor and the center.
of the lift in the specified time units.
- Specified by:
pickingUpTime
in interfacecom.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
- Parameters:
agent
- - agent that is currently moving into the liftunits
- - a constant defining the time units- Returns:
- the time specified for agent movement between the ending point of network path/conveyor and the center
public double droppingOffTime(A agent, TimeUnits units)
Returns the time specified for agent movement between the center of the lift and the starting point of network path/conveyor.
- Specified by:
droppingOffTime
in interfacecom.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
- Parameters:
agent
- - agent that is currently moving into the liftunits
- - a constant defining the time units- Returns:
- the time specified for agent movement between the center of the lift and the starting point of network path/conveyor
public LiftSelectionMode getSelectionMode()
Returns the type of agent selection pattern for this lift, i.e. how the lift selects agents from the queue.
- Specified by:
getSelectionMode
in interfacecom.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
- Returns:
- the type of agent selection pattern for this lift, i.e. how the lift selects agents from the queue
Valid values are:
LIFT_SELECTION_MODE_FIFO
- according to FIFO policyLIFT_SELECTION_MODE_PRIORITY
- according to the priority of the incoming agentLIFT_SELECTION_MODE_COMPARISON
- according to the specified boolean expression that is evaluated for every agent "requesting" a lift
public void setSelectionMode(LiftSelectionMode mode)
Sets the new type of agent selection pattern for this lift, i.e. how the lift selects agents from the queue.
- Specified by:
setSelectionMode
in interfacecom.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
- Parameters:
mode
- - new type of selection pattern.Valid values are:
LIFT_SELECTION_MODE_FIFO
- according to FIFO policyLIFT_SELECTION_MODE_PRIORITY
- according to the priority of the incoming agentLIFT_SELECTION_MODE_COMPARISON
- according to the specified boolean expression that is evaluated for every agent "requesting" a lift
public double priority(A agent)
Returns the priority of the agent.
public boolean comparison(A agent1, A agent2)
Returns the result of evaluating the expression specified by the user in "agent1 is preferred to agent2" parameter.
public int queueSize()
Returns the number of agents (material items) in the lift's queue.
public Agent getAgentFromQueue(int index)
Returns the agent from the queue with the specified index.
public void onPickupStarted(A agent)
Calls
onPickupStarted()
code of the liftpublic void onDropoffFinished(A agent)
Calls
onDropoffFinished()
code of the lift@AnyLogicInternalAPI public List<MarkupPort> collectAllPairedPorts(Predicate<MarkupPort> filter)
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()