|
|
||||||
|
Public Member Functions |
Public Attributes |
Protected Member Functions |
Protected Attributes |
List of all members
faudes::SimEventAttribute Class Reference Detailed DescriptionAttribute for an event in the context of simulation. When simulating one or more generators, at each instance of time there will be one or more transitions enabled. In order resolve this non-determinism in a defined way, each event may be equipped with either one of the following properties.
Note that the SimEventAttribute just holds the data to define the properties, a semantic implementation is in faudes::ProposingExecutor. The current implementation also stores simulation state data (ie evaluations of random variables), but this is likely to change in a future revision. As a faudes attribute, SimEventAttribute provides token io and is prepared for the use in the context of a faudes container. The file format of a set of events equipped with simulation attributes is illustrated by the below example for the simulation of a simple machine: <SimEvents>
% machine start: prioritised event with priority 100
"alpha"
% machine finsh: gauss distributed event with mue=10 and sigma=5, relative to guard
"beta"
<Stochastic> +Trigger+ +Gauss+ <Parameter> 10 5 </Parameter> </Stochastic>
% break down: gauss distributed event with mue=20 and sigma=5, relative to enabled time
"mue"
<Stochastic> +Delay+ +Gauss+ <Parameter> 20 5 </Parameter> </Stochastic>
% machine repair: prioritised event with priority 100
"lambda"
</SimEvents>
const SimStochasticEventAttribute & Stochastic(void) const Get stochastic attribute. Definition: sp_simeventset.h:233 const SimPriorityEventAttribute & Priority(void) const Get priority attribute. Definition: sp_simeventset.h:223 Definition at line 149 of file sp_simeventset.h.
Constructor & Destructor Documentation◆ SimEventAttribute() [1/2]
Default constructor. Construct a SimEventAttribute with priority 0. Definition at line 159 of file sp_simeventset.h. ◆ SimEventAttribute() [2/2]
Copy constructor. Definition at line 165 of file sp_simeventset.h. Member Function Documentation◆ DoAssign()
Assignment method.
Definition at line 19 of file sp_simeventset.cpp. ◆ DoEqual()
Test equality.
Definition at line 36 of file sp_simeventset.cpp. ◆ DoRead()
Reads the attribute from TokenReader, see AttributeVoid for public wrappers. If the current token indicates a simulation event section, the method reads all consecutive simulation attributes. Else it does nothing. Exceptions may only be thrown on invalid data within the section. The label argument is ignored, we use hardcoded keywords for the four attributes. The context argument is ignored.
Reimplemented from faudes::AttributeCFlags. Definition at line 84 of file sp_simeventset.cpp. ◆ DoWrite()
Writes the attribute to TokenWriter, see AttributeVoid for public wrappers. Writes all present simulation event attributes to include the defining data. The label argument is ignored, we use hardcoded keywords. The context argument is ignored.
Reimplemented from faudes::AttributeCFlags. Definition at line 50 of file sp_simeventset.cpp. ◆ IsDefault()
Test for default value.
Reimplemented from faudes::AttributeCFlags. Definition at line 174 of file sp_simeventset.h. ◆ IsPriority()
Test for priority property.
Definition at line 191 of file sp_simeventset.h. ◆ IsStochastic()
Test for stochastic property.
Definition at line 183 of file sp_simeventset.h. ◆ Priority() [1/2]
Set priority behaviour. Define this attribute to indicate execution with the specified priority.
Definition at line 211 of file sp_simeventset.h. ◆ Priority() [2/2]
Get priority attribute. Note that the return value is only meaningful if the attribute actually is a priority attribute.
Definition at line 223 of file sp_simeventset.h. ◆ Stochastic() [1/2]
Set stochastic behaviour. Define this attribute to indicate the specified stochastic bahaviour.
Definition at line 200 of file sp_simeventset.h. ◆ Stochastic() [2/2]
Get stochastic attribute. Note that the return value is only meaningful if the attribute defines stochastic behaviour.
Definition at line 233 of file sp_simeventset.h. ◆ Str()
Debug string, incl state. Definition at line 206 of file sp_simeventset.cpp. Member Data Documentation◆ mDelayFor
Amount of time to defer the event. This is part of the execution state. It is used for events of delay type and is a count down type alarm to trigger the event. Definition at line 253 of file sp_simeventset.h. ◆ mExpiresAt
Time at which the recent schedule expires. This is part of the execution state. Once a schedule expires, the event is re-scheduled. Definition at line 246 of file sp_simeventset.h. ◆ mPriority
Indicate precense of priority property. Definition at line 273 of file sp_simeventset.h. ◆ mPriorityAttribute
Priority definition data Definition at line 276 of file sp_simeventset.h. ◆ mReferenceInterval
Time domain on which the recent schedule was computed. This is part of the execution state. It is used to invalidate schedules for events of trigger type. Definition at line 259 of file sp_simeventset.h. ◆ mScheduledFor
Next scheduled occurence of this event relative to current time. This is part of the execution state. It indicates the instance of time for which the respective event is scheduled to occur. Schedules, however, may expire or otherwise become invalid. Definition at line 240 of file sp_simeventset.h. ◆ mStochastic
Indicate precense of stochastic behaviour. Definition at line 270 of file sp_simeventset.h. ◆ mStochasticAttribute
Stochastic definition data Definition at line 279 of file sp_simeventset.h. The documentation for this class was generated from the following files: libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen |