next up previous
Next: Describing Simulation Objects Up: User Manual: Building Simulator Previous: Nodes

Subsections

   
Controlling the Simulation

The building simulator communicates with its environment via so-called eventstreams. A distinguished one is used to control the simulation itself, it is called the controlstream. It can be used to

   
Entry in Configuration File

Each configuration must contain exactly one definition of a controlstream. This must be an entry of the form

'[ controlstream,' Window | Silent '].'
Window 'window' [',' End [',' Mode [',' Breaks [',' run ] ] ] ]
End 'infinity' | Seconds | Compound
Compound '{' [ [ Hours ',' ] Minutes ',' ] Seconds ',' Milliseconds'}'
Hours <non-negative integer>
Minutes <non-negative integer>
Seconds <non-negative integer>
Milliseconds <non-negative integer>
Mode 'loose' | 'fixed' |
'[' fixed [',' Cont [',' Factor [',' Slack ] ] ] ']'
Cont 'cont' | 'stop'
Factor <positive integer>
Slack <positive integer>
Breaks '[]' | '[' (Seconds | Compound) (',' (Seconds | Compound))* ']'
Silent 'silent' [',' End [',' Mode ] ]
End describes when the simulation shall stop, i.e. after the given amount of simulation time. Mode describes whether the building simulator runs with a fixed binding between real and simulation time or as fast as possible. Cont describes whether the building simulator shall issue a warning or stop simulator when simulation time is more than Slack seconds simulation time behind. Breaks can be used to define breakpoints. If Window is used, a graphical interface is started up which can be used to change these values online and throughout an ongoing simulation: if Silent is used no graphical interface is started. In the last case there is no possibility to influence the running simulator. When run is given in the description of Window, the simulation starts automatically.

   
Graphical Interface to Controlstream

The meaning of the buttons and scales should be obvious. To enter breakpoints the focus of the window system has to be set to the corresponding input form. The required input syntax is in the configuration file is:

[ [ [ Days ',' ] Hours ',' ] Minutes ',' ] Seconds


next up previous
Next: Describing Simulation Objects Up: User Manual: Building Simulator Previous: Nodes
deiss@informatik.uni-kl.de