This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
events [2020/10/12 14:26] erik [Time events] |
events [2021/11/12 14:12] mina [Reacting to events] |
||
---|---|---|---|
Line 13: | Line 13: | ||
====Discrete events==== | ====Discrete events==== | ||
- | Discrete events are very flexible and allow an event to trigger based on a condition which compares two values in the model. They are defined using the [[discrete event|discrete event block]]. | + | Discrete events are very flexible and allow an event to trigger based on a condition which compares two values in the model. They are defined using the [[discrete event|discrete event block]]. |
- | - When ball reaches ground, set velocity to negative | + | Example use cases could be: |
- | | + | |
+ | * When ball reaches ground, set velocity to negative | ||
+ | | ||
+ | |||
+ | ====Reacting to events==== | ||
+ | |||
+ | * The [[transfer]] block allows an event to specify when transfer should occur. This allows discrete/ | ||
+ | * The [[snapshot]] block requires an event to know when to take snapshots. | ||
+ | * The [[minmax|min_max]] block allows an event to reset the current minimum/ | ||
+ | * The [[running mean]] block can be reset for a specific event. It can also be turned on or off by an event. This way one can calculate the running mean of an output for a specific period - say 5th of March until 29th of August. | ||
====See also==== | ====See also==== |