Package me.wobblyyyy.pathfinder.config
Class PathfinderConfigurationBuilder
java.lang.Object
me.wobblyyyy.pathfinder.config.PathfinderConfigurationBuilder
public class PathfinderConfigurationBuilder
extends java.lang.Object
Simple interface for creating Pathfinder configurations. Please note
that there's no documentation in this class. If you're confused about
the meaning of any of these fields, you can check out the (rather
bulky)
PathfinderConfig
class, which explains everything
rather in-depth.
You should follow this order while building a pathfinder config.
newConfiguration()
, then any of the following:
setFollowerType(Followers)
,
setDrive(Drive)
,
setOdometry(Odometry)
,
setMap(Map)
,
setSpeed(double)
, and then finally (this one has to be last)
you should call build()
.
- Since:
- 0.5.0
- Author:
- Colin Robertson
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description private
PathfinderConfigurationBuilder()
-
Method Summary
Modifier and Type Method Description PathfinderConfig
build()
static PathfinderConfigurationBuilder
newConfiguration()
void
setDrive(Drive _drive)
void
setFollowerType(Followers _followerType)
void
setMap(Map _map)
void
setOdometry(Odometry _odometry)
void
setSpeed(double _speed)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
followerType
-
drive
-
odometry
-
map
-
speed
private double speed
-
-
Constructor Details
-
PathfinderConfigurationBuilder
private PathfinderConfigurationBuilder()
-
-
Method Details
-
newConfiguration
-
setFollowerType
-
setDrive
-
setOdometry
-
setMap
-
setSpeed
public void setSpeed(double _speed) -
build
-