HYBRID ATOMIC PDEVS am_truck

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

Contents

Description

Class definition file for an hybrid atomic PDEVS model that implements a truck, that arrives filled with 2000 gallons and is then unloaded.

constructor call: obj = am_truck(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, 1 for incoming trucks, one for suspend-unloading and restart-unloading signals

has two outputs y: out1 and out2, 1 to send empty truck to undocking server, 1 to send truck-arrival signal to canner

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

States

discrete in s:

s.sigma: for time advance

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

s.arrival: marks, if last external event was truck arrival

continuous:

c_states = [TruckLevel; TruckRate]

Hybrid Characteristics

mealy = 0: model is of Moore type

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

state events:

System Parameters in sysparams

none

More

global SIMUSTOP : can be used to stop allover simulation





DEVS Tbx Home      Examples      Modelbase           << Back