cl::utfsm::samplingSystemUI::SamplingSystemGUI Class Reference

Inheritance diagram for cl::utfsm::samplingSystemUI::SamplingSystemGUI:
Inheritance graph
[legend]
Collaboration diagram for cl::utfsm::samplingSystemUI::SamplingSystemGUI:
Collaboration graph
[legend]

List of all members.

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< SerializablePropertystatus
ArrayList< BeanGrouperBeanGrouperList
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"

Detailed Description

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.

Author:
Jorge Avarias <javarias@inf.utfsm.cl>
Rodrigo Tobar <rtobar@inf.utfsm.cl>
Alejandro Baltra <abaltra@alumnos.inf.utfsm.cl>
Arturo Hoffstadt <ahoffsta@inf.utfsm.cl>

Constructor & Destructor Documentation

cl::utfsm::samplingSystemUI::SamplingSystemGUI::SamplingSystemGUI (  )  [inline]

This is the default constructor. It starts the initialization of the window.

References BeanGrouperList, initialize(), and property_sampled.


Member Function Documentation

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

Parameters:
component Component that contains the Property to be sampled.
property Property to be sampled.
group SamplingGroup at which the property is to be added.
Returns:
Whether or not the property was added to the sampling group.

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

Parameters:
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]
JButton cl::utfsm::samplingSystemUI::SamplingSystemGUI::getAddSampleButton (  )  [inline, private]

This method initializes addSampleButton

Returns:
javax.swing.JButton

References addSampleButton, addToSampling(), ComponentComboBox, groupTextField, and PropertyComboBox.

Referenced by getPropertyAddPanel().

JComboBox cl::utfsm::samplingSystemUI::SamplingSystemGUI::getComponentComboBox (  )  [inline, private]

This method initializes ComponentComboBox

Returns:
javax.swing.JComboBox

References addSampleButton, compList, ComponentComboBox, fillPropertyComboBox(), PropertyComboBox, and propList.

Referenced by getPropertyAddPanel().

JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getComponentLabel (  )  [inline, private]

This method initializes groupLabel

Returns:
javax.swing.JLabel

References componentLabel.

Referenced by getPropertyAddPanel().

JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenu (  )  [inline, private]

This method initializes FileMenu

Returns:
javax.swing.JMenu

References FileMenu, getFileMenuExitButton(), getFileMenuLoadStatusButton(), getFileMenuSaveStatusButton(), and getFileMenuSelectSMButton().

Referenced by getSSGMenuBar().

JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuExitButton (  )  [inline, private]

This method initializes FileMenuExitButton

Returns:
javax.swing.JMenuItem

References FileMenuExitButton.

Referenced by getFileMenu().

JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuLoadStatusButton (  )  [inline, private]

This method initializes FileMenuLoadStatusButton

Returns:
javax.swing.JMenuItem

References FileMenuLoadStatusButton, and readStatusFile().

Referenced by getFileMenu().

JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuSaveStatusButton (  )  [inline, private]

This method initializes FileMenuSaveStatusButton

Returns:
javax.swing.JMenuItem

References FileMenuSaveStatusButton, and writeStatusFile().

Referenced by getFileMenu().

JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getFileMenuSelectSMButton (  )  [inline, private]

This method initializes FileMenuSelectSMButton

Returns:
javax.swing.JMenuItem

References checkSamplingManager(), FileMenuSelectSMButton, and MAN_NAME.

Referenced by getFileMenu().

JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getGroupLabel (  )  [inline, private]

This method initializes groupLabel

Returns:
javax.swing.JLabel

References groupLabel.

Referenced by getPropertyAddPanel().

JTextField cl::utfsm::samplingSystemUI::SamplingSystemGUI::getGroupTextField (  )  [inline, private]

This method initializes groupTextField

Returns:
javax.swing.JTextField

References groupTextField.

Referenced by getPropertyAddPanel().

JMenu cl::utfsm::samplingSystemUI::SamplingSystemGUI::getHelpMenu (  )  [inline, private]

This method initializes HelpMenu

Returns:
javax.swing.JMenu

References FileMenu, getHelpMenuAboutButton(), and HelpMenu.

Referenced by getSSGMenuBar().

JMenuItem cl::utfsm::samplingSystemUI::SamplingSystemGUI::getHelpMenuAboutButton (  )  [inline, private]

This method initializes FileMenuSelectSMButton

Returns:
javax.swing.JMenuItem

References HelpMenuAboutButton.

Referenced by getHelpMenu().

JPanel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getPropertyAddPanel (  )  [inline, private]

This method initializes PropertyAddPanel

Returns:
javax.swing.JPanel

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

Returns:
javax.swing.JComboBox

References PropertyComboBox.

Referenced by getPropertyAddPanel().

JLabel cl::utfsm::samplingSystemUI::SamplingSystemGUI::getPropertyLabel (  )  [inline, private]

This method initializes groupLabel

Returns:
javax.swing.JLabel

References propertyLabel.

Referenced by getPropertyAddPanel().

JMenuBar cl::utfsm::samplingSystemUI::SamplingSystemGUI::getSSGMenuBar (  )  [inline, private]

This method initializes SSGMenuBar

Returns:
javax.swing.JMenuBar

References getFileMenu(), getHelpMenu(), and SSGMenuBar.

Referenced by initialize().

StatusIcon cl::utfsm::samplingSystemUI::SamplingSystemGUI::getStatusIcon (  )  [inline, private]

This method initializes statusIcon

Returns:
javax.swing.JLabel

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

Parameters:
groupName Name of the SamplingGroup to be searched.
Returns:
Whether or not the SamplingGroup exits.

References BeanGrouperList.

Referenced by addToSampling().

void cl::utfsm::samplingSystemUI::SamplingSystemGUI::initialize (  )  [inline, private]

This method initializes this GUI

Returns:
void

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]
void cl::utfsm::samplingSystemUI::SamplingSystemGUI::readStatusFile ( boolean  startup  )  [inline, private]
void cl::utfsm::samplingSystemUI::SamplingSystemGUI::readStatusFile ( String  filename,
boolean  startup 
) [inline, private]
void cl::utfsm::samplingSystemUI::SamplingSystemGUI::setStatus ( int  status  )  [inline]
void cl::utfsm::samplingSystemUI::SamplingSystemGUI::writeStatusFile (  )  [inline, private]
void cl::utfsm::samplingSystemUI::SamplingSystemGUI::writeStatusFile ( String  filename  )  [inline, private]

References BeanGrouperList, and status.


Member Data Documentation

Referenced by getComponentLabel().

final String cl::utfsm::samplingSystemUI::SamplingSystemGUI::DEFAULT_STATUS_FILENAME = "default.ssgst" [static, private]

Referenced by readStatusFile(), and writeStatusFile().

Referenced by getFileMenu(), and getHelpMenu().

Referenced by getFileMenuExitButton().

Referenced by getGroupLabel().

Referenced by getHelpMenu().

Referenced by getHelpMenuAboutButton().

Referenced by getPropertyAddPanel().

Referenced by getPropertyLabel().

LinkedList<List<String> > cl::utfsm::samplingSystemUI::SamplingSystemGUI::propList [private]

Referenced by getSSGMenuBar().


The documentation for this class was generated from the following file:

Generated by  doxygen 1.6.2