public class Lift<A extends Agent> extends AbstractLevelMarkup implements com.anylogic.engine.markup.material_handling.ILiftDescriptor<A>
Modifier and Type | Field and Description |
---|---|
MarkupPort |
eastPort
Lift's
NetworkPort located to east |
MarkupPort |
northPort
Lift's
NetworkPort located to north |
MarkupPort |
southPort
Lift's
NetworkPort located to south |
MarkupPort |
westPort
Lift's
NetworkPort located to west |
Constructor and Description |
---|
Lift() |
Lift(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
boolean isObstacle,
double x,
double y,
double z,
double widthInMeters,
double depthInMeters,
double rotation,
java.awt.Paint fillColor,
java.awt.Paint lineColor,
LiftPlatformDrawingType platformType,
com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> descriptor)
This method is internal and shouldn't be called by user.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<MarkupPort> |
collectAllPairedPorts(java.util.function.Predicate<MarkupPort> filter) |
boolean |
comparison(A agent1,
A agent2)
Returns the result of evaluating the expression specified by the user in "agent1 is preferred to agent2" parameter.
|
boolean |
contains(double px,
double py)
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)
|
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.
|
void |
fail()
Initiates the lift's failure.
|
Agent |
getAgentFromQueue(int index)
Returns the agent from the queue with the specified index.
|
BoundingRectangle |
getBoundingRectangle() |
double |
getDepth(LengthUnits units)
Returns the depth of the markup shape.
|
java.awt.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(LengthUnits units)
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(SpeedUnits units)
Returns the speed of the lift movement in the specified speed units.
|
java.util.List<Lift<?>> |
getLiftLandings()
Returns all landings this lift has, including itself.
|
java.awt.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. how the lift selects agents from the queue.
|
double |
getWidth(LengthUnits units)
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(LengthUnits units) |
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(A agent)
Calls
onDropoffFinished() code of the lift |
void |
onFailed()
Calls
onFailed() code of the lift |
void |
onPickupStarted(A agent)
Calls
onPickupStarted() code of the lift |
void |
onRepaired()
Calls
onRepaired() code of the lift |
double |
pickingUpTime(A agent,
TimeUnits units)
Returns the time specified for agent movement between the ending point of network path/conveyor and the center.
|
java.util.List<MarkupPort> |
ports()
Returns all ports of this element
|
void |
postInitialize()
This method is internal and shouldn't be called by user.
|
double |
priority(A agent)
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(double depth,
LengthUnits units)
Sets the depth of the markup shape.
|
void |
setFillColor(java.awt.Color fillColor)
Sets the fill color of the shape.
|
void |
setFillColor(java.awt.Paint fillColor)
Sets the fill color (or
Texture ) of the shape. |
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.
|
void |
setLiftingSpeed(double speed,
SpeedUnits units)
Set the speed of the lift movement in the specified speed units.
|
void |
setLineColor(java.awt.Color lineColor)
Sets the line color of the markup element.
|
void |
setLineColor(java.awt.Paint lineColor)
Sets the line color (or
Texture ) of the markup element. |
void |
setMainLanding(boolean isMain)
Sets the lift as the main landing.
|
void |
setMainLanding(Lift<?> mainLift)
Assigns the main landing status to a lift from a collection of lift elements connected to each other.
|
void |
setObstacle(boolean isObstacle)
Sets wether this lift is an obstacle for transporters.
|
void |
setPlatformType(LiftPlatformDrawingType platformType)
Sets platform type
|
void |
setRotation(double rotation)
Sets the rotation of the shape.
|
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.
|
void |
setWidth(double width,
LengthUnits units)
Sets the width of the markup shape.
|
void |
setX(double x)
Sets the x coordinate of the markup element.
|
void |
setXYZ(double x,
double y,
double z)
Sets coordinates of the markup element.
|
void |
setY(double y)
Sets the y coordinate of the markup element.
|
void |
setZ(double z)
Sets the z coordinate of the markup element.
|
getDrawMode, getLevel, setLevel
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarkup, setMarkup
initializeInternal, onAggregatorVisibilityChanged
public final MarkupPort northPort
NetworkPort
located to northpublic final MarkupPort southPort
NetworkPort
located to southpublic final MarkupPort westPort
NetworkPort
located to westpublic final MarkupPort eastPort
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, java.awt.Paint fillColor, java.awt.Paint lineColor, LiftPlatformDrawingType platformType, com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> descriptor)
public boolean isObstacle()
true
if the lift is obstacle for transporters and else
otherwise.true
if the lift is obstacle for transporters and else
otherwisepublic void setObstacle(boolean isObstacle)
isObstacle
- - true
if you want this lift was an obstacle for transporters and false
otherwise.public java.util.List<MarkupPort> ports()
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.ILiftDescriptor<A> getLibraryDescriptor()
public java.util.List<Lift<?>> getLiftLandings()
List<Lift>
- list of all landings this lift has, including itselfpublic double getX()
public void setX(double x)
x
- the new value of x coordinatepublic double getY()
public void setY(double y)
y
- the new value of y coordinatepublic double getZ()
public void setZ(double z)
z
- the new value of z coordinatepublic Point getXYZ()
public void setXYZ(double x, double y, double z)
x
- the new value of x coordinatey
- the new value of y coordinatez
- the new value of z coordinatepublic double getWidth(LengthUnits units)
public void setWidth(double width, LengthUnits units)
width
- the new width of the markup shapeunits
- the units of lengthpublic double getDepth(LengthUnits units)
public void setDepth(double depth, LengthUnits units)
depth
- the new depth of the markup shapeunits
- the units of lengthpublic double getRotation()
public void setRotation(double rotation)
r
- the new value of rotation in radianspublic void setLineColor(java.awt.Color lineColor)
lineColor
- the new line color, null = do not draw the markup element linepublic void setLineColor(java.awt.Paint lineColor)
Texture
) of the markup element.lineColor
- the new line color, null = do not draw the markup element linepublic java.awt.Color getLineColor()
null
if markup element has no line color or
has textured line (in this case getLineTexture()
should be used instead)public Texture getLineTexture()
public void setFillColor(java.awt.Color fillColor)
fillColor
- the new fill color, null = do not fill the shapepublic void setFillColor(java.awt.Paint fillColor)
Texture
) of the shape.fillColor
- the new fill color, null = do not fill the shapepublic java.awt.Color getFillColor()
null
if shape has no fill color or
has textured fill (in this case getFillTexture()
should be used instead)public Texture getFillTexture()
public LiftPlatformDrawingType getPlatformType()
LIFT_PLATFORM_FLAT
LIFT_PLATFORM_ROLLER
public void setPlatformType(LiftPlatformDrawingType platformType)
platformType
- - desired platform type. Valid values are:
LIFT_PLATFORM_FLAT
LIFT_PLATFORM_ROLLER
@AnyLogicInternalAPI public void initializeLiftLandings()
public void postInitialize()
AggregatableAnimationElement
postInitialize
in interface AggregatableAnimationElement
@AnyLogicInternalAPI public double getPlatformZ()
@AnyLogicInternalAPI public Lift<?> getPlatformFloor()
@AnyLogicInternalAPI public double getZHeight(LengthUnits units)
public boolean contains(double px, double py)
MarkupShape
contains
in class MarkupShape
px
- the x coordinate relative to this shape's containerpy
- the y coordinate relative to this shape's containertrue
if the shape contains the point with the given
coordinatespublic boolean isMainLanding()
true
if this lift is set as the main landing. Otherwise, returns false
.public void setMainLanding(boolean isMain)
public Lift<?> getMainLanding()
public void setMainLanding(Lift<?> mainLift)
public boolean isFailed()
true
if the lift failed (broke down) and is not operating, otherwise returns false
.isFailed
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
true
if the lift failed and false
otherwisepublic void fail()
fail
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void repair()
repair
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public double getFloorElevation(LengthUnits units)
public void setFloorElevation(double floorLevel, LengthUnits units)
public double getLiftingSpeed(SpeedUnits units)
public void setLiftingSpeed(double speed, SpeedUnits units)
public double pickingUpTime(A agent, TimeUnits units)
pickingUpTime
in interface com.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
agent
- - agent that is currently moving into the liftunits
- - a constant defining the time unitspublic double droppingOffTime(A agent, TimeUnits units)
droppingOffTime
in interface com.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
agent
- - agent that is currently moving into the liftunits
- - a constant defining the time unitspublic LiftSelectionMode getSelectionMode()
getSelectionMode
in interface com.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
Valid values are:
LIFT_SELECTION_MODE_FIFO
- according to FIFO policy
LIFT_SELECTION_MODE_PRIORITY
- according to the priority of the incoming agent
LIFT_SELECTION_MODE_COMPARISON
- according to the specified boolean expression that is evaluated for every agent "requesting" a lift
public void setSelectionMode(LiftSelectionMode mode)
setSelectionMode
in interface com.anylogic.engine.markup.material_handling.ILiftDescriptor<A extends Agent>
mode
- - new type of selection pattern.
Valid values are:
LIFT_SELECTION_MODE_FIFO
- according to FIFO policy
LIFT_SELECTION_MODE_PRIORITY
- according to the priority of the incoming agent
LIFT_SELECTION_MODE_COMPARISON
- according to the specified boolean expression that is evaluated for every agent "requesting" a lift
public double priority(A agent)
public boolean comparison(A agent1, A agent2)
public int queueSize()
public Agent getAgentFromQueue(int index)
public void onFailed()
onFailed()
code of the liftonFailed
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void onRepaired()
onRepaired()
code of the liftonRepaired
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
public void onPickupStarted(A agent)
onPickupStarted()
code of the liftpublic void onDropoffFinished(A agent)
onDropoffFinished()
code of the lift@AnyLogicInternalAPI public java.util.List<MarkupPort> collectAllPairedPorts(java.util.function.Predicate<MarkupPort> filter)
@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
Copyright © AnyLogic North America, LLC. All Rights Reserved.