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 Details

    • ProbeListenerSupport

      public ProbeListenerSupport()
  • Method Details

    • 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 event
      probedObject - the probed object
      type - 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 event
      probedObject - the probed object
    • removeAllProbeListeners

      public void removeAllProbeListeners()
      Removes all the probeListeners.