HYBRID ATOMIC PDEVS am_tank

stored in DEVS_PATH/01-atomic-modelbase/orange_juice_canning/tank.m

Contents

Description

Class definition file for an hybrid atomic PDEVS model that implements a tank.

constructor call: obj = am_tank(name,inistates,c_inistates,elapsed)

Superclass

hybridatomic (superclass acts as associated hybrid simulator)

Class Methods

characteristic functions:

display functions:

Inherited Properties

inherited from atomic:

inherited from hybridatomic:

Ports

has no inputs x

has two outputs y: out1 and out2, 1 to send signals to trucks, one to send signals to canning process

Note: continuous couplings need no ports. They are managed via continuous variables' indices.

States

discrete in s:

s.sigma: for time advance

s.filling_suspended: 0 or 1, 1 if unloading is allowed, 0 if not

s.event_type: 'stop_filling' or 'continue_filling' or 'stop_canning'

continuous:

c_states = [TankLevel; TankRate]

Hybrid Characteristics

mealy = 1: model is of Mealy type

output_length = 1: the function lamda_c returns 1 element

state events:

System Parameters in sysparams

none

More

global SIMUSTOP : can be used to stop allover simulation





DEVS Tbx Home      Examples      Modelbase           << Back