Presentation is loading. Please wait.

Presentation is loading. Please wait.

Post Processing Plugins: PPP

Similar presentations


Presentation on theme: "Post Processing Plugins: PPP"— Presentation transcript:

1 Post Processing Plugins: PPP

2 Post Processing Plugin (PPP)
In contrast with the functional plugins, simulation plugins do not compute one value but rather collect as many result values as the plugin specifies. It runs after a snapshot and inspects the values produced. In other words, it runs adjacent to the simulation. Post Processing Plugin (PPP): A plugin that uses simulation result, i.e. after the simulation is complete to produce alternative results PPP can be used for calculations that need the whole simulation result – for example calculations on the dRSS vector (which will only be completely calculated when the simulation is completed). PPP can be added as extensions to both EPP or SP

3 Post Processing Plugin (PPP): Extending the interface of an EPP
An EPP is created by implementing the EventProcessingPlugin.java interface. Adding a PPP to an EPP is possible by further extending the interface PostProcessingTab.java, the implementation of which allows the EPP to return a list of PPP that will be shown as additional tabs when the simulation is completed.

4 Post Processing Plugin (PPP): Extending the interfaces of a SP
An SP is created by implementing the SystemPlugin.java interface. Adding a PPP to a SP is possible by further extending the interface AsVictimPostProcessingTab.java, which, similarly as for the EPP, allows the SP to return a list of PPP that will be shown after the simulation is completed. The difference for SP is that (as the interface name indicates) the PPUIs will only show when the SP is configured as victim. This is done to prevent bloating SEAMCAT with result tabs which would confuse the user

5 Post Processing Plugin (PPP) Building the UI
A PPP is created by implementing the interface PostProcessingUI.java: The three methods to implement are: getTitle: defines the title that will appear on the PPP UI tab. buildUI: method invoked when the UI panels are to be built. The scenario contains the full configuration, the canvas is the panel that contains the UI and the panel holds the created panels and models. These panels and models are created by SEAMCAT from the last method of PanelDefinitions panelDefinitions: list of panel definitions, which are the same as an input definition for a plugin but also adding a title.

6 Post Processing Plugin (PPP) Building the UI: Interaction Buttons
After having configured the PPP UI, some buttons are needed to indicate the start of the post processing of data obtained by the simulation. To define an action button it is only needed to annotate a method inside the PostProcessingUI An example of this is the built in EPP “Demo 6” which includes a PPP.

7 Post Processing Plugin (PPP) Running a PPP
Following the example, when running the EPP “Demo 6” , the PPP tab shows a button titled “Scatter”. When pushed it will call the method scatter.

8 Questions?


Download ppt "Post Processing Plugins: PPP"

Similar presentations


Ads by Google