### DELAY

The delay module delays an entity for a specified amount of time. The time is calculated bt evaluating the appropriate expression.

Prompt | Valid Entry | Default
Delay Type | Expression, Static Name, Attribute | Expression
Static | Symbol Name [Statics] | Required
Attribute | Symbol Name [Attributes] | Required
Expression | Expression (Distributions) | 0
Storage | Symbol Name [Storages] | (No Storage)

Examples

Prompt | Value
Delay Type | Attribute
Attribute | Process_time

When an entity arrives at this delay module it is delayed by the amount specified in the ‘Process_time’ attribute of the entity.

Prompt | Value
Delay Type | Expression
Expression | ExamineTime*(Patient==Routine) + ExamineTime*(Patient==Critical)*2.0

When an entity arrives at this delay module it is delayed by ExamineTime if the attribute patient is equal to routine. The delay is double this if the patient attribute is equal to Critical.
If patient has any other value the delay time is zero. This works because if the logical expression evalutes to TRUE this is interpreted as 1 and a FALSE as 0.