Package repast.simphony.visualization
Class ProbeListenerSupport
- java.lang.Object
-
- repast.simphony.visualization.ProbeListenerSupport
-
public class ProbeListenerSupport extends Object
Utility class for handling the broadcast of ProbeEvents.- Version:
- $Revision$ $Date$
- Author:
- Nick Collier
-
-
Constructor Summary
Constructors Constructor Description ProbeListenerSupport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
removeAllProbeListeners()
Removes all the probeListeners.
-
-
-
Method Detail
-
addProbeListener
public void addProbeListener(ProbeListener listener)
Adds a probe listener to the list of listeners to broadcast probe events to.- Parameters:
listener
- the listener to add
-
fireProbeEvent
public 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.- Parameters:
source
- the source of the eventprobedObject
- the probed objecttype
- the type of the probe
-
fireProbeEvent
public 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.- Parameters:
source
- the source of the eventprobedObject
- the probed object
-
removeAllProbeListeners
public void removeAllProbeListeners()
Removes all the probeListeners.
-
-