demos.powerwindow
Class PowerWindowDisplay
java.lang.Object
demos.powerwindow.PowerWindowDisplay
public class PowerWindowDisplay
- extends java.lang.Object
A demo of the power window with a graphical display of the user command,
end stops and position of the window.
We use a DEScenario block to simulate the user pushing the buttons
of the power window, and we use a DEPlotter 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 |
PowerWindowDisplay
public PowerWindowDisplay()
main
public static void main(java.lang.String[] args)