fr.jussieu.gla.wasa.monitor.gui.application
Class ApplicationContext

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.monitor.gui.application.ApplicationContext

public class ApplicationContext
extends java.lang.Object

Placeholder for all shared variables of the application.

Version:
$Revision: 1.15 $ $Date: 2002/04/10 17:24:01 $
Author:
Simeon Fitch (source inspired from Ant Antidote), Florent Selva, Laurent Caillette

Constructor Summary
ApplicationContext(Problem problem)
           
 
Method Summary
 void addCustomizer(ICustomizer customizer)
           
 void cancelExecution()
           
 void execute(IExecutableNode executableNode, int stepCount)
           
 ActionManager getActionManager()
           
 ICustomizer[] getCustomizers()
           
 EventBus getEventBus()
           
 IGlobalOptions getGlobalOptions()
           
 MainFrame getMainFrame()
           
 ProblemNode getProblemNode()
           
 java.util.Random getRandom()
           
 ResourceManager getResourceManager()
           
 SelectionManager getSelectionManager()
           
 int getStepCountInput()
           
 boolean isExecuting()
           
 void setGlobalOptions(IGlobalOptions newOptions)
           
 void setMainFrame(MainFrame frame)
          Supposed to be set only once, at application startup.
 void setRandom(java.util.Random random)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationContext

public ApplicationContext(Problem problem)
Method Detail

getEventBus

public EventBus getEventBus()

getResourceManager

public ResourceManager getResourceManager()

getActionManager

public ActionManager getActionManager()

getSelectionManager

public SelectionManager getSelectionManager()

getMainFrame

public MainFrame getMainFrame()

getProblemNode

public ProblemNode getProblemNode()

setMainFrame

public void setMainFrame(MainFrame frame)
Supposed to be set only once, at application startup.
Parameters:
frame - The MainFrame instance.

getRandom

public java.util.Random getRandom()

setRandom

public void setRandom(java.util.Random random)

execute

public void execute(IExecutableNode executableNode,
                    int stepCount)

cancelExecution

public void cancelExecution()

isExecuting

public boolean isExecuting()

getStepCountInput

public int getStepCountInput()

addCustomizer

public void addCustomizer(ICustomizer customizer)

getCustomizers

public ICustomizer[] getCustomizers()

getGlobalOptions

public IGlobalOptions getGlobalOptions()

setGlobalOptions

public void setGlobalOptions(IGlobalOptions newOptions)