public final class CraneProgram
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
CraneProgram.Command |
static class |
CraneProgram.CommandMoveAtomic |
static class |
CraneProgram.CommandMoveComposite |
static class |
CraneProgram.CommandType |
static class |
CraneProgram.CommandWait |
Constructor and Description |
---|
CraneProgram()
Creates empty program.
|
Modifier and Type | Method and Description |
---|---|
CraneProgram |
appendProgram(CraneProgram program)
Appends specified program to end of this program.
|
CraneProgram |
clone() |
CraneProgram |
delay(double delayTime,
TimeUnits units)
Adds command to wait without any movement for specified time.
|
CraneProgram.Command |
getCommandInternal(int index) |
java.util.List<CraneProgram.Command> |
getCommandsInternal() |
CraneProgram |
moveBridge(double offset,
LengthUnits units)
Adds command to move bridge to
this program. |
CraneProgram |
moveComponentsConcurrently(double bridgeOffset,
double trolleyOffset,
double hookOffset,
LengthUnits units)
Adds command to move several components simultaneously to
this program. |
CraneProgram |
moveHook(double offset,
LengthUnits units)
Adds command to move hook to
this program. |
CraneProgram |
moveToPoint(Point destinationPx,
double safeHeight,
LengthUnits units)
Adds command to move all components to reach the specified point.
|
CraneProgram |
moveTrolley(double offset,
LengthUnits units)
Adds command to move trolley to
this program. |
java.lang.String |
toString() |
public final CraneProgram moveBridge(double offset, LengthUnits units)
this
program. Returns this
.offset
- - offset to move bridge from current position, may be negativeunits
- - length units of offsetpublic final CraneProgram moveTrolley(double offset, LengthUnits units)
this
program. Returns this
.offset
- - offset to move trolley from current position, may be negativeunits
- - length units of offsetpublic final CraneProgram moveHook(double offset, LengthUnits units)
this
program. Returns this
.offset
- - offset to move hook from current position, may be negativeunits
- - length units of offsetpublic final CraneProgram moveComponentsConcurrently(double bridgeOffset, double trolleyOffset, double hookOffset, LengthUnits units)
this
program.
The program will proceed to the next command after all components finishes their movement. Returns this
.bridgeOffset
- - offset to move bridge from current position, may be negativetrolleyOffset
- - offset to move trolley from current position, may be negativehookOffset
- - offset to move hook from current position, may be negativeunits
- - length units of offsetspublic final CraneProgram moveToPoint(Point destinationPx, double safeHeight, LengthUnits units)
OverheadCraneMovementMode
.
Returns this
.destinationPx
- - destination point in pixelssafeHeight
- - safe height to be considered by crane during movement. May be negative. If bridge has attached agent, agent's height will be considered automatically.units
- - units of safe heightpublic final CraneProgram delay(double delayTime, TimeUnits units)
this
.delayTime
- - time to wait, should be greater than 0units
- - time unitspublic final CraneProgram appendProgram(CraneProgram program)
this
.program
- - CraneProgram to appendpublic CraneProgram clone()
clone
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
@AnyLogicInternalAPI public CraneProgram.Command getCommandInternal(int index)
@AnyLogicInternalAPI public java.util.List<CraneProgram.Command> getCommandsInternal()
Copyright © AnyLogic North America, LLC. All Rights Reserved.