massim.framework
Class BroadcastObserver
java.lang.Object
massim.framework.DefaultObserver
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BroadcastObserver
public BroadcastObserver()
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.