be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report
Class LinksWIReport

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.LinksWIReport
All Implemented Interfaces:
WIReport
Direct Known Subclasses:
LoadWIReport, ReservedBandwidthWIReport, UtilisationWIReport

public abstract class LinksWIReport
extends java.lang.Object
implements WIReport

An abstract report class that collects some data about links, displays agregate information (max, mean, percentile,...) and a table where each row correspond to a link. This table uses a LinksWITableModel. The panel also contains a button to show charts, if charts is desired (see hasCharts() and çshowCharts() methods).

Creation date: 23/04/2007

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

Field Summary
protected  Domain domain
           
protected  double[] finalData
           
protected  double[] initialData
           
 
Constructor Summary
protected LinksWIReport(Domain domain)
           
 
Method Summary
 javax.swing.JPanel getPanel()
          Returns a panel displaying the difference between the data collected by WIReport.computeInitialData() and by WIReport.computeFinalData()
protected abstract  boolean hasCharts()
          Must return true if a chart can be display by the showCharts() method.
protected abstract  void showCharts()
          Show the charts.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.WIReport
computeFinalData, computeInitialData, getName, getShortName
 

Field Detail

initialData

protected double[] initialData

finalData

protected double[] finalData

domain

protected Domain domain
Constructor Detail

LinksWIReport

protected LinksWIReport(Domain domain)
Method Detail

getPanel

public javax.swing.JPanel getPanel()
Description copied from interface: WIReport
Returns a panel displaying the difference between the data collected by WIReport.computeInitialData() and by WIReport.computeFinalData()

Specified by:
getPanel in interface WIReport
Returns:

hasCharts

protected abstract boolean hasCharts()
Must return true if a chart can be display by the showCharts() method. In this case a button will be added to the panel.

Returns:

showCharts

protected abstract void showCharts()
Show the charts. This method is called only if hasCharts() returns true.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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