

Public Member Functions | |
| SamplingSystemGUI () | |
| boolean | isAlreadySampled (String comp_prop) |
| void | addToSampled (String comp_prop) |
| void | delFromSampled (String comp_prop) |
| void | loadWindow () |
| void | fillWidgets (String[] components, LinkedList< List< String >> properties) |
| synchronized void | deleteBeanGrouper (ArrayList< DataPrinter > samplers, String group) |
| void | setStatus (int status) |
Public Attributes | |
| String | MAN_NAME = "" |
Private Member Functions | |
| void | initialize () |
| JMenuBar | getSSGMenuBar () |
| JMenu | getFileMenu () |
| JMenuItem | getFileMenuSelectSMButton () |
| JMenuItem | getFileMenuLoadStatusButton () |
| JMenuItem | getFileMenuSaveStatusButton () |
| JMenuItem | getFileMenuExitButton () |
| JMenu | getHelpMenu () |
| JMenuItem | getHelpMenuAboutButton () |
| JPanel | getPropertyAddPanel () |
| StatusIcon | getStatusIcon () |
| JComboBox | getComponentComboBox () |
| JComboBox | getPropertyComboBox () |
| JButton | getAddSampleButton () |
| JLabel | getGroupLabel () |
| JLabel | getComponentLabel () |
| JLabel | getPropertyLabel () |
| JTextField | getGroupTextField () |
| boolean | addToSampling (String component, String property, String group) |
| BeanGrouper | groupExists (String groupName) |
| void | checkSamplingManager () |
| void | fillComponentComboBox (String[] components) |
| void | fillPropertyComboBox (List< String > prop) |
| void | readStatusFile (String filename, boolean startup) |
| void | readStatusFile (boolean startup) |
| void | writeStatusFile (String filename) |
| void | writeStatusFile () |
Private Attributes | |
| LinkedList< List< String > > | propList |
| String[] | compList = null |
| ArrayList< SerializableProperty > | status |
| ArrayList< BeanGrouper > | BeanGrouperList |
| JMenuBar | SSGMenuBar = null |
| JMenu | FileMenu = null |
| JMenuItem | FileMenuSelectSMButton = null |
| JMenuItem | FileMenuLoadStatusButton = null |
| JMenuItem | FileMenuSaveStatusButton = null |
| JMenuItem | FileMenuExitButton = null |
| JMenu | HelpMenu = null |
| JMenuItem | HelpMenuAboutButton = null |
| JPanel | PropertyAddPanel = null |
| JLabel | componentLabel = null |
| JComboBox | ComponentComboBox = null |
| JLabel | propertyLabel = null |
| JComboBox | PropertyComboBox = null |
| JLabel | groupLabel = null |
| JTextField | groupTextField = null |
| JButton | addSampleButton = null |
| StatusIcon | statusIcon |
| Vector< Object > | property_sampled |
Static Private Attributes | |
| static final long | serialVersionUID = 1L |
| static final String | DEFAULT_STATUS_FILENAME = "default.ssgst" |
Main Widget class, and starting point for the SSG Software. Controls the main flow of the software.
SamplingSystemGUI ask for a Sampling Manager, then tries to load a status file, and then presents a window with the Components and Properties available for sampling.
If there was a status file, SamplingSystemGUI will load it, and open the Sampling Groups as recorded.
| cl::utfsm::samplingSystemUI::SamplingSystemGUI::SamplingSystemGUI | ( | ) | [inline] |
This is the default constructor. It starts the initialization of the window.
References BeanGrouperList, initialize(), and property_sampled.
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampled | ( | String | comp_prop | ) | [inline] |
Add the component:property to the property_sampled vector
References isAlreadySampled(), and property_sampled.
Referenced by cl::utfsm::samplingSystemUI::BeanGrouper::addSamp().
| boolean cl::utfsm::samplingSystemUI::SamplingSystemGUI::addToSampling | ( | String | component, | |
| String | property, | |||
| String | group | |||
| ) | [inline, private] |
Adds a Property to a SamplingGroup, creating its BeanGrouper
| component | Component that contains the Property to be sampled. | |
| property | Property to be sampled. | |
| group | SamplingGroup at which the property is to be added. |
References cl::utfsm::samplingSystemUI::BeanGrouper::addSamp(), BeanGrouperList, cl::utfsm::samplingSystemUI::BeanGrouper::checkIfExists(), cl::utfsm::samplingSystemUI::BeanGrouper::getGroupName(), getStatusIcon(), groupExists(), isAlreadySampled(), and cl::utfsm::samplingSystemUI::BeanGrouper::setGroupName().
Referenced by getAddSampleButton(), and readStatusFile().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::checkSamplingManager | ( | ) | [inline, private] |
| synchronized void cl::utfsm::samplingSystemUI::SamplingSystemGUI::deleteBeanGrouper | ( | ArrayList< DataPrinter > | samplers, | |
| String | group | |||
| ) | [inline] |
Removes from the local list of Component/Properties that are being sampled a given set of sampler samplers for a given sampling group group
| samplers | The given sampler list | |
| group | The belonging sampling group for the given samplers |
References BeanGrouperList, and status.
Referenced by cl::utfsm::samplingSystemUI::BeanGrouper::askClose(), and cl::utfsm::samplingSystemUI::BeanGrouper::windowClosing().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::delFromSampled | ( | String | comp_prop | ) | [inline] |
removes the componente:property from the property_sampled vector
References isAlreadySampled(), and property_sampled.
Referenced by cl::utfsm::samplingSystemUI::BeanGrouper::askClose().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::fillComponentComboBox | ( | String[] | components | ) | [inline, private] |
References ComponentComboBox.
Referenced by fillWidgets().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::fillPropertyComboBox | ( | List< String > | prop | ) | [inline, private] |
References addSampleButton, and PropertyComboBox.
Referenced by getComponentComboBox().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::fillWidgets | ( | String[] | components, | |
| LinkedList< List< String >> | properties | |||
| ) | [inline] |
References compList, fillComponentComboBox(), and propList.
Referenced by cl::utfsm::samplingSystemUI::SampTool::main().
| JButton cl::utfsm::samplingSystemUI::SamplingSystemGUI::getAddSampleButton | ( | ) | [inline, private] |
This method initializes addSampleButton
References addSampleButton, addToSampling(), ComponentComboBox, groupTextField, and PropertyComboBox.
Referenced by getPropertyAddPanel().
| JComboBox cl::utfsm::samplingSystemUI::SamplingSystemGUI::getComponentComboBox | ( | ) | [inline, private] |
This method initializes ComponentComboBox
References addSampleButton, compList, ComponentComboBox, fillPropertyComboBox(), PropertyComboBox, and propList.
Referenced by getPropertyAddPanel().
| JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getComponentLabel | ( | ) | [inline, private] |
This method initializes groupLabel
References componentLabel.
Referenced by getPropertyAddPanel().
| JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenu | ( | ) | [inline, private] |
This method initializes FileMenu
References FileMenu, getFileMenuExitButton(), getFileMenuLoadStatusButton(), getFileMenuSaveStatusButton(), and getFileMenuSelectSMButton().
Referenced by getSSGMenuBar().
| JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuExitButton | ( | ) | [inline, private] |
This method initializes FileMenuExitButton
References FileMenuExitButton.
Referenced by getFileMenu().
| JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuLoadStatusButton | ( | ) | [inline, private] |
This method initializes FileMenuLoadStatusButton
References FileMenuLoadStatusButton, and readStatusFile().
Referenced by getFileMenu().
| JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuSaveStatusButton | ( | ) | [inline, private] |
This method initializes FileMenuSaveStatusButton
References FileMenuSaveStatusButton, and writeStatusFile().
Referenced by getFileMenu().
| JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuSelectSMButton | ( | ) | [inline, private] |
This method initializes FileMenuSelectSMButton
References checkSamplingManager(), FileMenuSelectSMButton, and MAN_NAME.
Referenced by getFileMenu().
| JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getGroupLabel | ( | ) | [inline, private] |
This method initializes groupLabel
References groupLabel.
Referenced by getPropertyAddPanel().
| JTextField cl::utfsm::samplingSystemUI::SamplingSystemGUI::getGroupTextField | ( | ) | [inline, private] |
This method initializes groupTextField
References groupTextField.
Referenced by getPropertyAddPanel().
| JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::getHelpMenu | ( | ) | [inline, private] |
This method initializes HelpMenu
References FileMenu, getHelpMenuAboutButton(), and HelpMenu.
Referenced by getSSGMenuBar().
| JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getHelpMenuAboutButton | ( | ) | [inline, private] |
This method initializes FileMenuSelectSMButton
References HelpMenuAboutButton.
Referenced by getHelpMenu().
| JPanel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getPropertyAddPanel | ( | ) | [inline, private] |
This method initializes PropertyAddPanel
References getAddSampleButton(), getComponentComboBox(), getComponentLabel(), getGroupLabel(), getGroupTextField(), getPropertyComboBox(), getPropertyLabel(), getStatusIcon(), and PropertyAddPanel.
Referenced by initialize().
| JComboBox cl::utfsm::samplingSystemUI::SamplingSystemGUI::getPropertyComboBox | ( | ) | [inline, private] |
This method initializes PropertyComboBox
References PropertyComboBox.
Referenced by getPropertyAddPanel().
| JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getPropertyLabel | ( | ) | [inline, private] |
This method initializes groupLabel
References propertyLabel.
Referenced by getPropertyAddPanel().
| JMenuBar cl::utfsm::samplingSystemUI::SamplingSystemGUI::getSSGMenuBar | ( | ) | [inline, private] |
This method initializes SSGMenuBar
References getFileMenu(), getHelpMenu(), and SSGMenuBar.
Referenced by initialize().
| StatusIcon cl::utfsm::samplingSystemUI::SamplingSystemGUI::getStatusIcon | ( | ) | [inline, private] |
This method initializes statusIcon
References statusIcon.
Referenced by addToSampling(), and getPropertyAddPanel().
| BeanGrouper cl::utfsm::samplingSystemUI::SamplingSystemGUI::groupExists | ( | String | groupName | ) | [inline, private] |
Checks if a BeanGrouper with the groupName exists
| groupName | Name of the SamplingGroup to be searched. |
References BeanGrouperList.
Referenced by addToSampling().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::initialize | ( | ) | [inline, private] |
This method initializes this GUI
References getPropertyAddPanel(), and getSSGMenuBar().
Referenced by SamplingSystemGUI().
| boolean cl::utfsm::samplingSystemUI::SamplingSystemGUI::isAlreadySampled | ( | String | comp_prop | ) | [inline] |
Method to check if a component and a property was previously sampled. The argument comp_prop is equal to component:property
References property_sampled.
Referenced by addToSampled(), addToSampling(), and delFromSampled().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::loadWindow | ( | ) | [inline] |
References checkSamplingManager(), MAN_NAME, readStatusFile(), status, and writeStatusFile().
Referenced by cl::utfsm::samplingSystemUI::SampTool::main().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::readStatusFile | ( | boolean | startup | ) | [inline, private] |
References DEFAULT_STATUS_FILENAME, and readStatusFile().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::readStatusFile | ( | String | filename, | |
| boolean | startup | |||
| ) | [inline, private] |
References addToSampling(), BeanGrouperList, and status.
Referenced by getFileMenuLoadStatusButton(), loadWindow(), and readStatusFile().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::setStatus | ( | int | status | ) | [inline] |
References cl::utfsm::samplingSystemUI::StatusIcon::setStatus(), and statusIcon.
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::writeStatusFile | ( | ) | [inline, private] |
References DEFAULT_STATUS_FILENAME.
Referenced by getFileMenuSaveStatusButton(), and loadWindow().
| void cl::utfsm::samplingSystemUI::SamplingSystemGUI::writeStatusFile | ( | String | filename | ) | [inline, private] |
References BeanGrouperList, and status.
JButton cl::utfsm::samplingSystemUI::SamplingSystemGUI::addSampleButton = null [private] |
Referenced by fillPropertyComboBox(), getAddSampleButton(), and getComponentComboBox().
ArrayList<BeanGrouper> cl::utfsm::samplingSystemUI::SamplingSystemGUI::BeanGrouperList [private] |
Referenced by addToSampling(), checkSamplingManager(), deleteBeanGrouper(), groupExists(), readStatusFile(), SamplingSystemGUI(), and writeStatusFile().
String [] cl::utfsm::samplingSystemUI::SamplingSystemGUI::compList = null [private] |
Referenced by fillWidgets(), and getComponentComboBox().
JComboBox cl::utfsm::samplingSystemUI::SamplingSystemGUI::ComponentComboBox = null [private] |
Referenced by fillComponentComboBox(), getAddSampleButton(), and getComponentComboBox().
JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::componentLabel = null [private] |
Referenced by getComponentLabel().
final String cl::utfsm::samplingSystemUI::SamplingSystemGUI::DEFAULT_STATUS_FILENAME = "default.ssgst" [static, private] |
Referenced by readStatusFile(), and writeStatusFile().
JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::FileMenu = null [private] |
Referenced by getFileMenu(), and getHelpMenu().
JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::FileMenuExitButton = null [private] |
Referenced by getFileMenuExitButton().
JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::FileMenuLoadStatusButton = null [private] |
Referenced by getFileMenuLoadStatusButton().
JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::FileMenuSaveStatusButton = null [private] |
Referenced by getFileMenuSaveStatusButton().
JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::FileMenuSelectSMButton = null [private] |
Referenced by getFileMenuSelectSMButton().
JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::groupLabel = null [private] |
Referenced by getGroupLabel().
JTextField cl::utfsm::samplingSystemUI::SamplingSystemGUI::groupTextField = null [private] |
Referenced by getAddSampleButton(), and getGroupTextField().
JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::HelpMenu = null [private] |
Referenced by getHelpMenu().
JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::HelpMenuAboutButton = null [private] |
Referenced by getHelpMenuAboutButton().
Vector<Object> cl::utfsm::samplingSystemUI::SamplingSystemGUI::property_sampled [private] |
Referenced by addToSampled(), delFromSampled(), isAlreadySampled(), and SamplingSystemGUI().
JPanel cl::utfsm::samplingSystemUI::SamplingSystemGUI::PropertyAddPanel = null [private] |
Referenced by getPropertyAddPanel().
JComboBox cl::utfsm::samplingSystemUI::SamplingSystemGUI::PropertyComboBox = null [private] |
Referenced by fillPropertyComboBox(), getAddSampleButton(), getComponentComboBox(), and getPropertyComboBox().
JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::propertyLabel = null [private] |
Referenced by getPropertyLabel().
LinkedList<List<String> > cl::utfsm::samplingSystemUI::SamplingSystemGUI::propList [private] |
Referenced by fillWidgets(), and getComponentComboBox().
final long cl::utfsm::samplingSystemUI::SamplingSystemGUI::serialVersionUID = 1L [static, private] |
JMenuBar cl::utfsm::samplingSystemUI::SamplingSystemGUI::SSGMenuBar = null [private] |
Referenced by getSSGMenuBar().
ArrayList<SerializableProperty> cl::utfsm::samplingSystemUI::SamplingSystemGUI::status [private] |
Referenced by deleteBeanGrouper(), loadWindow(), readStatusFile(), and writeStatusFile().
Referenced by checkSamplingManager(), getStatusIcon(), and setStatus().
1.6.2