ATOMIC PDEVS event_detect

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

Contents

Description

Class definition file for an atomic PDEVS model which acts as QSS1 event detection for model of bouncing ball. Becomes active, when ball hits the ground,

It is not an universal QSS1 event detection atomic, because detection of state events depends on model. THIS event detection atomic reacts on a zero-crossing from + to - . It could act as blueprint to develop QSS1 event detection atomics for other purposes.

constructor call: obj = event_detect(name,inistates,elapsed)

Superclass

atomic (superclass acts as associated simulator)

Class Methods

characteristic functions:

display functions:

Inherited Properties

inherited from atomic:

Ports

has one input x : in1 for quantized rate of change

has one output y : out1, output a state event signal

States in s

s.sigma : for time advance

s.X : X values

s.dX : derivation

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

s.se : marks, if an event is possible. Is set to 1, if derivation s.dX is < 0 and set to 0 otherwise.

System Parameters in sysparams

none

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