Classes | Public Member Functions | Package Attributes

cl.utfsm.samplingSystemUI.BeanGrouper Class Reference

Inherits javax::swing::JFrame, and java::awt::event::WindowListener.

List of all members.

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< SerializablePropertygetSerializableProperty ()
void loadConfiguration (double 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

Detailed Description

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.

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

Constructor & Destructor Documentation

cl.utfsm.samplingSystemUI.BeanGrouper.BeanGrouper ( SamplingSystemGUI  ssg,
String  group,
int  status 
)

This is the overloaded constructor that allows to save the Sampling Group name

Parameters:
ssg The Sampling Group this BeanGrouper is attached to.
group The name of the Sampling Group this BeanGrouper is grouping.

References cl.utfsm.samplingSystemUI.StatusIcon.setStatus().


Member Function Documentation

void cl.utfsm.samplingSystemUI.BeanGrouper.addSamp ( String  component,
String  property 
)

This method adds to the Sampling Group, a new sample. This method is used by
SamplingSystemGUI to add Sampling to the Sampling Group, represented by BeanGrouper.

  • Creates a PlotPrinter, which extends from DataPrinter.
  • Set the Components and Properties to the PlotPrinter
  • Adds this new Sample to the Sampling Group using the other addSamp method.
    Parameters:
    component Name of the Component containing the property to be sampled.
    property Name of the Property to be sampled.

References cl.utfsm.samplingSystemUI.SamplingSystemGUI.addToSampled(), cl.utfsm.samplingSystemUI.PlotPrinter.setComponent(), cl.utfsm.samplingSystemUI.PlotPrinter.setDumpToFile(), and cl.utfsm.samplingSystemUI.PlotPrinter.setProperty().

boolean cl.utfsm.samplingSystemUI.BeanGrouper.checkIfExists ( String  component,
String  property 
)
String cl.utfsm.samplingSystemUI.BeanGrouper.getGroupName (  ) 

Generic getter for the group name

Returns:
The name of group.

Referenced by cl.utfsm.samplingSystemUI.BeanGrouper.getSerializableProperty(), and cl.utfsm.samplingSystemUI.BeanGrouper.windowClosing().

ScriptExecutor cl.utfsm.samplingSystemUI.BeanGrouper.getScript (  ) 
ArrayList<SerializableProperty> cl.utfsm.samplingSystemUI.BeanGrouper.getSerializableProperty (  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.loadConfiguration ( double  frequency,
int  timeWindow,
int  samplingTime 
)
boolean cl.utfsm.samplingSystemUI.BeanGrouper.Ready2Samp (  ) 

Getter for a boolean status check.

Returns:
True if the Group is selected for sampling, false in the other case
void cl.utfsm.samplingSystemUI.BeanGrouper.runScript (  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.setGroupName ( String  name  ) 

Generic setter for the Group name

Parameters:
name Name of the group
void cl.utfsm.samplingSystemUI.BeanGrouper.setScript ( ScriptExecutor  script  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.setStatus ( int  status  ) 

Method used by the SamplingSystemGUI to set the status icon when a new sampling manager is selected

Parameters:
status 
void cl.utfsm.samplingSystemUI.BeanGrouper.updateLabel (  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowActivated ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowClosed ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowClosing ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowDeactivated ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowDeiconified ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowIconified ( WindowEvent  e  ) 
void cl.utfsm.samplingSystemUI.BeanGrouper.windowOpened ( WindowEvent  e  ) 

Member Data Documentation


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties