Package com.anylogic.engine.markup
- Nested Class Summary
- Nested classes/interfaces inherited from interface com.anylogic.engine.markup.StorageResourceManagementUnit
- Field Summary
- Constructor Summary
- Method Summary
- Methods inherited from class com.anylogic.engine.markup.Crane
- 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
- getState
- timeInState
- timeInState
- averageStorageTime
- averageStorageTime
- averagePickingTime
- averagePickingTime
- getUtilization
- numberOfAgentsHandled
- resetStats
- getInitialHookPoint
- getInitialHookPoint
- getInitialHookPoint
- fail
- repair
- isFailed
- isReady
- onLoading
- onUnloading
- isLoaded
- getAbsoluteHookPosition
- getCraneHeight
- getCraneHeight
- getStatisticsStartTime
- contains
- getRotation
- getServicedAgent
- setStackerCraneSystem
- getLevel
- getStackerCraneSystem
- getBaseLength
- getBaseLength
- getInitialLiftPoint
- getInitialLiftPoint
- getAgents
- getAgentsInQueue
- getTrolleyPosition
- getFramePosition
- getMastPosition
- moveToInputStation
- setRetrievalSystem
- getRetrievalSystem
- getIndex
- getType
- setState
- getRailLocation
- getRailLocation
- getInputNode
- getOutputNode
- getInputConveyor
- getOutputConveyor
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.Crane<T>
- com.anylogic.engine.markup.StackerCrane<T>
- All Implemented Interfaces:
AbstractPositionalMarkup,AggregatableAnimationElement,HasLevel,LevelElement,LevelMarkup,com.anylogic.engine.markup.material_handling.IMaterialFallible,StorageResourceManagementUnit<com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState>,SVGElement,UsdElement,Serializable
public class StackerCrane<T extends Agent> extends Crane<T> implements AbstractPositionalMarkup, StorageResourceManagementUnit<com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState>, com.anylogic.engine.markup.material_handling.IMaterialFallible
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface com.anylogic.engine.markup.StorageResourceManagementUnit
StorageResourceManagementUnit.UnitType| Constructor | Description |
|---|---|
StackerCrane() | |
StackerCrane |
| Modifier and Type | Method | Description |
|---|---|---|
double | averagePickingTime() | |
double | averagePickingTime | |
double | averageStorageTime() | |
double | averageStorageTime | |
boolean | contains |
Test if the shape contains the point with the given coordinates (relative
to this shape's container, i.e.
|
void | fail() |
Sets the stacker crane to
failed state |
Position | getAbsoluteHookPosition() |
Returns the current hook position as an instance of
Position in pixels. |
List<Agent> | getAgents() |
Returns list of agents that have seized the stacker crane.
|
List<Agent> | getAgentsInQueue() |
Returns list of agents that represents stacker crane's own queue.
|
double | getBaseLength() |
Returns the length of the stacker crane base in pixels.
|
double | getBaseLength |
Returns the length of the stacker crane base in length units.
|
double | getCraneHeight() | |
double | getCraneHeight | |
Position | getFramePosition() |
Returns the current position of the stacker crane base center at z=0 (coordinates and rotation).
|
int | getIndex() | |
Point | getInitialHookPoint() |
Returns the initial hook point in pixels, calculated according to the crane's dimensions and converted to pixels with crane's space.
|
Point | getInitialHookPoint |
Returns the initial hook point in the specified length units.
|
Point | getInitialHookPoint | |
Point | getInitialLiftPoint() | |
Point | getInitialLiftPoint | |
ConveyorPath | getInputConveyor() | |
PointNode | getInputNode() | |
Level | getLevel() |
Returns level associated with this space markup element or
null
if this element has no level |
Position | getMastPosition() |
Returns the current position of the mast (coordinates and rotation).
|
ConveyorPath | getOutputConveyor() | |
PointNode | getOutputNode() | |
double | getRailLocation() |
Returns the horizontal offset in pixels of the stacker crane rail relative to the left boundary of the stacker crane system.
|
double | getRailLocation |
Returns the horizontal offset in length units of the stacker crane rail relative to the left boundary of the stacker crane system.
|
StorageRetrievalSystem | getRetrievalSystem() | |
double | getRotation() |
Returns rotation of the system.
|
Agent | getServicedAgent() |
Returns the agent that have seized the stacker crane if crane is loaded.
|
StackerCraneSystem | getStackerCraneSystem() | |
com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState | getState() |
Returns the stacker crane's current state.
|
double | getStatisticsStartTime() | |
Position | getTrolleyPosition() |
Returns the current position of the center of the trolley at z=0 (coordinates and rotation).
|
StorageResourceManagementUnit.UnitType | getType() | |
double | getUtilization() |
Returns the crane utilization: the fraction of time the crane was operating.
|
boolean | isFailed() |
Returns
true if the stacker crane is failed and false otherwise. |
boolean | isLoaded() | |
boolean | isReady() |
Returns
true if stacker crane is ready to operate, i.e. |
void | moveToInputStation() |
Orders the stacker crane to move to nearest accessible input station with chosen type.
|
int | numberOfAgentsHandled() | |
void | onLoading | |
void | onUnloading | |
void | repair() |
Repairs the stacker crane from
failed state |
void | resetStats() |
Resets the crane utilization statistics.
|
void | setRetrievalSystem | |
void | setStackerCraneSystem | |
void | setState | |
double | timeInState |
Returns total time in model time units spent by the stacker crane in the given state.
|
double | timeInState |
Returns total time in specified time units spent by the stacker crane in the given state.
|
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isOnly3D, isPublic, onClick, remove, setDrawMode, setOwnerdiscardOwner, executeUserAction, findSVGElement, getGroupOrOwner, getInspect, getInspectionWindowString, getName, getOrGenerateUSDId, getSVGComponent, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGComponent, resetSVGState, setInspect, setVisible, updateDynamicProperties, updateDynamicPropertiesStructural, updateSVGPropertiesexecuteUserAction, findSVGElement, getGroupOrOwner, getPresentable, getSVGComponent, getSVGId, isOnly3D, removeSVGFromOwner, resetSVGComponent, resetSVGState, updateSVGPropertiespublic StackerCrane()
@AnyLogicInternalCodegenAPI public StackerCrane(double railLocation)
public com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState getState()
Returns the stacker crane's current state.
Possible values are:
IDLE- the stacker crane has no tasksWAITING- the stacker crane stays unmovable awaiting further tasksLOADING- the stacker crane stays unmovable during agent loadingUNLOADING- the stacker crane stays unmovable during agent unloadingMOVING_UNLOADED- the stacker crane moves without any attached agent except movement to its parking positionMOVING_LOADED- the stacker crane moves with attached agentMOVING_HOME- the stacker crane moves to its parking position
- Specified by:
getStatein interfaceStorageResourceManagementUnit<T extends Agent>- Returns:
- the stacker cranes's current state.
public double timeInState(com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState state)
Returns total time in model time units spent by the stacker crane in the given state.
- Parameters:
state- - one ofStackerCraneState- Returns:
- total time in model time units spent by the stacker crane in the given state.
public double timeInState(com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState state, TimeUnits units)
Returns total time in specified time units spent by the stacker crane in the given state.
- Parameters:
state- - one ofStackerCraneStateunits- - time units- Returns:
- total time in specified time units spent by the stacker crane in the given state.
public double averageStorageTime()
public double averageStorageTime(TimeUnits units)
public double averagePickingTime()
public double averagePickingTime(TimeUnits units)
public double getUtilization()
Description copied from class:
CraneReturns the crane utilization: the fraction of time the crane was operating. The returned crane utilization value lies in the range [0..1].
- Specified by:
getUtilizationin classCrane<T extends Agent>
public int numberOfAgentsHandled()
public void resetStats()
Description copied from class:
CraneResets the crane utilization statistics.
- Specified by:
resetStatsin classCrane<T extends Agent>
@AnyLogicInternalAPI public Point getInitialHookPoint()
Description copied from class:
CraneReturns the initial hook point in pixels, calculated according to the crane's dimensions and converted to pixels with crane's space.
- Specified by:
getInitialHookPointin classCrane<T extends Agent>- Returns:
- initial hook point in pixels
@AnyLogicInternalAPI public Point getInitialHookPoint(LengthUnits units)
Description copied from class:
CraneReturns the initial hook point in the specified length units.
- Specified by:
getInitialHookPointin classCrane<T extends Agent>- Parameters:
units- - a constant defining the length units- Returns:
- initial hook point in the specified
LengthUnits
@AnyLogicInternalLibraryAPI public Point getInitialHookPoint(Function<Double, Double> meterToPx)
public void fail()
Sets the stacker crane to
failed statepublic void repair()
Repairs the stacker crane from
failed statepublic boolean isFailed()
Returns
true if the stacker crane is failed and false otherwise.public boolean isReady()
Returns
true if stacker crane is ready to operate, i.e. idle and not failed.@AnyLogicInternalLibraryAPI public void onLoading(T agent)
@AnyLogicInternalLibraryAPI public void onUnloading(T agent)
- Specified by:
onUnloadingin classCrane<T extends Agent>
@AnyLogicInternalLibraryAPI public boolean isLoaded()
@AnyLogicInternalAPI public Position getAbsoluteHookPosition()
Description copied from class:
CraneReturns the current hook position as an instance of
Position in pixels. Also updates animation.
Position.rotation contains the hook's current rotation angle in radians.- Specified by:
getAbsoluteHookPositionin classCrane<T extends Agent>- Returns:
- current hook point in pixels with the angle as
Position.rotation
@AnyLogicInternalLibraryAPI public double getCraneHeight()
- Specified by:
getCraneHeightin classCrane<T extends Agent>
@AnyLogicInternalLibraryAPI public double getCraneHeight(LengthUnits units)
- Specified by:
getCraneHeightin classCrane<T extends Agent>
@AnyLogicInternalAPI public double getStatisticsStartTime()
- Specified by:
getStatisticsStartTimein classCrane<T extends Agent>
public boolean contains(double px, double py)
Description copied from class:
MarkupShapeTest 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:
containsin classMarkupShape- Parameters:
px- the x coordinate relative to this shape's containerpy- the y coordinate relative to this shape's container- Returns:
trueif the shape contains the point with the given coordinates
public double getRotation()
Returns rotation of the system.
- Specified by:
getRotationin interfaceAbstractPositionalMarkup- Overrides:
getRotationin classCrane<T extends Agent>- Returns:
- rotation of the system
public Agent getServicedAgent()
Returns the agent that have seized the stacker crane if crane is loaded. Otherwise, returns null.
- Returns:
- the agent that have seized the stacker crane if crane is loaded. Otherwise, returns null.
@AnyLogicInternalLibraryAPI public void setStackerCraneSystem(StackerCraneSystem<T> stackerCraneSystem)
@AnyLogicInternalAPI public Level getLevel()
Description copied from interface:
HasLevelReturns level associated with this space markup element or
null
if this element has no level- Specified by:
getLevelin interfaceHasLevel- Overrides:
getLevelin classAbstractLevelMarkup- Returns:
- the level associated with this space markup element
@AnyLogicInternalLibraryAPI public StackerCraneSystem getStackerCraneSystem()
public double getBaseLength()
Returns the length of the stacker crane base in pixels.
- Parameters:
units- - length units- Returns:
- length of the stacker crane base in pixels.
public double getBaseLength(LengthUnits units)
Returns the length of the stacker crane base in length units.
- Parameters:
units- - length units- Returns:
- length of the stacker crane base in length units.
@AnyLogicInternalLibraryAPI public Point getInitialLiftPoint()
@AnyLogicInternalLibraryAPI public Point getInitialLiftPoint(LengthUnits units)
public List<Agent> getAgents()
Returns list of agents that have seized the stacker crane.
- Returns:
- list of agents that have seized the stacker crane.
public List<Agent> getAgentsInQueue()
Returns list of agents that represents stacker crane's own queue. The list is ordered by priority (from high to low).
List is modifiable but changes will not affect real queue.
- Returns:
- list of agents that represents stacker crane's own queue.
public Position getTrolleyPosition()
Returns the current position of the center of the trolley at z=0 (coordinates and rotation).
- Returns:
- current position of the center of the trolley at z=0 (coordinates and rotation).
public Position getFramePosition()
Returns the current position of the stacker crane base center at z=0 (coordinates and rotation).
- Returns:
- current position of the stacker crane base center at z=0 (coordinates and rotation).
public Position getMastPosition()
Returns the current position of the mast (coordinates and rotation).
- Returns:
- current position of the mast (coordinates and rotation).
public void moveToInputStation()
Orders the stacker crane to move to nearest accessible input station with chosen type.
Note: this method should not conflict with stacker crane movement induced by blocks: Store, Retrieve.
Otherwise an exception will occur.
@AnyLogicInternalLibraryAPI public void setRetrievalSystem(StorageRetrievalSystem system)
- Specified by:
setRetrievalSystemin interfaceStorageResourceManagementUnit<T extends Agent>
@AnyLogicInternalLibraryAPI public StorageRetrievalSystem getRetrievalSystem()
- Specified by:
getRetrievalSystemin interfaceStorageResourceManagementUnit<T extends Agent>
@AnyLogicInternalLibraryAPI public int getIndex()
@AnyLogicInternalAPI public StorageResourceManagementUnit.UnitType getType()
- Specified by:
getTypein interfaceStorageResourceManagementUnit<T extends Agent>
@AnyLogicInternalLibraryAPI public void setState(com.anylogic.engine.markup.material_handling.stacker_crane.StackerCraneState state)
- Specified by:
setStatein interfaceStorageResourceManagementUnit<T extends Agent>
public double getRailLocation()
Returns the horizontal offset in pixels of the stacker crane rail relative to the left boundary of the stacker crane system.
- Returns:
- horizontal offset in pixels of the stacker crane rail relative to the left boundary of the stacker crane system.
public double getRailLocation(LengthUnits units)
Returns the horizontal offset in length units of the stacker crane rail relative to the left boundary of the stacker crane system.
- Parameters:
units- - length units- Returns:
- horizontal offset in length units of the stacker crane rail relative to the left boundary of the stacker crane system.
@AnyLogicInternalAPI public PointNode getInputNode()
@AnyLogicInternalAPI public PointNode getOutputNode()
@AnyLogicInternalAPI public ConveyorPath getInputConveyor()
@AnyLogicInternalAPI public ConveyorPath getOutputConveyor()