Public Member Functions | |
| PlotPrinter (SamplingSystemGUI ssg) | |
| PlotPrinter (SamplingSystemGUI ssg, PlotWidget widget, int position) | |
| ArrayList< DataItem > | getSamples () |
| String | getFilename () |
| void | startSample () throws CouldntAccessComponentEx, TypeNotSupportedEx,CouldntAccessPropertyEx, SamplingManagerException |
| void | postProcessing () |
| void | setComponent (String component) |
| void | setProperty (String property) |
| void | setComponentAvailable (boolean available, String reason) |
| void | setTimeWindow (double freq, int time) |
| void | setDumpToFile (boolean value) |
Protected Member Functions | |
| void | updateValue (DataItem item) |
| cl.utfsm.samplingSystemUI.PlotPrinter.PlotPrinter | ( | SamplingSystemGUI | ssg | ) |
Constructor, initialize the sampling counter and creates a BeanMemoryWidget for representation.
| ssg | Sampling System Gui reference. |
References cl.utfsm.samplingSystemUI.DataPrinter.widget.
| cl.utfsm.samplingSystemUI.PlotPrinter.PlotPrinter | ( | SamplingSystemGUI | ssg, | |
| PlotWidget | widget, | |||
| int | position | |||
| ) |
Constructor, initialize the sampling counter and sets the Widget as the one passed by reference.
Very useful when you need to draw in one widget, many Printers.
| ssg | Sampling System Gui reference. | |
| widget | The Widget in that this Printer will output graphically. |
References cl.utfsm.samplingSystemUI.PlotWidget.initializeNewPosition().
| String cl.utfsm.samplingSystemUI.PlotPrinter.getFilename | ( | ) |
Return the name of the file where the data is being dumped to, or the last file used.
| ArrayList<DataItem> cl.utfsm.samplingSystemUI.PlotPrinter.getSamples | ( | ) | [virtual] |
Since the samples are not stored in memory, nothing can be returned.
Implements cl.utfsm.samplingSystemUI.DataPrinter.
| void cl.utfsm.samplingSystemUI.PlotPrinter.postProcessing | ( | ) | [virtual] |
This method should be called after stopping the sampling.
Implements cl.utfsm.samplingSystemUI.DataPrinter.
| void cl.utfsm.samplingSystemUI.PlotPrinter.setComponent | ( | String | component | ) |
| void cl.utfsm.samplingSystemUI.PlotPrinter.setComponentAvailable | ( | boolean | available, | |
| String | reason | |||
| ) |
Allows to handle whether a component is or isn't available to be sampled.
| available | True if the component is currently available. | |
| reason | A explanation of the cause why the component isn't available. |
Reimplemented from cl.utfsm.samplingSystemUI.DataPrinter.
References cl.utfsm.samplingSystemUI.IGraphicalUpdater.setComponentAvailable(), and cl.utfsm.samplingSystemUI.DataPrinter.widget.
| void cl.utfsm.samplingSystemUI.PlotPrinter.setDumpToFile | ( | boolean | value | ) |
Referenced by cl.utfsm.samplingSystemUI.BeanGrouper.addSamp().
| void cl.utfsm.samplingSystemUI.PlotPrinter.setProperty | ( | String | property | ) |
| void cl.utfsm.samplingSystemUI.PlotPrinter.setTimeWindow | ( | double | freq, | |
| int | time | |||
| ) |
| void cl.utfsm.samplingSystemUI.PlotPrinter.startSample | ( | ) | throws CouldntAccessComponentEx, TypeNotSupportedEx,CouldntAccessPropertyEx, SamplingManagerException |
Starts the sampling, connecting to ACS Manager and the Sampling Manager.
| CouldntAccessComponentEx | Component wasn't available at the time. | |
| TypeNotSupportedEx | Sampling Manager specific exception. Some types are currently not supported in acssamp. |
Reimplemented from cl.utfsm.samplingSystemUI.DataPrinter.
References cl.utfsm.samplingSystemUI.IGraphicalUpdater.resetSampleCount(), and cl.utfsm.samplingSystemUI.DataPrinter.widget.
| void cl.utfsm.samplingSystemUI.PlotPrinter.updateValue | ( | DataItem | item | ) | [protected, virtual] |
Implements cl.utfsm.samplingSystemUI.DataPrinter.
References cl.utfsm.samplingSystemUI.DataPrinter.component, cl.utfsm.samplingSystemUI.core.DataItem.getTime(), cl.utfsm.samplingSystemUI.core.DataItem.getValue(), cl.utfsm.samplingSystemUI.DataPrinter.property, cl.utfsm.samplingSystemUI.IGraphicalUpdater.updateValues(), and cl.utfsm.samplingSystemUI.DataPrinter.widget.
1.7.0