Abstract Base Class for PDEVS
stored in DEVS_PATH/00-simulator/devs.p
Is provided as p-code.
Contents
| Based on modified parallel DEVS algorithms (Zeigler, Schwatinski). |
| This base class implements properties which are in common for atomic models and their associated simulators and for coupled models and their associated coordinators. |
| C. Deatcu 2016 |
Description
Class definition file of the base class for all PDEVS associated simulators, coordinators and models.
constructor call: obj = devs()
Superclass
handle
Properties
- name : string, (unique) name of this model
- x : structure, set of inport name/input value pairs
- y : structure, set of outport name/output value pairs
- sub_of : string, name of the superordinate model --> for debugging purposes
- tnext : float, time of next event
- tlast : float, time of last event
- debug_flag : 0|1|2|3, no messages|messages|steps|visualize x, y, and s of atomics (default 0)
- observe_flag : 0|1, log states of atomics or not (default 0)
constant, hidden:
- epsi : float, 1.0000e-08, accuracy for comparisons of simulation time. If two event times differ less than this value, these events will be identified as simultaneous events.
Class methods
Set Methods for Ports
- set_x_ports(obj, ports): initializes the structure obj.x (the inports) with fields defined in ports
- set_y_ports(obj, ports): initializes the structure obj.y (the outports) with fields defined in ports
- set.y(obj,yvalues): safe setting of output values in y
DEVS Tbx Home Examples Modelbase << Back