be.ac.ulg.montefiore.run.totem.chart.facade
Class ChartManager

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.chart.facade.ChartManager

public class ChartManager
extends java.lang.Object

Singleton class. The instance can be obtained by the getInstance static method. Global access point to the currently used charts objects. Charts are identified by their name which is of type String.

Creation date: 16 d�c. 2005

Author:
Ga�l Monfort (monfort@run.montefiore.ulg.ac.be)

Method Summary
 void addChart(java.lang.String name, Chart chart)
          Add a chart to the manager
 java.lang.String[] getAllChartsName()
           
 Chart getChart(java.lang.String name)
          return a chart given its name
static ChartManager getInstance()
          return the instance of the singleton class ChartManager
 void removeChart(java.lang.String name)
          remove a chart from manager.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ChartManager getInstance()
return the instance of the singleton class ChartManager

Returns:

addChart

public void addChart(java.lang.String name,
                     Chart chart)
              throws ChartParameterException
Add a chart to the manager

Parameters:
name - Name of the chart.
chart -
Throws:
ChartParameterException

getChart

public Chart getChart(java.lang.String name)
               throws NoSuchChartException
return a chart given its name

Parameters:
name -
Returns:
Throws:
NoSuchChartException - if the chart does not exists

getAllChartsName

public java.lang.String[] getAllChartsName()

removeChart

public void removeChart(java.lang.String name)
                 throws NoSuchChartException
remove a chart from manager.

Parameters:
name -
Throws:
NoSuchChartException - if the chart did not exists in the manager.


Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.