Create <expression1> {As <entity name>}
{TAKE {<expression2>} <resource>,...}
Create 10 As EntX
Create 2 As EntB TAKE 1 Res1, 2 Res2
Create Var1 As Ent(Var2) TAKE Var3 Res(Var4)
Creates a specified number of entities in addition to the original entity and copies all attributes of the original entity to each new entity. The first entity created can optionally take any of the resources owned by the parent entity. The newly created entities require no additional capacity at the location and are processed immediately.
The Create statement can simulate the creation of paperwork that needs to be hand-carried to another location to be approved while the base entity continues to process. Before the base entity can exit the location, the paperwork must be approved and routed back to the original location where it is joined to the base entity.
The operation column of process edit tables only. Create may not be used in combination with Load, Unload, Group, Ungroup, Split As, or other Create statements in the same processing logic.
<expression1>
The number of new entities to create. This expression is evaluated every time the create statement is encountered.
AS <entity name>
The name of the new entities.
TAKE <expression2>
The first created entity will take any resources listed here from the parent entity. This component is optional. The second syntax example above creates two EntB’s. The first of the two will own one unit of Res1 and two units of Res2.
<resource>
The name of the resource whose ownership should be transferred to the first new entity. Using the keyword All here will take all resources owned by the parent entity.
The Create statement forms a new entity with new statistical information and cost.
The following shows how one entity, Record, creates two new entities. Note that there is no routing defined in this process for the new entities, Copy. The new entities are handled according to the logic defined in the subsequent process.
Process Table
Entity... |
Location... |
Operation (min)... |
Record |
Station1 |
Wait N(8,.3) Create 2 As Copy |
Copy |
Station1 |
Wait U(3,.3) |
Routing Table
Blk |
Output... |
Destination... |
Rule... |
Move Logic... |
1 |
Record |
Station2 |
First 1 |
Move For 5 |
1 |
Copy |
File_Cab |
First 1 |
Move For 5 |
See Also
Order, Split As, Ent(), and Res().
© 2019 ProModel Corporation • 705 E Timpanogos Parkway • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |