Package edu.tufts.hrilab.vision.tracker
Class AvailableTrackers
java.lang.Object
edu.tufts.hrilab.vision.tracker.AvailableTrackers
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAll()
Should only be used by the GUI!getInstance
(SearchManager client, NativeTracker.TrackerType tType) Get Tracker instance of specified type.boolean
hasAvailableTracker
(NativeTracker.TrackerType trackerType) void
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.
-
Constructor Details
-
AvailableTrackers
-
-
Method Details
-
getAll
Should only be used by the GUI!- Returns:
- container of all instantiated Trackers
-
getInstance
Get Tracker instance of specified type.- Parameters:
client
- - Java object requesting Tracker instacetType
- - type if Tracker- Returns:
- instantiated Tracker
-
hasAvailableTracker
-
release
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.
-