Package me.wobblyyyy.pathfinder.thread
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
thread
PathfinderThread threadThe pathfinder thread that's used here.
-
-
Constructor Details
-
PathfinderThreadManager
-
PathfinderThreadManager
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.
-