Class AvailableTrackers

java.lang.Object
edu.tufts.hrilab.vision.tracker.AvailableTrackers

public class AvailableTrackers extends Object
Object Tracker Factory. This contains the tracker types available to the system, instantiates and dispenses Trackers to the system, and manages the instantiated Trackers. Trackers are made available to the system through a getInstance call, and all Tracker clients must notify the factory when a Tracker is no longer needed by calling release. Thread-safe!
  • Constructor Details

    • AvailableTrackers

      public AvailableTrackers(int imgWidth, int imgHeight, String configFile)
  • Method Details

    • getAll

      public NonEDTListModel<Tracker> getAll()
      Should only be used by the GUI!
      Returns:
      container of all instantiated Trackers
    • getInstance

      public Tracker getInstance(SearchManager client, NativeTracker.TrackerType tType)
      Get Tracker instance of specified type.
      Parameters:
      client - - Java object requesting Tracker instace
      tType - - type if Tracker
      Returns:
      instantiated Tracker
    • hasAvailableTracker

      public boolean hasAvailableTracker(NativeTracker.TrackerType trackerType)
    • release

      public void release(Object client, Tracker tracker)
      Client needs to let managing factory know when it's done using a Tracker instance, so that Detectors can be properly managed and garbage collected.