Defining Logic > Statements > Get

Get

Captures a specified number of resources or resource groups as they become available. If the entity already possesses one of the requested resources, the entity will still try to capture an additional unit of that resource. When capturing multiple resources, each resource will be captured as soon as it becomes available until all resources are captured.

 

Resources captured by a GET statement can only be preempted when the entity owning the resource is undergoing a WAIT or USE time except in move logic. If the resource is preempted during one of those times, the time will continue where it left off when the resource becomes available.

 

Every GET must have a corresponding FREE or an error occurs when the entity exits the system. If an entity owns one or more resources and is subsequently attached to or batched with another entity, it cannot free the resource(s) until it is detached or unbatched.

Components

Please note: When using the USE or GET statement to capture a resource in activity logic, you do not need to define a resource in the Activity Properties dialog. The resource defined for use in the Activity Properties dialog will attempt to be captured in addition to any resources captured using the USE or GET in activity logic


© 2015 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com