Package repast.simphony.scenario
Class ScenarioChangedSupport
java.lang.Object
repast.simphony.scenario.ScenarioChangedSupport
Support class for registering ScenarioChagedListeners and firing scenario changed events.
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(ScenarioChangedListener listener) Adds a ScenarioChangedListener that will be notified when events are fired.void
fireScenarioChanged
(Object src, String property) Fires a ScenarioChangeEvent to all the listeners.
-
Constructor Details
-
ScenarioChangedSupport
public ScenarioChangedSupport()
-
-
Method Details
-
addListener
Adds a ScenarioChangedListener that will be notified when events are fired.- Parameters:
listener
-
-
fireScenarioChanged
Fires a ScenarioChangeEvent to all the listeners.- Parameters:
src
-property
-
-