ATOMIC PDEVS qss1

stored in DEVS_PATH/01-modelbase/qss/qss1.m

Contents

Description

Class definition file for an atomic PDEVS model which acts as QSS1 integrator. State event retection is provided in a model of a bouncing ball.

It is not an universal QSS1 integrator, because reaction on state events depends on model. THIS integrator reverses direction and attenuates the movement, when a state event message arrives at input in2. It could act as blueprint to develop QSS1 integrators for other purposes. But as long as you just want to integrate and leave the input in2 just unconnected, then it is fine ;-) ;

constructor call: obj = qss1(name,inistates,elapsed,epsilon,dq)

Superclass

atomic (superclass acts as associated simulator)

Class Methods

characteristic functions:

display functions:

Inherited Properties

inherited from atomic:

Ports

has two inputs x : in1 and in2, one for input of rate of change, one for state events

has one output y : out1, output for quantized states

States in s

s.sigma : for time advance

s.X : X values

s.dX : derivation

s.q : quantized state

s.se : marks, if state event occurred

s.traj : to manually record exact values (X/t pairs)

s.qtraj : to manually record quantized values (q/t pairs)

System Parameters in sysparams

sysparams.epsilon : hysteresis

sysparams.dq : quantum --> accuracy = quantization level of QSS1-Integrator

More

global SIMUSTOP : can be used to stop allover simulation e.g. when a predefined number of jobs has finished





DEVS Tbx Home      Examples      Modelbase           << Back