Package repast.simphony.visualization
Class ProbeListenerSupport
java.lang.Object
repast.simphony.visualization.ProbeListenerSupport
Utility class for handling the broadcast of ProbeEvents.
- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addProbeListener
(ProbeListener listener) Adds a probe listener to the list of listeners to broadcast probe events to.void
fireProbeEvent
(Object source, List<?> probedObject) Broadcast a probe event consisting of the specified source and probed object to the current list of probe listeners.void
fireProbeEvent
(Object source, List<?> probedObject, ProbeEvent.Type type) Broadcast a probe event consisting of the specified source, probed object and type to the current list of probe listeners.void
Removes all the probeListeners.
-
Constructor Details
-
ProbeListenerSupport
public ProbeListenerSupport()
-
-
Method Details
-
addProbeListener
Adds a probe listener to the list of listeners to broadcast probe events to.- Parameters:
listener
- the listener to add
-
fireProbeEvent
Broadcast a probe event consisting of the specified source, probed object and type to the current list of probe listeners.- Parameters:
source
- the source of the eventprobedObject
- the probed objecttype
- the type of the probe
-
fireProbeEvent
Broadcast a probe event consisting of the specified source and probed object to the current list of probe listeners.- Parameters:
source
- the source of the eventprobedObject
- the probed object
-
removeAllProbeListeners
public void removeAllProbeListeners()Removes all the probeListeners.
-