AnyLogic
Expand
Font size

ReleaseCrane

Releases the crane or the bridge previously seized by the SeizeCrane or MoveByCrane block. The release operation takes zero time.

You can define the crane's behaviour after release in the After release, hook parameter using one of the two available policies:

  • Stays where it is. The crane's lifting device will remain in one spot after the release until seized by an agent (material item). In case of multibridge cranes, the released bridge will remain in one spot unless moved by a bridge with higher priority.
  • Returns to the initial position if no other tasks. During the return movement, the specified Safe height is observed. For jib cranes, the initial position is calculated according to the values specified in the Initial jib angle and Trolley position parameters in the crane's properties. For overhead cranes, the initial position depends on the values specified in the Bridge parking position and Trolley position properties of the crane's bridge.
All seized cranes must be released before the agent (material item) is disposed of by the Sink block.
Demo model: SeizeCrane and ReleaseCrane

Parameters

After release, hook
Defines the behaviour of the crane's lifting device after the crane has released the material item: either the lifting device Stays where it is or Returns to initial position if no other tasks. During the return movement, the specified Safe height is observed. For jib cranes, the initial position of the hook will be calculated according to the values specified in the Initial jib angle and Trolley position parameters of the crane's properties. For overhead cranes, it will depend on the value specified in the Bridge parking position and Trolley position properties of the crane's bridge.
Type of value: CraneReleaseMovingPolicy
Local variable: Crane crane - the crane
Safe height
Specifies absolute minimum height to raise the agent in order to move it.
Type of value: double
Local variable: Crane crane - the crane

Actions

On enter
Here you can type Java code that will be executed when the agent enters the block.
Local variable: T agent - the agent (material item)
On exit
Here you can type Java code that will be executed when the agent leaves the block.
Local variable: T agent - the agent (material item)
On release crane
Here you can type Java code that will be executed when the agent (material item) releases the crane or the bridge.
Local variables:
T agent - the current agent
Crane crane - the crane

Ports

in
The input port.
out
The output port.
How can we improve this article?