demos.powerwindow
Class PowerWindow
java.lang.Object
demos.powerwindow.PowerWindow
public class PowerWindow
- extends java.lang.Object
A text only demo of the power window.
We use a DEScenario block to simulate the user pushing the buttons
of the power window, and we use a DETextDisplay to display the outputs.
The time in TFSM runs twice as fast as in DE and is offset by one. The 1 delay
for switching to automatic mode in TFSM is therefore a 0.5 delay in DE.
If called without arguments, the semantic adaptation between DE and SDF
imposes a periodic activation of the SDF model every 1 unit of DE time, starting at date 1.0.
On output, events are produced only on changes of the SDF outputs.
If called with at least an argument, the semantic adaptation between DE and SDF is
set to "raw" mode: the SDF model is updated each time it receives an input from DE
(this may not work with an SDF model that has several or multi-rate inputs), and
a DE event is produced for each data sample on the outputs. This shows the importance
of explicit semantic adaptation between heterogeneous models.
- Author:
- boulange
|
Method Summary |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerWindow
public PowerWindow()
main
public static void main(java.lang.String[] args)