Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

method to override standard returninfo
isObserver()n/aIf returned false, the DataComponent will always get a null value as a parameter.
provideFilterKeys()nullA String[] array of keys that the DataComponent wants to listen to should be returned.
If null is returned then the DataComponent will always get all unfiltered data.
isDeltaObserver()falseIf true is returned, the DataComponent will get only the new or updated data since the last step it was scheduled (and not skipped, see pure data observers in scheduling section).
If false is returned, the DataComponent will always get the complete (updated) data since the first execution step

...

Take in mind that if your DataComponent is not both, an observer and a producer of data, it's step() method will not be called in a blocking scheme during the scheduled execution (for details please see above). If this is required, then you need to set the according return values to both being true.

...

As another case study there exists a SimpleRailControlEditor for the  model railway of the Christian-Albrechts University of Kiel. It lets you create controllers for the model railway by modeling them with a generated Eclipse GMF editor. These models can be transformed into executable C-Code by a model2text-Xpand-transformation on the one hand. On the other there exists a complete Xtend-transformation which generates executable and I/O-equivalent  Ptolemy models out of them. The SimpleRailCtrl Ptolemy Simulator DataComponent is then capable of executing these Ptolemy models using the  Triq Ptolemy Eclipse plug-in. Together with the KIELER model visualizer the active states (nodes) of the controller model can then be illustrated during the execution.

 

There also exists a  demo video that shows the just described behavior. Whenever the execution is being initialized the Ptolemy simulator will transform the currently saved EMF model of the opened diagram into a semantically equivalent but executable ptolemy moml-File.