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

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.LinksWIReport
      extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.impl.LinkLoadComputerUtilisationWIReport
All Implemented Interfaces:
WIReport

public class LinkLoadComputerUtilisationWIReport
extends LinksWIReport

Reports to compare the utilisation calculated by LinkLoadComputer. It uses two LinkLoadComputer objects (that can be the same). one is used to compute the initial data and the other for the final data. A dropped traffic panel is added to the LinksWIReport.

Creation date: 25/02/2008

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

Field Summary
 
Fields inherited from class be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.LinksWIReport
domain, finalData, formatter, initialData
 
Constructor Summary
LinkLoadComputerUtilisationWIReport(Domain domain, LinkLoadComputer initialLLC, LinkLoadComputer finalLLC)
           
 
Method Summary
 void computeFinalData()
          Save the final data in its internal state.
 void computeInitialData()
          Save the initial data in its internal state.
 boolean equals(java.lang.Object o)
           
 java.lang.String getName()
          Returns a name corresponding to the type of report and its parameters.
 javax.swing.JPanel getPanel()
          Returns a panel displaying the difference between the data collected by WIReport.computeInitialData() and by WIReport.computeFinalData()
 java.lang.String getShortName()
          Returns the name of the type of report.
protected  boolean hasCharts()
          Must return true if a chart can be display by the LinksWIReport.showCharts() method.
protected  void showCharts()
          Show the charts.
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIfScenarios.model.report.LinksWIReport
addStatPanel, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkLoadComputerUtilisationWIReport

public LinkLoadComputerUtilisationWIReport(Domain domain,
                                           LinkLoadComputer initialLLC,
                                           LinkLoadComputer finalLLC)
Method Detail

hasCharts

protected boolean hasCharts()
Description copied from class: LinksWIReport
Must return true if a chart can be display by the LinksWIReport.showCharts() method. In this case a button will be added to the panel.

Specified by:
hasCharts in class LinksWIReport
Returns:

showCharts

protected void showCharts()
Description copied from class: LinksWIReport
Show the charts. This method is called only if LinksWIReport.hasCharts() returns true.

Specified by:
showCharts in class LinksWIReport

computeInitialData

public void computeInitialData()
Description copied from interface: WIReport
Save the initial data in its internal state.


computeFinalData

public void computeFinalData()
Description copied from interface: WIReport
Save the final data in its internal state.


getName

public java.lang.String getName()
Description copied from interface: WIReport
Returns a name corresponding to the type of report and its parameters.

Returns:

getShortName

public java.lang.String getShortName()
Description copied from interface: WIReport
Returns the name of the type of report.

Returns:

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

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
Overrides:
getPanel in class LinksWIReport
Returns:


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