ReleaseTransporter

Releases the transporter previously seized by the SeizeTransporter block. 

The transporter Returns to home location if no other tasks (if it is not immediately seized by another agent), Returns to home location each time or Stays where it is after being released (this setting is configured by the Transporter parameter).

The operation takes zero time. 

Note that all seized transporters must be released before the agent is disposed by the Sink block.

Demo model: SeizeTransporter and ReleaseTransporter

Parameters

Transporter [dynamic]
Defines, whether the released transporter Returns to home location if no other tasks (if it is not immediately seized by another agent), Returns to home location each time, or Stays where it is after being released.
Type of value: ReleaseTransporter.TransporterReleaseMovingPolicy
Valid values: Returns to home location if no other tasks - ReleaseTransporter.MP_RETURNS_TO_HOME_IF_NO_OTHER_TASKS
                     Returns to home location each timeReleaseTransporter.MP_RETURNS_TO_HOME
                     Stays where it isReleaseTransporter.MP_STAYS_WHERE_IT_IS
Local variable:  Agent transporter - the transporter that is currently released by the block
Actions
On enter [code]
Here you can type Java code to be executed when an agent enters the block.
Local variable:  T agent - the agent that just entered the block
On release transporter [code]
Here you can type Java code to be executed when the transporter has been released. 
Local variables:  T agent - the agent that is releasing the transporter
                          Agent unit - the transporter being released
On exit [code]
Here you can type Java code to be executed when an agent exits the block.
Local variable:  T agent - the agent that is exiting the block currently

Ports

in
The input port.
out
The output port.