

Classes | |
| class | ScriptRunner |
| class | Watchdog |
Public Member Functions | |
| BeanGrouper (SamplingSystemGUI ssg, String group, int status) | |
| void | addSamp (String component, String property) |
| void | updateLabel () |
| void | runScript () |
| void | setStatus (int status) |
| boolean | Ready2Samp () |
| void | setGroupName (String name) |
| String | getGroupName () |
| boolean | checkIfExists (String component, String property) |
| ArrayList< SerializableProperty > | getSerializableProperty () |
| void | loadConfiguration (long frequency, int timeWindow, int samplingTime) |
| ScriptExecutor | getScript () |
| void | setScript (ScriptExecutor script) |
| void | windowActivated (WindowEvent e) |
| void | windowClosed (WindowEvent e) |
| void | windowDeactivated (WindowEvent e) |
| void | windowDeiconified (WindowEvent e) |
| void | windowIconified (WindowEvent e) |
| void | windowOpened (WindowEvent e) |
| void | windowClosing (WindowEvent e) |
Package Attributes | |
| SamplingDataCorrelator | _sdc |
Private Member Functions | |
| void | initialize () |
| void | askClose () |
| JButton | getCleanButton () |
| StatusIcon | getStatusIcon () |
| JToggleButton | getPauseButton () |
| JButton | getStartButton () |
| JButton | getStopButton () |
| JLabel | getTimeSampLabel () |
| JSpinner | getTimeSampSpinner () |
| JLabel | getTimeWindowLabel () |
| JSpinner | getTimeWindowSpinner () |
| JLabel | getFrequencyLabel () |
| JSpinner | getFreqSpinner () |
| JButton | getResetFrequencyButton () |
| JToggleButton | getSaveButton () |
| JLabel | getFileNameLabel () |
| JComboBox | getStatusComboBox () |
| void | addToStatusComboBox (String status) |
| void | updateStatusComboBox () |
| JMenuBar | getBeanGrouperMenuBar () |
| JMenu | getScriptMenu () |
| JMenuItem | getDelScriptMenuItem () |
| JMenuItem | getAddScriptMenuItem () |
| void | addSamp (DataPrinter w) |
| void | startSample () |
| void | setStatusIcon (int status) |
| void | stopSample () |
| void | setTimeWindow () |
Private Attributes | |
| SamplingSystemGUI | ssg = null |
| JButton | startButton = null |
| JToggleButton | pauseButton = null |
| JButton | stopButton = null |
| JButton | resetFrequencyButton = null |
| JButton | cleanButton = null |
| JLabel | frecuencyLabel = null |
| JSpinner | freqSpinner = null |
| JLabel | timeSampLabel = null |
| JSpinner | timeSampSpinner = null |
| JLabel | timeWindowLabel = null |
| JSpinner | timeWindowSpinner = null |
| JToggleButton | saveButton = null |
| JLabel | fileNameLabel = null |
| JComboBox | statusComboBox = null |
| StatusIcon | statusIcon |
| JMenuItem | addScriptMenuItem |
| JMenuItem | delScriptMenuItem |
| JMenu | scriptMenu |
| JMenuBar | beanGrouperMenuBar |
| ArrayList< DataPrinter > | samplers = null |
| boolean | ready2samp = false |
| boolean | isStopped = true |
| String | group |
| boolean | faultErrorAddedToStatusBox = false |
| boolean | pausedGraph = false |
| ScriptExecutor | script = null |
Static Private Attributes | |
| static final long | serialVersionUID = 6190720245608994272L |
Displays the GUI for a Sampling Group, allowing plotting and control of its functions.
Class that works as a displayable container of sampling items. It has an internal state to check if it's selected to be sampled (a check-box) and N samples, which will start parallel to one another once the "Start Sample(s)" button from the GUI is pressed.
| cl::utfsm::samplingSystemUI::BeanGrouper::BeanGrouper | ( | SamplingSystemGUI | ssg, | |
| String | group, | |||
| int | status | |||
| ) | [inline] |
This is the overloaded constructor that allows to save the Sampling Group name
| ssg | The Sampling Group this BeanGrouper is attached to. | |
| group | The name of the Sampling Group this BeanGrouper is grouping. |
References getStatusIcon(), initialize(), and cl::utfsm::samplingSystemUI::StatusIcon::setStatus().
| void cl::utfsm::samplingSystemUI::BeanGrouper::addSamp | ( | String | component, | |
| String | property | |||
| ) | [inline] |
This method ads to the Sampling Group, a new sample. This method is used by
SamplingSystemGUI to add Sampling to the Sampling Group, represented by BeanGrouper.
| component | Name of the Component containing the property to be sampled. | |
| property | Name of the Property to be sampled. |
References addSamp(), cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampled(), getSaveButton(), group, isStopped, samplers, cl::utfsm::samplingSystemUI::PlotPrinter::setComponent(), cl::utfsm::samplingSystemUI::PlotPrinter::setDumpToFile(), cl::utfsm::samplingSystemUI::PlotPrinter::setProperty(), and ssg.
| void cl::utfsm::samplingSystemUI::BeanGrouper::addSamp | ( | DataPrinter | w | ) | [inline, private] |
This method adds a new sample (represented as a DataPrinter) into this class.
This class should be able to hold N samples inside itself.
| w | The Printer Object that is used to represent a sampling by its own. |
References cl::utfsm::samplingSystemUI::DataPrinter::getWidget(), samplers, and updateLabel().
Referenced by addSamp(), and cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampling().
| void cl::utfsm::samplingSystemUI::BeanGrouper::addToStatusComboBox | ( | String | status | ) | [inline, private] |
References statusComboBox.
Referenced by startSample(), and stopSample().
| void cl::utfsm::samplingSystemUI::BeanGrouper::askClose | ( | ) | [inline, private] |
| boolean cl::utfsm::samplingSystemUI::BeanGrouper::checkIfExists | ( | String | component, | |
| String | property | |||
| ) | [inline] |
| JMenuItem cl::utfsm::samplingSystemUI::BeanGrouper::getAddScriptMenuItem | ( | ) | [inline, private] |
References addScriptMenuItem, getDelScriptMenuItem(), cl::utfsm::samplingSystemUI::ScriptConfigGui::getScriptExec(), getStartButton(), getTimeSampSpinner(), and script.
Referenced by getDelScriptMenuItem(), and getScriptMenu().
| JMenuBar cl::utfsm::samplingSystemUI::BeanGrouper::getBeanGrouperMenuBar | ( | ) | [inline, private] |
References beanGrouperMenuBar, and getScriptMenu().
Referenced by initialize().
| JButton cl::utfsm::samplingSystemUI::BeanGrouper::getCleanButton | ( | ) | [inline, private] |
This method clean the graphic
This JButton when you click it remove all points in the trace
References cleanButton, and samplers.
Referenced by initialize().
| JMenuItem cl::utfsm::samplingSystemUI::BeanGrouper::getDelScriptMenuItem | ( | ) | [inline, private] |
References delScriptMenuItem, getAddScriptMenuItem(), getStartButton(), getTimeSampSpinner(), and script.
Referenced by getAddScriptMenuItem(), and getScriptMenu().
| JLabel cl::utfsm::samplingSystemUI::BeanGrouper::getFileNameLabel | ( | ) | [inline, private] |
Initializes the Label that says "Sampling To:"
References fileNameLabel.
Referenced by initialize(), and startSample().
| JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::getFreqSpinner | ( | ) | [inline, private] |
Initializes the TextField that will allow to input the desired Frequency for the Sampling Group.
By default the value is 10 Hz.
Also checks for its correctness when the value changes.
References freqSpinner, and samplers.
Referenced by initialize(), loadConfiguration(), and setTimeWindow().
| JLabel cl::utfsm::samplingSystemUI::BeanGrouper::getFrequencyLabel | ( | ) | [inline, private] |
Initializes the Frequency Label
References frecuencyLabel.
Referenced by initialize().
| String cl::utfsm::samplingSystemUI::BeanGrouper::getGroupName | ( | ) | [inline] |
Generic getter for the group name
References group.
Referenced by cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampling(), getSerializableProperty(), and windowClosing().
| JToggleButton cl::utfsm::samplingSystemUI::BeanGrouper::getPauseButton | ( | ) | [inline, private] |
This method pause the graphic in movement
This JButton when click do a pause of the graphic, but the sampling still running
References pauseButton, pausedGraph, and samplers.
Referenced by initialize().
| JButton cl::utfsm::samplingSystemUI::BeanGrouper::getResetFrequencyButton | ( | ) | [inline, private] |
This method initializes resetFrequencyButton
This JButton when click do a kind of "Reset" in the frequency of the Samp
References freqSpinner, getSaveButton(), getTimeSampSpinner(), pauseButton, resetFrequencyButton, startButton, startSample(), stopButton, stopSample(), and timeSampSpinner.
Referenced by initialize().
| JToggleButton cl::utfsm::samplingSystemUI::BeanGrouper::getSaveButton | ( | ) | [inline, private] |
References samplers, and saveButton.
Referenced by addSamp(), getResetFrequencyButton(), getStartButton(), initialize(), startSample(), and stopSample().
| ScriptExecutor cl::utfsm::samplingSystemUI::BeanGrouper::getScript | ( | ) | [inline] |
References script.
| JMenu cl::utfsm::samplingSystemUI::BeanGrouper::getScriptMenu | ( | ) | [inline, private] |
References getAddScriptMenuItem(), getDelScriptMenuItem(), script, and scriptMenu.
Referenced by getBeanGrouperMenuBar().
| ArrayList<SerializableProperty> cl::utfsm::samplingSystemUI::BeanGrouper::getSerializableProperty | ( | ) | [inline] |
| JButton cl::utfsm::samplingSystemUI::BeanGrouper::getStartButton | ( | ) | [inline, private] |
This method initializes startButton
This JButton when click do a lot of effects, among them:
References getSaveButton(), getTimeSampSpinner(), pauseButton, setTimeWindow(), startButton, startSample(), and stopButton.
Referenced by getAddScriptMenuItem(), getDelScriptMenuItem(), and initialize().
| JComboBox cl::utfsm::samplingSystemUI::BeanGrouper::getStatusComboBox | ( | ) | [inline, private] |
References statusComboBox.
Referenced by initialize(), startSample(), and stopSample().
| StatusIcon cl::utfsm::samplingSystemUI::BeanGrouper::getStatusIcon | ( | ) | [inline, private] |
References statusIcon.
Referenced by BeanGrouper(), initialize(), setStatusIcon(), and startSample().
| JButton cl::utfsm::samplingSystemUI::BeanGrouper::getStopButton | ( | ) | [inline, private] |
Initializes the Stop Button, and also performs on click, the stop of the Sampling.
References freqSpinner, pauseButton, pausedGraph, samplers, stopButton, stopSample(), and timeSampSpinner.
Referenced by initialize().
| JLabel cl::utfsm::samplingSystemUI::BeanGrouper::getTimeSampLabel | ( | ) | [inline, private] |
Initializes the Label that says "Sampling time:"
References timeSampLabel.
Referenced by initialize().
| JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::getTimeSampSpinner | ( | ) | [inline, private] |
Initializes the TextField that will allow to input the desired Sampling Time for the Sampling Group.
By default the value is 0, which means infinite time (or until stop button is pressed).
Also checks for its correctness when the value changes.
References timeSampSpinner.
Referenced by getAddScriptMenuItem(), getDelScriptMenuItem(), getResetFrequencyButton(), getSerializableProperty(), getStartButton(), initialize(), loadConfiguration(), and startSample().
| JLabel cl::utfsm::samplingSystemUI::BeanGrouper::getTimeWindowLabel | ( | ) | [inline, private] |
Initializes the Label that says "Time Window:"
References timeWindowLabel.
Referenced by initialize().
| JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::getTimeWindowSpinner | ( | ) | [inline, private] |
Initializes the TextField that will allow to input the desired Time Window for the Sampling Group.
By default the value is 10, which means 10 minutes.
Also checks for its correctness when the value changes.
References setTimeWindow(), and timeWindowSpinner.
Referenced by getSerializableProperty(), initialize(), loadConfiguration(), and setTimeWindow().
| void cl::utfsm::samplingSystemUI::BeanGrouper::initialize | ( | ) | [inline, private] |
This method initializes the GUI, setting up the layout.
References askClose(), getBeanGrouperMenuBar(), getCleanButton(), getFileNameLabel(), getFreqSpinner(), getFrequencyLabel(), getPauseButton(), getResetFrequencyButton(), getSaveButton(), getStartButton(), getStatusComboBox(), getStatusIcon(), getStopButton(), getTimeSampLabel(), getTimeSampSpinner(), getTimeWindowLabel(), getTimeWindowSpinner(), group, samplers, and windowClosing().
Referenced by BeanGrouper().
| void cl::utfsm::samplingSystemUI::BeanGrouper::loadConfiguration | ( | long | frequency, | |
| int | timeWindow, | |||
| int | samplingTime | |||
| ) | [inline] |
References getFreqSpinner(), getTimeSampSpinner(), and getTimeWindowSpinner().
| boolean cl::utfsm::samplingSystemUI::BeanGrouper::Ready2Samp | ( | ) | [inline] |
Getter for a boolean status check.
References ready2samp.
| void cl::utfsm::samplingSystemUI::BeanGrouper::runScript | ( | ) | [inline] |
References cl::utfsm::samplingSystemUI::ScriptExecutor::run(), script, startSample(), and stopSample().
| void cl::utfsm::samplingSystemUI::BeanGrouper::setGroupName | ( | String | name | ) | [inline] |
Generic setter for the Group name
| name | Name of the group |
References group.
Referenced by cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampling().
| void cl::utfsm::samplingSystemUI::BeanGrouper::setScript | ( | ScriptExecutor | script | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::setStatus | ( | int | status | ) | [inline] |
Method used by the SamplingSystemGUI to set the status icon when a new sampling manager is selected
| status |
References isStopped, and setStatusIcon().
| void cl::utfsm::samplingSystemUI::BeanGrouper::setStatusIcon | ( | int | status | ) | [inline, private] |
References getStatusIcon(), and cl::utfsm::samplingSystemUI::StatusIcon::setStatus().
Referenced by setStatus(), startSample(), and stopSample().
| void cl::utfsm::samplingSystemUI::BeanGrouper::setTimeWindow | ( | ) | [inline, private] |
References getFreqSpinner(), getTimeWindowSpinner(), and samplers.
Referenced by getStartButton(), and getTimeWindowSpinner().
| void cl::utfsm::samplingSystemUI::BeanGrouper::startSample | ( | ) | [inline, private] |
Method to begin the sampling of all the samples contained in the class. It initializes the SamplingDataCorrelator Object, which is used to store data to file.
References _sdc, addToStatusComboBox(), faultErrorAddedToStatusBox, freqSpinner, cl::utfsm::samplingSystemUI::SamplingDataCorrelator::getFilename(), getFileNameLabel(), getSaveButton(), cl::utfsm::samplingSystemUI::StatusIcon::getStatus(), getStatusComboBox(), getStatusIcon(), getTimeSampSpinner(), group, isStopped, pauseButton, samplers, script, cl::utfsm::samplingSystemUI::StatusIcon::setStatus(), setStatusIcon(), startButton, stopButton, timeSampSpinner, and updateStatusComboBox().
Referenced by getResetFrequencyButton(), getStartButton(), and runScript().
| void cl::utfsm::samplingSystemUI::BeanGrouper::stopSample | ( | ) | [inline, private] |
References _sdc, cl::utfsm::samplingSystemUI::SamplingDataCorrelator::addSamplingSet(), addToStatusComboBox(), cl::utfsm::samplingSystemUI::SamplingDataCorrelator::dumpToFile(), getSaveButton(), getStatusComboBox(), isStopped, pauseButton, samplers, setStatusIcon(), startButton, stopButton, and updateStatusComboBox().
Referenced by askClose(), getResetFrequencyButton(), getStopButton(), cl::utfsm::samplingSystemUI::BeanGrouper::ScriptRunner::run(), cl::utfsm::samplingSystemUI::BeanGrouper::Watchdog::run(), runScript(), and windowClosing().
| void cl::utfsm::samplingSystemUI::BeanGrouper::updateLabel | ( | ) | [inline] |
Referenced by addSamp().
| void cl::utfsm::samplingSystemUI::BeanGrouper::updateStatusComboBox | ( | ) | [inline, private] |
References statusComboBox.
Referenced by startSample(), and stopSample().
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowActivated | ( | WindowEvent | e | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowClosed | ( | WindowEvent | e | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowClosing | ( | WindowEvent | e | ) | [inline] |
References cl::utfsm::samplingSystemUI::SamplingSystemGUI::deleteBeanGrouper(), getGroupName(), isStopped, samplers, ssg, and stopSample().
Referenced by initialize().
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowDeactivated | ( | WindowEvent | e | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowDeiconified | ( | WindowEvent | e | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowIconified | ( | WindowEvent | e | ) | [inline] |
| void cl::utfsm::samplingSystemUI::BeanGrouper::windowOpened | ( | WindowEvent | e | ) | [inline] |
Referenced by startSample(), and stopSample().
JMenuItem cl::utfsm::samplingSystemUI::BeanGrouper::addScriptMenuItem [private] |
Referenced by getAddScriptMenuItem().
JMenuBar cl::utfsm::samplingSystemUI::BeanGrouper::beanGrouperMenuBar [private] |
Referenced by getBeanGrouperMenuBar().
JButton cl::utfsm::samplingSystemUI::BeanGrouper::cleanButton = null [private] |
Referenced by getCleanButton().
JMenuItem cl::utfsm::samplingSystemUI::BeanGrouper::delScriptMenuItem [private] |
Referenced by getDelScriptMenuItem().
boolean cl::utfsm::samplingSystemUI::BeanGrouper::faultErrorAddedToStatusBox = false [private] |
Referenced by startSample().
JLabel cl::utfsm::samplingSystemUI::BeanGrouper::fileNameLabel = null [private] |
Referenced by getFileNameLabel().
JLabel cl::utfsm::samplingSystemUI::BeanGrouper::frecuencyLabel = null [private] |
Referenced by getFrequencyLabel().
JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::freqSpinner = null [private] |
Referenced by getFreqSpinner(), getResetFrequencyButton(), getStopButton(), and startSample().
String cl::utfsm::samplingSystemUI::BeanGrouper::group [private] |
Referenced by addSamp(), askClose(), getGroupName(), initialize(), setGroupName(), and startSample().
boolean cl::utfsm::samplingSystemUI::BeanGrouper::isStopped = true [private] |
JToggleButton cl::utfsm::samplingSystemUI::BeanGrouper::pauseButton = null [private] |
Referenced by getPauseButton(), getResetFrequencyButton(), getStartButton(), getStopButton(), startSample(), and stopSample().
boolean cl::utfsm::samplingSystemUI::BeanGrouper::pausedGraph = false [private] |
Referenced by getPauseButton(), and getStopButton().
boolean cl::utfsm::samplingSystemUI::BeanGrouper::ready2samp = false [private] |
Referenced by Ready2Samp().
JButton cl::utfsm::samplingSystemUI::BeanGrouper::resetFrequencyButton = null [private] |
Referenced by getResetFrequencyButton().
ArrayList<DataPrinter> cl::utfsm::samplingSystemUI::BeanGrouper::samplers = null [private] |
JToggleButton cl::utfsm::samplingSystemUI::BeanGrouper::saveButton = null [private] |
Referenced by getSaveButton().
ScriptExecutor cl::utfsm::samplingSystemUI::BeanGrouper::script = null [private] |
JMenu cl::utfsm::samplingSystemUI::BeanGrouper::scriptMenu [private] |
Referenced by getScriptMenu().
final long cl::utfsm::samplingSystemUI::BeanGrouper::serialVersionUID = 6190720245608994272L [static, private] |
Generated serialVersionUID by Eclipse
SamplingSystemGUI cl::utfsm::samplingSystemUI::BeanGrouper::ssg = null [private] |
Referenced by addSamp(), askClose(), and windowClosing().
JButton cl::utfsm::samplingSystemUI::BeanGrouper::startButton = null [private] |
Referenced by getResetFrequencyButton(), getStartButton(), startSample(), and stopSample().
JComboBox cl::utfsm::samplingSystemUI::BeanGrouper::statusComboBox = null [private] |
Referenced by addToStatusComboBox(), getStatusComboBox(), and updateStatusComboBox().
Referenced by getStatusIcon().
JButton cl::utfsm::samplingSystemUI::BeanGrouper::stopButton = null [private] |
Referenced by getResetFrequencyButton(), getStartButton(), getStopButton(), startSample(), and stopSample().
JLabel cl::utfsm::samplingSystemUI::BeanGrouper::timeSampLabel = null [private] |
Referenced by getTimeSampLabel().
JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::timeSampSpinner = null [private] |
Referenced by getResetFrequencyButton(), getStopButton(), getTimeSampSpinner(), and startSample().
JLabel cl::utfsm::samplingSystemUI::BeanGrouper::timeWindowLabel = null [private] |
Referenced by getTimeWindowLabel().
JSpinner cl::utfsm::samplingSystemUI::BeanGrouper::timeWindowSpinner = null [private] |
Referenced by getTimeWindowSpinner().
1.6.2