be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIf
Class WhatIfManager

java.lang.Object
  extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.AbstractGUIModule
      extended by be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.whatIf.WhatIfManager
All Implemented Interfaces:
GUIModule

public class WhatIfManager
extends AbstractGUIModule

This GUIModule is the manager for the what-if Scenario system TODO: implents the cancel operation (need domains to be clonable)

Author:
: Olivier Materne ( O.Materne@student.ulg.ac.be)

Constructor Summary
WhatIfManager()
           
 
Method Summary
 void add(Scenario scenario)
          add a new step to the current scenario stack
 void discardChanges()
          Discard all changes since the scenario began
 void execute()
          execute scenario stack and call a report generation
static WhatIfManager getInstance()
           
 javax.swing.JMenu getMenu()
          returns the menu for this module
 java.lang.String getName()
          This method returns the module name ("What-if scenarios")
 boolean loadAtStartup()
          Should the Module be loaded at GUI startup ? yes
 
Methods inherited from class be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.AbstractGUIModule
initialize, isUnloadable, terminate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WhatIfManager

public WhatIfManager()
Method Detail

getInstance

public static WhatIfManager getInstance()

loadAtStartup

public boolean loadAtStartup()
Should the Module be loaded at GUI startup ? yes

Specified by:
loadAtStartup in interface GUIModule
Overrides:
loadAtStartup in class AbstractGUIModule
Returns:
true

getMenu

public javax.swing.JMenu getMenu()
returns the menu for this module

Returns:
the menu for this module

getName

public java.lang.String getName()
This method returns the module name ("What-if scenarios")

Returns:
the module name

add

public void add(Scenario scenario)
add a new step to the current scenario stack

Parameters:
scenario -

discardChanges

public void discardChanges()
Discard all changes since the scenario began


execute

public void execute()
execute scenario stack and call a report generation



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