Environments
Class ModelManager

java.lang.Object
  |
  +--Environments.ModelManager

public class ModelManager
extends java.lang.Object

The ModelManager class is used to deal with MVC modelling in the graphical version of MACS

Author:
Olivier SIGAUD (olivier.sigaud@lip6.fr)

Field Summary
private  Environments.Environment myEnv
           
protected  boolean myStoppedFlag
          Flag indicating the stop event reception of the Environment
private  MACS.RuleBasedSystem mySystem
           
 
Constructor Summary
ModelManager()
          Constructor
 
Method Summary
protected  MACS.RuleBasedSystem getRuleBasedSystem()
           
 boolean isStopped()
          Get the Flag indicating the stop event reception of the Environment
 void setEnvironment(Environments.Environment env)
           
 void setRuleBasedSystem(MACS.RuleBasedSystem syst)
           
 void setStoppedFlag(boolean isStopped)
          Set the Flag indicating the stop event reception of the Environment
 void takeStepForGUI()
          Compute the next step of the Environment for a GUI output
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myStoppedFlag

protected boolean myStoppedFlag
Flag indicating the stop event reception of the Environment


mySystem

private MACS.RuleBasedSystem mySystem

myEnv

private Environments.Environment myEnv
Constructor Detail

ModelManager

public ModelManager()
Constructor

Method Detail

getRuleBasedSystem

protected MACS.RuleBasedSystem getRuleBasedSystem()
Returns:
Experiments.RuleBasedSystem

setStoppedFlag

public final void setStoppedFlag(boolean isStopped)
Set the Flag indicating the stop event reception of the Environment

Parameters:
isStopped -

isStopped

public final boolean isStopped()
Get the Flag indicating the stop event reception of the Environment

Returns:
boolean

setEnvironment

public void setEnvironment(Environments.Environment env)
Parameters:
env -

setRuleBasedSystem

public void setRuleBasedSystem(MACS.RuleBasedSystem syst)
Parameters:
syst -

takeStepForGUI

public void takeStepForGUI()
Compute the next step of the Environment for a GUI output