Class PathfinderThreadManager

java.lang.Object
me.wobblyyyy.pathfinder.thread.PathfinderThreadManager

public class PathfinderThreadManager
extends java.lang.Object
Wrapper class used to manage threads.
Since:
0.1.0
Author:
Colin Robertson
  • Field Summary

    Fields
    Modifier and Type Field Description
    (package private) PathfinderThread thread
    The pathfinder thread that's used here.
  • Constructor Summary

    Constructors
    Constructor Description
    PathfinderThreadManager​(java.util.ArrayList<Odometry> odometryArrayList)
    Create a new pathfinder thread manager.
    PathfinderThreadManager​(Odometry odometry)  
  • Method Summary

    Modifier and Type Method Description
    void close()
    Gently shut down the pathfinder thread.
    void start()
    Start the pathfinder thread.
    void stop()
    Stop the pathfinder thread.
    void tick()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • PathfinderThreadManager

      public PathfinderThreadManager​(Odometry odometry)
    • PathfinderThreadManager

      public PathfinderThreadManager​(java.util.ArrayList<Odometry> odometryArrayList)
      Create a new pathfinder thread manager.
      Parameters:
      odometryArrayList - a list of all of the robot's odometry systems.
  • Method Details

    • start

      public void start()
      Start the pathfinder thread.
    • tick

      public void tick()
    • stop

      public void stop()
      Stop the pathfinder thread.
    • close

      public void close()
      Gently shut down the pathfinder thread.