massim.framework
Class BroadcastObserver

java.lang.Object
  extended by massim.framework.DefaultObserver
      extended by massim.framework.BroadcastObserver
All Implemented Interfaces:
Component, Observer

public class BroadcastObserver
extends DefaultObserver

This class provides a simple way to have multiple Observers appearing as one Observer. It will just pass all notifications to all target observers.


Constructor Summary
BroadcastObserver()
           
 
Method Summary
 void addObserver(Observer o)
           
 void notifySimulationConfiguration(SimulationConfiguration simconf)
           
 void notifySimulationEnd()
           
 void notifySimulationStart()
           
 void notifySimulationState(SimulationState state)
           
 void removeObserver(Observer o)
           
 
Methods inherited from class massim.framework.DefaultObserver
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BroadcastObserver

public BroadcastObserver()
Method Detail

addObserver

public void addObserver(Observer o)

removeObserver

public void removeObserver(Observer o)

notifySimulationStart

public void notifySimulationStart()
Specified by:
notifySimulationStart in interface Observer
Overrides:
notifySimulationStart in class DefaultObserver

notifySimulationEnd

public void notifySimulationEnd()
Specified by:
notifySimulationEnd in interface Observer
Overrides:
notifySimulationEnd in class DefaultObserver

notifySimulationState

public void notifySimulationState(SimulationState state)
Specified by:
notifySimulationState in interface Observer
Overrides:
notifySimulationState in class DefaultObserver

notifySimulationConfiguration

public void notifySimulationConfiguration(SimulationConfiguration simconf)
Specified by:
notifySimulationConfiguration in interface Observer
Overrides:
notifySimulationConfiguration in class DefaultObserver


Copyright © 2011. All Rights Reserved.