modelProcess

Process applied to the entities

Information

The Process module has been implemented to represent all the possible actions that can be defined.

Each received entity is counted to record the number of received entities. Also, an special attribute (the processStarttime) is assigned with the current simulation time to store the time the entity entered the module.

Depending on the selected action, the entity will be sent to the Delay block, if no seize action is selected, or otherwise to the Queue and Seize blocks. The Queue and Seize blocks manage the seize operation of the resource, that is connected to the Process module using the S and ACK ports.
After the seize operation, a tally indicator records the time spent by the entity waiting for the resource, and the processStartTime attribute is assigned again to store the beginning of the delay.
After the delay, and depending on the selected action, the entity will be sent to the Release block or to the Count block, that represents the exit of the module.
The Release block manages the release of the previously seized resource, sending the release petition through the port R. The last count block stores the number of entities that depart the module, and the tally records the amount of time spent in the process.

Parameters

TypeNameDefaultDescription
Stringname"process"name of the module
IntegerAction1Action to be performed by process
IntegerDelay_type17Delay time
IntegerPriority2priority to seize resource
IntegerAllocation1

Connectors

TypeNameDefaultDescription
DEVSLib.SRC.Interfaces.inPortIn
DEVSLib.SRC.Interfaces.outPortOut
DEVSLib.SRC.Interfaces.inPortACK
DEVSLib.SRC.Interfaces.outPortS
DEVSLib.SRC.Interfaces.outPortR

Components

TypeNameDefaultDescription
Realp11first parameter for the delay distribution
Realp22second parameter for the delay distribution
Realp33third parameter for the delay distribution
Realp44fourth parameter for the delay distribution
IntegerResourceUnits1Units of resource to seize/release
Integereinlast entity that entered the module
Integerelast entity that left the module
SIMANLib.Blocks.Queueq
SIMANLib.Blocks.Seizeseize
SIMANLib.Blocks.Delaydelay
SIMANLib.Blocks.Releaserelease
Queuequeue
DEVSLib.AuxModels.Selectselect
DEVSLib.AuxModels.Selectselect1
SIMANLib.Blocks.Countcount
SIMANLib.Blocks.Countcount1
SIMANLib.Elements.CounternumberIn
SIMANLib.Elements.CounternumberOut
SIMANLib.Elements.TallyStatTime
SIMANLib.Blocks.Tallytally5
String[5]stattype{"VATime", "NVATime", "WaitTime", "TransferTime", "OtherTime"}
String[5]statcost{"VACost", "NVACost", "WaitCost", "TransferCost", "OtherCost"}
SIMANLib.Blocks.Assignassign
SIMANLib.Elements.DStatNumberInQueue
SIMANLib.Elements.TallyQueueWaitTime
SIMANLib.Blocks.TallyqueueWaitTime
SIMANLib.Blocks.Assignassign2
SIMANLib.Elements.AttributeprocessStartTime