Class ResourceTracker


  • public final class ResourceTracker
    extends java.lang.Object
    Tracks robot resources (sensors, motor controllers, etc.) to allow Subsystems to ensure separation of task runs.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.concurrent.locks.Lock track​(java.lang.Object resource)
      Acquire the unique lock associated with a resource.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • track

        public static java.util.concurrent.locks.Lock track​(java.lang.Object resource)
        Acquire the unique lock associated with a resource.
        Parameters:
        resource - the resource required
        Returns:
        a unique associated lock