Interface HubDataListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
HubDataAdapter

public interface HubDataListener extends EventListener
Hub data listener interface. This listener responds to changes in the bike count and overflow area for a hub.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    hubChanged(Hub hub, int bikeCount, boolean newBikeCount, int overflowCount, boolean newOverflowCount, double time, long ticks)
    Notify this listener that a hub's counts changed.
  • Method Details

    • hubChanged

      void hubChanged(Hub hub, int bikeCount, boolean newBikeCount, int overflowCount, boolean newOverflowCount, double time, long ticks)
      Notify this listener that a hub's counts changed. This listener is intended for instrumentation purposes.
      Parameters:
      hub - the hub that changed
      bikeCount - the new bike count
      newBikeCount - true if the bicycle count has changed during the event that invoked this listener; false otherwise
      overflowCount - the new overflow count
      newOverflowCount - true if the overflow count has changed during the event that invoked this listener; false otherwise
      time - the simulation time at which this method was called
      ticks - the simulation time in units of ticks at which this method was called