ATOMIC PDEVS am_hit_counter

stored in DEVS_PATH/01-atomic-modelbase/bouncing_ball/am_hit_counter.m

Contents

Description

Class definition file for an atomic PDEVS model that implements a counter for number of hits to the ground of hybrid ball models. Up to 10 balls can be connected to the counter. It acts as a pure sink.

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

Superclass

atomic (superclass acts as associated simulator)

Class Methods

characteristic functions:

display functions:

Inherited Properties

inherited from atomic:

Ports

has 10 inputs x: p1 to p10, each for one bouncing ball

has no output y: (is pure sink)

States in s

s.sigma: for time advance (always inf)

s.num_hits: count the number of hits (array)

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. Take a look at the comments in deltaextfun() where you find example usage.





DEVS Tbx Home      Examples      Modelbase           << Back