HYBRID ATOMIC PDEVS am_canner

stored in DEVS_PATH/01-modelbase/orange_juice_canning/am_canner.m

Contents

Description

Class definition file for an hybrid atomic PDEVS model that implements a canning process that gets juice from the tank, fills to bottles and packs 48 bottles of 1 gallon to a pallet.

constructor call: obj = am_canner(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 two inputs x: in1 and in2, one for truck arrival signal from truck, one for incoming signal from tank (tank empty),

has one output y: out1 to send pallets of juice to counter

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

States

discrete in s:

s.sigma: for time advance

s.up_time: for statistics

s.start_time: record start time of current canning process to calculate up_time later

continuous:

c_states = [CannerLevel; CannerRate]

Hybrid Characteristics

mealy = 0: model is of Moore type (needs no inputs to calculate outputs)

output_length = 1: the function lamda_c returns 1 element (current CannerRate)

state events:

System Parameters in sysparams

none

More

global SIMUSTOP : can be used to stop allover simulation





DEVS Tbx Home      Examples      Modelbase           << Back