Package com.anylogic.engine.markup
- 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
- Method Details
- java.lang.Object
- com.anylogic.engine.markup.AbstractMarkup
- com.anylogic.engine.markup.MarkupShape
- com.anylogic.engine.markup.AbstractLevelMarkup
- com.anylogic.engine.markup.Crane<T>
- All Implemented Interfaces:
AggregatableAnimationElement
,HasLevel
,LevelElement
,LevelMarkup
,com.anylogic.engine.markup.material_handling.IMaterialFallible
,SVGElement
,Serializable
- Direct Known Subclasses:
JibCrane
,OverheadCrane
,OverheadCraneBridge
public abstract class Crane<T extends Agent> extends AbstractLevelMarkup implements com.anylogic.engine.markup.material_handling.IMaterialFallible
- See Also:
- Serialized Form
Modifier and Type | Method | Description |
---|---|---|
abstract void | fail() |
Sets the crane to
failed state |
abstract Position | getAbsoluteHookPosition() |
Returns the current hook position as an instance of
Position in pixels. |
abstract double | getCraneHeight() | |
abstract double | getCraneHeight | |
abstract Point | getInitialHookPoint() |
Returns the initial hook point in pixels, calculated according to the crane's dimensions and converted to pixels with crane's space.
|
abstract Point | getInitialHookPoint |
Returns the initial hook point in the specified length units.
|
abstract double | getStatisticsStartTime() | |
abstract double | getUtilization() |
Returns the crane utilization: the fraction of time the crane was operating.
|
double | getX() |
Returns the X coordinate of this crane
|
Point | getXYZ() |
Returns the point location of this element
|
double | getY() |
Returns the Y coordinate of this crane
|
double | getZ() |
Returns Z-coordinate of this crane relative to crane's level
|
abstract boolean | isFailed() |
Returns
true if the crane is failed and false otherwise. |
abstract boolean | isReady() |
Returns
true if the crane is ready to work with new agent and false otherwise. |
void | notifyDirtyState() |
should be called by controller, when it forces the changing of markup's state
|
abstract void | onLoading | |
abstract void | onUnloading | |
abstract void | repair() |
Repairs the crane from
failed state |
abstract void | resetStats() |
Resets the crane utilization statistics.
|
void | setX |
Sets the X coordinate of this crane
|
void | setXYZ |
Places the crane into the argument point location
|
void | setY |
Sets the Y coordinate of this crane
|
void | setZ |
Sets the Z coordinate of this crane
|
contains, 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
@AnyLogicInternalAPI public void notifyDirtyState()
should be called by controller, when it forces the changing of markup's state
- Parameters:
currentPosition
-
public double getX()
Returns the X coordinate of this crane
- Returns:
- the X coordinate of this crane
public double getY()
Returns the Y coordinate of this crane
- Returns:
- the Y coordinate of this crane
public abstract Point getInitialHookPoint()
Returns the initial hook point in pixels, calculated according to the crane's dimensions and converted to pixels with crane's space.
- Returns:
- initial hook point in pixels
public abstract Point getInitialHookPoint(LengthUnits units)
Returns the initial hook point in the specified length units.
- Parameters:
units
- - a constant defining the length units- Returns:
- initial hook point in the specified
LengthUnits
public double getZ()
Returns Z-coordinate of this crane relative to crane's level
public Point getXYZ()
Returns the point location of this element
- Returns:
- the Point object with coordinates of the node
public void setX(double x)
Sets the X coordinate of this crane
- Parameters:
x
- the X coordinate of this crane
public void setY(double y)
Sets the Y coordinate of this crane
- Parameters:
y
- the Y coordinate of this crane
public void setZ(double z)
Sets the Z coordinate of this crane
- Parameters:
z
- the Z coordinate of this crane
public void setXYZ(Point point)
Places the crane into the argument point location
- Parameters:
point
- the location that the crane should be placed into
public abstract void fail()
Sets the crane to
failed
state- Specified by:
fail
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public abstract void repair()
Repairs the crane from
failed
state- Specified by:
repair
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
public abstract boolean isFailed()
Returns
true
if the crane is failed and false
otherwise.- Specified by:
isFailed
in interfacecom.anylogic.engine.markup.material_handling.IMaterialFallible
- Returns:
true
if the crane is failed andfalse
otherwise
public abstract boolean isReady()
Returns
true
if the crane is ready to work with new agent and false
otherwise.- Returns:
true
if the crane is ready to work with new agent andfalse
otherwise
public abstract double getUtilization()
Returns the crane utilization: the fraction of time the crane was operating. The returned crane utilization value lies in the range [0..1].
public abstract void resetStats()
Resets the crane utilization statistics.
public abstract void onLoading(T agent)
public abstract void onUnloading(T agent)
public abstract Position getAbsoluteHookPosition()
Returns 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.- Returns:
- current hook point in pixels with the angle as
Position.rotation
public abstract double getCraneHeight()
public abstract double getCraneHeight(LengthUnits units)
@AnyLogicInternalAPI public abstract double getStatisticsStartTime()