modelresource
Extends from AtomicDEVS (Partial atomic DEVS model).
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | Type | 0 | Type of the resource |
| Integer | Capacity | 1 | Number of resource units initially available |
| String | name (from AtomicDEVS) | "AtomicDEVS" | |
| Integer | numIn (from AtomicDEVS) | 1 | Num of input ports |
| Integer | numOut (from AtomicDEVS) | 1 | Num of output ports |
Connectors
| Type | Name | Default | Description |
|---|---|---|---|
| Interfaces.outPort | o | Output port to send answers to seize peitions | |
| Interfaces.inPort | s | Input port to receive seize petitions | |
| Interfaces.inPort | r | Input port to receive release petitions |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | T | time | |
| State | S (from AtomicDEVS) | Current State | |
| Integer | NR | S.cap - S.idle | |
| Real | RESUTIL | if NR <= 0 then 0 else NR/Capacity |
Contents
| Name | Description |
|---|---|
| Fcon | |
| Fext | |
| Fint | |
| Fout | |
| Fta | |
| initState |