sysModel
Class SimEngine

java.lang.Object
  extended by sysModel.SimEngine

public class SimEngine
extends java.lang.Object

Simulation engine that contains the observable and manages observers.

Author:
Mathias Ricken

Field Summary
private  java.util.Observable _observable
          The observable.
 
Constructor Summary
SimEngine()
           
 
Method Summary
 void add(java.util.Observer observer)
          Add observer to simulation.
 void clear()
          Clears all observers.
 void delete(java.util.Observer observer)
          Remove observer from simulation.
 void notify(ILambda lambda)
          Accept a lambda and pass it to all observers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_observable

private java.util.Observable _observable
The observable.

Constructor Detail

SimEngine

public SimEngine()
Method Detail

add

public void add(java.util.Observer observer)
Add observer to simulation.

Parameters:
observer - observer to add

delete

public void delete(java.util.Observer observer)
Remove observer from simulation.

Parameters:
observer - observer to remove

notify

public void notify(ILambda lambda)
Accept a lambda and pass it to all observers.

Parameters:
lambda - lambda to execute

clear

public void clear()
Clears all observers.