public class OverheadCrane<T extends Agent> extends Crane<T> implements com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T>, com.anylogic.engine.markup.material_handling.IMaterialFallible
Constructor and Description |
---|
OverheadCrane()
Creates new OverheadCrane with 1 bridge.
|
OverheadCrane(Agent owner,
ShapeDrawMode drawMode,
boolean isPublic,
boolean isObstacle,
com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T> descriptor,
double x,
double y,
double z,
double rotation,
double runwayLengthMeters,
double craneWidthMeters,
double craneHeightMeters,
double bridgeWidthMeters,
double safetyGap,
java.awt.Color color,
java.awt.Color trolleyColor,
OverheadCraneDrawingType type,
OverheadCraneGirderDrawingType girderType,
OverheadCraneBridge... bridges)
This method is internal and shouldn't be called by user.
|
Modifier and Type | Method and Description |
---|---|
void |
addBridge(OverheadCraneBridge bridge)
The method adds bridge to crane.
|
void |
attachAgentAnimation(OverheadCraneBridge bridge,
T agent) |
double |
averageCycleTime(OverheadCraneBridge bridge,
TimeUnits units) |
double |
bridgeAcceleration(T agent,
boolean isLoaded,
AccelerationUnits units)
Returns the bridge acceleration specified by the parameter value of this crane in the specified
units . |
double |
bridgeDeceleration(T agent,
boolean isLoaded,
AccelerationUnits units)
Returns the bridge deceleration specified by the parameter value of this crane in the specified
units . |
double |
bridgeSpeed(T agent,
boolean isLoaded,
SpeedUnits units)
Returns the bridge speed specified by the parameter value of this crane in the specified
units . |
boolean |
canArriveAt(OverheadCraneBridge bridge,
Point hookDestination) |
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)
|
void |
detachAgentAnimation(OverheadCraneBridge bridge) |
void |
fail()
Sets the crane to
failed state |
void |
fail(OverheadCraneBridge overheadCraneBridge) |
Position |
getAbsoluteHookPosition()
Returns the current absolute hook position as an instance of
Position in pixels. |
Position |
getAbsoluteHookPosition(OverheadCraneBridge overheadCraneBridge)
Returns the current absolute hook position of the specified bridge
as an instance of
Position in pixels. |
Agent |
getAgent(OverheadCraneBridge bridge) |
java.util.List<Agent> |
getAgents() |
java.util.List<Agent> |
getAgentsInQueue()
Returns list of agents that represents crane's general queue.
|
BoundingRectangle |
getBoundingRectangle() |
OverheadCraneBridge |
getBridge(int index)
Returns crane's bridge with specified index.
|
double |
getBridgeDistanceTo(OverheadCraneBridge bridge,
Point p,
LengthUnits units) |
Position |
getBridgePosition(OverheadCraneBridge bridge) |
CraneProgram |
getBridgeProgram(OverheadCraneBridge bridge) |
java.util.List<OverheadCraneBridge> |
getBridges()
Returns unmodifiable list of crane's bridges.
|
java.util.List<OverheadCraneBridge> |
getBridgesOnRouteTo(OverheadCraneBridge bridge,
Point p) |
double |
getBridgeWidth()
Returns width of the bridge in pixels
|
double |
getBridgeWidth(LengthUnits units)
Returns bridge width in specified units.
|
java.awt.Color |
getColor()
Returns the color of hook and crane's rails for
OVERHEAD_CRANE_BRIDGE crane type |
double |
getCraneHeight()
Returns the crane's height in pixels.
|
double |
getCraneHeight(LengthUnits units)
Returns the crane's height in the specified length units.
|
double |
getCraneWidth()
Returns the width of the crane in pixels.
|
double |
getCraneWidth(LengthUnits units)
Returns the width of the crane specified units.
|
double |
getCurrentBridgeOffset(OverheadCraneBridge bridge,
LengthUnits units) |
double |
getCurrentHookOffset(OverheadCraneBridge bridge,
LengthUnits units) |
Point |
getCurrentHookPosition() |
Point |
getCurrentHookPosition(OverheadCraneBridge bridge) |
double |
getCurrentTrolleyOffset(OverheadCraneBridge bridge,
LengthUnits units) |
BridgeDirection |
getDirection(OverheadCraneBridge bridge) |
OverheadCraneGirderDrawingType |
getGirderType()
Returns the type of the crane's girder.
|
Position |
getHookPosition(OverheadCraneBridge bridge) |
double |
getInitialBridgePosition(LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.getInitialBridgeOffset(LengthUnits) instead |
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(LengthUnits units)
Returns the initial hook point in the specified length units.
|
double |
getInitialHookPosition(LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.getInitialHookOffset(LengthUnits) instead |
double |
getInitialTrolleyPosition(LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.getInitialTrolleyOffset(LengthUnits) instead |
com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T> |
getLibraryDescriptor() |
OverheadCraneMovementMode |
getMovementMode()
Returns the movement mode of the crane.
|
int |
getNumberOfBridges()
Returns number of crane's bridges
|
double |
getPriority(OverheadCraneBridge bridge) |
java.util.List<Agent> |
getQueue(Crane<Agent> crane) |
double |
getRotation()
Returns rotation of the crane.
|
double |
getRunwayLength()
Returns runway length in pixels.
|
double |
getRunwayLength(LengthUnits units)
Returns runway length in specified units.
|
double |
getSafetyGap()
Returns the safety gap of the crane.
|
double |
getSafetyGap(LengthUnits units)
Returns the safety gap of the crane.
|
OverheadCraneBridgeState |
getState(OverheadCraneBridge bridge) |
double |
getStatisticsStartTime() |
Point |
getTargetPoint(OverheadCraneBridge bridge) |
java.awt.Color |
getTrolleyColor()
Returns the color of the crane's trolley
|
Position |
getTrolleyPosition(OverheadCraneBridge bridge) |
OverheadCraneDrawingType |
getType()
Returns the crane's type.
|
double |
getUtilization()
Returns the crane utilization: the value is calculated as mean of crane's bridges utilization.
|
double |
getUtilization(OverheadCraneBridge overheadCraneBridge) |
double |
hoistSpeed(T agent,
boolean isLoaded,
SpeedUnits units)
Returns the hoist speed specified by the parameter value of this crane in specified
units . |
boolean |
isAccelerationEnabled()
Returns value of parameter isAccelerationEnabled.
|
boolean |
isFailed()
Returns
true if the crane is failed and false otherwise. |
boolean |
isFailed(OverheadCraneBridge overheadCraneBridge) |
boolean |
isLoaded() |
boolean |
isLoaded(OverheadCraneBridge overheadCraneBridge) |
boolean |
isObstacle()
Returns
true if this crane is considered an obstacle by transporters moving in free space mode. |
boolean |
isReady()
Returns
true if the crane is ready to work with new agent and false otherwise. |
boolean |
isReady(OverheadCraneBridge overheadCraneBridge) |
void |
moveBridge(OverheadCraneBridge bridge,
Point absolutePoint,
double safeHeight,
boolean remainsAtTarget) |
void |
moveBridgeByProgram(OverheadCraneBridge bridge,
CraneProgram program) |
int |
numberOfAgentsHandled()
Returns number of agents handled by crane: the value is calculated as sum per crane's bridges.
|
int |
numberOfAgentsHandled(OverheadCraneBridge bridge) |
int |
numberOfConflicts(OverheadCraneBridge bridge) |
void |
onBridgeMovementFinished(OverheadCraneBridge bridge)
Calls the crane's
onBridgeMovementFinished() callback code |
void |
onBridgeStateChange(T agent,
OverheadCraneBridge bridge,
OverheadCraneBridgeState type)
Calls the crane's
onBridgeStateChange() callback code |
void |
onFailed()
Calls the crane's
onFailed() callback code |
void |
onFailed(OverheadCraneBridge overheadCraneBridge) |
void |
onLoading(OverheadCraneBridge bridge,
T agent)
Calls crane's
onLoading() callback code |
void |
onLoading(T agent) |
void |
onRelease(OverheadCraneBridge bridge,
T agent)
Calls crane's
onRelease() callback code |
void |
onRepaired()
Calls the crane's
onRepaired() callback code |
void |
onRepaired(OverheadCraneBridge overheadCraneBridge) |
void |
onSeize(OverheadCraneBridge bridge,
T agent)
Calls crane's
onSeize() callback code |
void |
onTargetReached(OverheadCraneBridge bridge)
Calls the crane's
onTargetReached() callback code |
void |
onUnloading(OverheadCraneBridge bridge,
T agent)
Calls crane's
onUnloading() callback code |
void |
onUnloading(T agent) |
void |
repair()
Repairs the crane from
failed state |
void |
repair(OverheadCraneBridge overheadCraneBridge) |
void |
resetStats()
Resets statistics for all bridges.
|
void |
resetStats(OverheadCraneBridge overheadCraneBridge) |
void |
setAccelerationEnabled(boolean value)
Sets parameter isAccelerationEnabled.
|
void |
setBridgeWidth(double bridgeWidth,
LengthUnits units)
Sets bridge width length in specified units
|
void |
setColor(java.awt.Color color)
Sets the specified color of hook and crane's rails for
OVERHEAD_CRANE_BRIDGE crane type |
void |
setCraneHeight(double craneHeight,
LengthUnits units)
Sets crane height in specified units.
|
void |
setCraneWidth(double craneWidth,
LengthUnits units)
Sets crane width in specified units.
|
void |
setGirderType(OverheadCraneGirderDrawingType girderType)
Sets the crane's girder type
|
void |
setInitialBridgePosition(double bridgePosition,
LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.setInitialBridgeOffset(double, LengthUnits) |
void |
setInitialHookPosition(double hookPosition,
LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.setInitialHookOffset(double, LengthUnits) |
void |
setInitialTrolleyPosition(double trolleyPosition,
LengthUnits units)
Deprecated.
the method will be removed, use
OverheadCraneBridge.setInitialTrolleyOffset(double, LengthUnits) |
void |
setLevel(Level level) |
void |
setMovementMode(OverheadCraneMovementMode movementMode)
Sets movement mode.
|
void |
setObstacle(boolean isObstacle)
Sets this crane as an obstacle for transporters moving in free space mode.
|
void |
setRotation(double rotation)
Sets rotation of crane
|
void |
setRunwayLength(double length,
LengthUnits units)
Sets runway length in specified units
|
void |
setSafetyGap(double safetyGap,
LengthUnits units)
Sets the value for the safety gap of the crane.
|
void |
setTrolleyColor(java.awt.Color trolleyColor)
Sets the specified color of the crane's trolley
|
void |
setType(OverheadCraneDrawingType type)
Sets the crane's type
|
double |
timeInState(OverheadCraneBridge bridge,
OverheadCraneBridgeState state,
TimeUnits units) |
double |
totalDistanceInConflict(OverheadCraneBridge bridge,
LengthUnits units) |
double |
totalTimeInConflicts(OverheadCraneBridge bridge,
TimeUnits units) |
double |
totalTransportationDistance(OverheadCraneBridge bridge,
LengthUnits units) |
double |
totalTravelledDistance(OverheadCraneBridge bridge,
LengthUnits units) |
double |
totalTravellingTime(OverheadCraneBridge bridge,
TimeUnits units) |
double |
trolleyAcceleration(T agent,
boolean isLoaded,
AccelerationUnits units)
Returns the trolley acceleration specified by the parameter value of this crane in the specified
units . |
double |
trolleyDeceleration(T agent,
boolean isLoaded,
AccelerationUnits units)
Returns the trolley deceleration specified by the parameter value of this crane in the specified
units . |
double |
trolleySpeed(T agent,
boolean isLoaded,
SpeedUnits units)
Returns the trolley speed specified by the parameter value of this crane in specified
units . |
void |
updateDynamicProperties()
Updates dynamic properties of this shape only (without structural contents, if any) in a given context.
|
void |
validateInitialPosition(OverheadCraneBridge bridge,
double offsetM) |
getX, getXYZ, getY, getZ, notifyDirtyState, setX, setXYZ, setY, setZ
getDrawMode, getLevel
error, getFullName, getOutsideLevelZ, getPresentable, getSpace, initialize, isClickHandled, isPublic, onClick, remove, setDrawMode, setOwner
discardOwner, executeUserAction, findSVGElement, getName, getSVGId, initializeInternal, isVisible, onAggregatorInitialized, onAggregatorVisibilityChanged, removeSVGFromOwner, resetSVGState, setVisible, updateDynamicPropertiesStructural, updateSVGProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMarkup, setMarkup
initializeInternal, onAggregatorVisibilityChanged, postInitialize
public OverheadCrane()
addBridge(OverheadCraneBridge)
.
Default bridge may be accessed by getBridges()
.
Crane and its bridges may be modified until crane's initialization.
Initial state of the crane will be verified on first attempt to use the crane.@AnyLogicInternalCodegenAPI public OverheadCrane(Agent owner, ShapeDrawMode drawMode, boolean isPublic, boolean isObstacle, com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T> descriptor, double x, double y, double z, double rotation, double runwayLengthMeters, double craneWidthMeters, double craneHeightMeters, double bridgeWidthMeters, double safetyGap, java.awt.Color color, java.awt.Color trolleyColor, OverheadCraneDrawingType type, OverheadCraneGirderDrawingType girderType, OverheadCraneBridge... bridges)
public void setLevel(Level level)
setLevel
in interface LevelElement
setLevel
in class AbstractLevelMarkup
public java.util.List<Agent> getAgents()
public void addBridge(OverheadCraneBridge bridge)
public java.util.List<Agent> getAgentsInQueue()
public void onBridgeMovementFinished(OverheadCraneBridge bridge)
onBridgeMovementFinished()
callback codepublic void onTargetReached(OverheadCraneBridge bridge)
onTargetReached()
callback codepublic void onBridgeStateChange(T agent, OverheadCraneBridge bridge, OverheadCraneBridgeState type)
onBridgeStateChange()
callback code@AnyLogicInternalAPI public OverheadCraneBridgeState getState(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Point getTargetPoint(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Agent getAgent(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public double getPriority(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public BridgeDirection getDirection(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public double getBridgeDistanceTo(OverheadCraneBridge bridge, Point p, LengthUnits units)
@AnyLogicInternalAPI public java.util.List<OverheadCraneBridge> getBridgesOnRouteTo(OverheadCraneBridge bridge, Point p)
@AnyLogicInternalAPI public java.util.List<Agent> getQueue(Crane<Agent> crane)
@AnyLogicInternalAPI public double getCurrentBridgeOffset(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public double getCurrentTrolleyOffset(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public double getCurrentHookOffset(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public void attachAgentAnimation(OverheadCraneBridge bridge, T agent)
@AnyLogicInternalAPI public void detachAgentAnimation(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Position getHookPosition(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Position getBridgePosition(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Position getTrolleyPosition(OverheadCraneBridge bridge)
public double getInitialTrolleyPosition(LengthUnits units)
OverheadCraneBridge.getInitialTrolleyOffset(LengthUnits)
insteadunits
- - a constant defining the length unitspublic double getInitialHookPosition(LengthUnits units)
OverheadCraneBridge.getInitialHookOffset(LengthUnits)
insteadunits
- - a constant defining the length unitspublic double getInitialBridgePosition(LengthUnits units)
OverheadCraneBridge.getInitialBridgeOffset(LengthUnits)
insteadunits
- - a constant defining the length unitspublic void setInitialHookPosition(double hookPosition, LengthUnits units)
OverheadCraneBridge.setInitialHookOffset(double, LengthUnits)
hookPosition
- - the new height of the crane's hookunits
- - a constant defining the length unitspublic void setInitialBridgePosition(double bridgePosition, LengthUnits units)
OverheadCraneBridge.setInitialBridgeOffset(double, LengthUnits)
bridgePosition
- - the new position of the bridgeunits
- - a constant defining the length unitspublic void setInitialTrolleyPosition(double trolleyPosition, LengthUnits units)
OverheadCraneBridge.setInitialTrolleyOffset(double, LengthUnits)
trolleyPosition
- - the new position of the crane's trolleyunits
- - a constant defining the length units@AnyLogicInternalAPI public boolean canArriveAt(OverheadCraneBridge bridge, Point hookDestination)
@AnyLogicInternalCodegenAPI public void updateDynamicProperties()
AbstractMarkup
updateDynamicProperties
in class AbstractMarkup
@AnyLogicInternalAPI public boolean isReady()
Crane
true
if the crane is ready to work with new agent and false
otherwise.@AnyLogicInternalAPI public void onLoading(T agent)
public void onLoading(OverheadCraneBridge bridge, T agent)
onLoading()
callback code@AnyLogicInternalAPI public void onUnloading(T agent)
onUnloading
in class Crane<T extends Agent>
public void onUnloading(OverheadCraneBridge bridge, T agent)
onUnloading()
callback codepublic void onRelease(OverheadCraneBridge bridge, T agent)
onRelease()
callback codepublic void onSeize(OverheadCraneBridge bridge, T agent)
onSeize()
callback codepublic 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
coordinates@AnyLogicInternalAPI public void resetStats(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public double getUtilization(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public void onFailed()
Crane
onFailed()
callback code@AnyLogicInternalAPI public void onRepaired()
Crane
onRepaired()
callback codeonRepaired
in interface com.anylogic.engine.markup.material_handling.IMaterialFallible
onRepaired
in class Crane<T extends Agent>
@AnyLogicInternalAPI public boolean isFailed()
Crane
true
if the crane is failed and false
otherwise.@AnyLogicInternalAPI public void fail()
Crane
failed
state@AnyLogicInternalAPI public void repair()
Crane
failed
state@AnyLogicInternalAPI public boolean isFailed(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public boolean isReady(OverheadCraneBridge overheadCraneBridge)
public void onFailed(OverheadCraneBridge overheadCraneBridge)
public void onRepaired(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public void fail(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public void repair(OverheadCraneBridge overheadCraneBridge)
@AnyLogicInternalAPI public boolean isLoaded(OverheadCraneBridge overheadCraneBridge)
public Position getAbsoluteHookPosition(OverheadCraneBridge overheadCraneBridge)
Position
in pixels.
Position.rotation
contains the rotation of crane.@AnyLogicInternalAPI public void moveBridge(OverheadCraneBridge bridge, Point absolutePoint, double safeHeight, boolean remainsAtTarget)
@AnyLogicInternalAPI public void moveBridgeByProgram(OverheadCraneBridge bridge, CraneProgram program)
@AnyLogicInternalAPI public CraneProgram getBridgeProgram(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public int numberOfAgentsHandled(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public int numberOfConflicts(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public double totalTravelledDistance(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public double totalTransportationDistance(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public double totalDistanceInConflict(OverheadCraneBridge bridge, LengthUnits units)
@AnyLogicInternalAPI public double totalTravellingTime(OverheadCraneBridge bridge, TimeUnits units)
@AnyLogicInternalAPI public double averageCycleTime(OverheadCraneBridge bridge, TimeUnits units)
@AnyLogicInternalAPI public double timeInState(OverheadCraneBridge bridge, OverheadCraneBridgeState state, TimeUnits units)
@AnyLogicInternalAPI public double totalTimeInConflicts(OverheadCraneBridge bridge, TimeUnits units)
@AnyLogicInternalAPI public com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T> getLibraryDescriptor()
public OverheadCraneMovementMode getMovementMode()
OverheadCraneMovementMode
public OverheadCraneDrawingType getType()
OverheadCraneDrawingType
public OverheadCraneGirderDrawingType getGirderType()
OverheadCraneGirderDrawingType
public java.awt.Color getColor()
OVERHEAD_CRANE_BRIDGE
crane typeOVERHEAD_CRANE_BRIDGE
crane typepublic void setColor(java.awt.Color color)
OVERHEAD_CRANE_BRIDGE
crane typecolor
- - specified color of of hook and crane's rails for OVERHEAD_CRANE_BRIDGE
crane typepublic java.awt.Color getTrolleyColor()
public void setTrolleyColor(java.awt.Color trolleyColor)
trolleyColor
- - specified color. Use null
to hide the trolley.public void setType(OverheadCraneDrawingType type)
type
- - see OverheadCraneDrawingType
public void setGirderType(OverheadCraneGirderDrawingType girderType)
girderType
- - see OverheadCraneGirderDrawingType
public double getRotation()
public double getCraneWidth()
public double getCraneWidth(LengthUnits units)
units
- - constant value that specifies unitspublic void setCraneWidth(double craneWidth, LengthUnits units)
craneWidth
- - the width of the craneunits
- - constant value that specifies unitspublic void setCraneHeight(double craneHeight, LengthUnits units)
craneHeight
- - the height of the craneunits
- - constant value that specifies unitspublic double getRunwayLength()
public double getRunwayLength(LengthUnits units)
units
- - a constant defining the length unitspublic void setRunwayLength(double length, LengthUnits units)
length
- - length valueunits
- - a constant defining the length unitspublic void setRotation(double rotation)
rotation
- - angle in radians@AnyLogicInternalAPI public Point getInitialHookPoint()
Crane
getInitialHookPoint
in class Crane<T extends Agent>
@AnyLogicInternalAPI public Point getInitialHookPoint(LengthUnits units)
Crane
getInitialHookPoint
in class Crane<T extends Agent>
units
- - a constant defining the length unitsLengthUnits
public java.util.List<OverheadCraneBridge> getBridges()
MarkupShape.initialize()
method.
You may determine order of bridges via their parking position before call of MarkupShape.initialize()
method. Afterwards order is unmodifiable.public int getNumberOfBridges()
public OverheadCraneBridge getBridge(int index)
index
- - index of bridge. An integer value from 0 to numberOfBridges - 1
Indexes are setted by MarkupShape.initialize()
method in order of increasing bridge's offset (from left to right for crane with zero rotation). Indexes may not be changed afterwards.
You may get bridge index via OverheadCraneBridge.getIndex()
methodpublic double getBridgeWidth()
public double getBridgeWidth(LengthUnits units)
units
- - a constant defining the length unitspublic void setBridgeWidth(double bridgeWidth, LengthUnits units)
bridgeWidth
- - width valueunits
- - a constant defining the length unitspublic double getSafetyGap()
public double getSafetyGap(LengthUnits units)
units
- - a constant defining the length unitspublic void setSafetyGap(double safetyGap, LengthUnits units)
safetyGap
- - safety gap valueunits
- - a constant defining the length units@AnyLogicInternalAPI public Point getCurrentHookPosition()
@AnyLogicInternalAPI public Point getCurrentHookPosition(OverheadCraneBridge bridge)
@AnyLogicInternalAPI public Position getAbsoluteHookPosition()
Position
in pixels. Also updates animation.
Position.rotation
contains the rotation of crane.getAbsoluteHookPosition
in class Crane<T extends Agent>
Position.rotation
public void setAccelerationEnabled(boolean value)
true
than crane will move with specified accelerations.public double trolleySpeed(T agent, boolean isLoaded, SpeedUnits units)
units
. Note that this value does not correspond to
the actual trolley speed if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.trolleySpeed
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the speed unitspublic double hoistSpeed(T agent, boolean isLoaded, SpeedUnits units)
units
. Note that this value does not correspond to
the actual hoister speed if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.hoistSpeed
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the speed unitspublic double bridgeSpeed(T agent, boolean isLoaded, SpeedUnits units)
units
. Note that this value does not correspond to
the actual bridge speed if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.bridgeSpeed
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the speed unitspublic void setMovementMode(OverheadCraneMovementMode movementMode)
OverheadCraneMovementMode
public double trolleyDeceleration(T agent, boolean isLoaded, AccelerationUnits units)
units
. Note that this value does not correspond to
the actual trolley deceleration if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.trolleyDeceleration
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the acceleration unitspublic double trolleyAcceleration(T agent, boolean isLoaded, AccelerationUnits units)
units
. Note that this value does not correspond to
the actual trolley acceleration if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.trolleyAcceleration
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the acceleration unitspublic double bridgeDeceleration(T agent, boolean isLoaded, AccelerationUnits units)
units
. Note that this value does not correspond to
the actual bridge deceleration if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.bridgeDeceleration
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the acceleration unitspublic double bridgeAcceleration(T agent, boolean isLoaded, AccelerationUnits units)
units
. Note that this value does not correspond to
the actual bridge acceleration if the carried agent is currently in the MoveByCrane block which has useOperationTime option enabled.bridgeAcceleration
in interface com.anylogic.engine.markup.material_handling.IOverheadCraneDescriptor<T extends Agent>
agent
- - the item that the crane is going to move. It is null
when the crane moves without load.isLoaded
- - a flag that you can use to specify different values for the crane's movement with and without load.units
- - a constant defining the acceleration units@AnyLogicInternalAPI public void validateInitialPosition(OverheadCraneBridge bridge, double offsetM)
@AnyLogicInternalAPI public double getStatisticsStartTime()
public double getUtilization()
public void resetStats()
public int numberOfAgentsHandled()
public void setObstacle(boolean isObstacle)
isObstacle
- - if true
, the crane is set as an obstacle. Otherwise, not.public double getCraneHeight(LengthUnits units)
getCraneHeight
in class Crane<T extends Agent>
units
- - a constant defining the length unitspublic double getCraneHeight()
getCraneHeight
in class Crane<T extends Agent>
@AnyLogicInternalAPI public boolean isLoaded()
public boolean isAccelerationEnabled()
true
, than acceleration and deceleration values will be considered.@AnyLogicInternalAPI public BoundingRectangle getBoundingRectangle()
public boolean isObstacle()
true
if this crane is considered an obstacle by transporters moving in free space mode. Otherwise, returns false
.true
if this crane is considered an obstacle by transporters moving in free space mode. Otherwise, returns false
Copyright © AnyLogic North America, LLC. All Rights Reserved.