Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members | Related Pages

clusterView::Controller Class Reference

Collaboration diagram for clusterView::Controller:

Collaboration graph
[legend]
List of all members.

Public Member Functions

NodeFrame getFNode (String node)
 Controller ()
void refreshView ()
void createNodeView (HashMap nodeProperties)
void updateNodesFrames ()
void updateHistoricalData ()
void updateHistoricalFrames ()
void updateOneHistoricalFrame (String nodeName)
void createHistFrame (String nodeName)
void moveHistFrameToFront (JInternalFrame frame)
int roundPercentage (HashMap specs, String partField, String totalField)

Private Member Functions

void updateRefreshPeriod (long period)

Private Attributes

long refreshPeriod
Timer timer
ClusterView view
HashMap clusterInfo
ORB orb
InternalFrameHandler handler
HashMap seleNodes
NodeFrame fNode
HistoricalFrame histFrame
HashMap historicalFrames
HashMap historicalNodes
HistoricalNode hNode
int historicalNodesCount

Detailed Description

The Controller class acts as the controller component of the MVC model. It decouples the code that handle the actions of the users from the view.

Author:
Stefan Neusatz Guilhen
See also:
ClusterView
Version:
1.1


Constructor & Destructor Documentation

clusterView::Controller::Controller  )  [inline]
 


Member Function Documentation

void clusterView::Controller::createHistFrame String  nodeName  )  [inline]
 

This method "creates a historicalFrame for a selected node". It's called by the updateOneHistoricalFrame(String nodeName) method.

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::createNodeView HashMap  nodeProperties  )  [inline]
 

This method "creates a nodeFrame for a selected node, yet not created" It is called by a mouse click event handler when an user select an item at the nodes list by a double click on it.

Author:
Alexandre César Tavares Vidal

NodeFrame clusterView::Controller::getFNode String  node  )  [inline]
 

void clusterView::Controller::moveHistFrameToFront JInternalFrame  frame  )  [inline]
 

This method "moves a historicalFrame to front".

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::refreshView  )  [inline]
 

This method refreshes the cluster information, by looking up in the trader.

int clusterView::Controller::roundPercentage HashMap  specs,
String  partField,
String  totalField
[inline]
 

void clusterView::Controller::updateHistoricalData  )  [inline]
 

This method "updates historical nodes information for all nodes", and it's callled by the "refreshView" method. That method is called either periodically, by timer events, or by the "refresh now" button event handler when an user press the "refresh now" button.

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::updateHistoricalFrames  )  [inline]
 

This method updates "historical charts for currently opened historical views", and it's callled by the "refreshView" method. That method is called either periodically, by timer events, or by the "refresh now" button event handler when an user press the "refresh now" button.

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::updateNodesFrames  )  [inline]
 

This method "updates information for currently opened node frames" and it's callled by the "refreshView" method. That method is called either periodically, by timer events, or by the "refresh now" button event handler when an user press the "refresh now" button.

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::updateOneHistoricalFrame String  nodeName  )  [inline]
 

This method "updates a historicalFrame for a selected node". It is called by an ItemEvent handler when an user click on a "JCheckBox" at a specific node frame.

Author:
Alexandre César Tavares Vidal

void clusterView::Controller::updateRefreshPeriod long  period  )  [inline, private]
 

This method updates the refreshing period.

Parameters:
period - the refreshing period.


Member Data Documentation

HashMap clusterView::Controller::clusterInfo [private]
 

NodeFrame clusterView::Controller::fNode [private]
 

InternalFrameHandler clusterView::Controller::handler [private]
 

HistoricalFrame clusterView::Controller::histFrame [private]
 

HashMap clusterView::Controller::historicalFrames [private]
 

HashMap clusterView::Controller::historicalNodes [private]
 

int clusterView::Controller::historicalNodesCount [private]
 

HistoricalNode clusterView::Controller::hNode [private]
 

ORB clusterView::Controller::orb [private]
 

long clusterView::Controller::refreshPeriod [private]
 

HashMap clusterView::Controller::seleNodes [private]
 

Timer clusterView::Controller::timer [private]
 

ClusterView clusterView::Controller::view [private]
 


The documentation for this class was generated from the following file:
Generated on Mon Sep 6 16:13:25 2004 by doxygen 1.3.3