Package frc.lib.service
Class BaseService
java.lang.Object
frc.lib.service.BaseService
- Direct Known Subclasses:
ControlService,Vision
The base class for all background data providers.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a BaseService with the default name.BaseService(String name) Constructs a BaseService with a custom name. -
Method Summary
-
Field Details
-
name
The name of the service.
-
-
Constructor Details
-
BaseService
public BaseService()Constructs a BaseService with the default name. -
BaseService
Constructs a BaseService with a custom name. This can be useful for distinguishing multiple instances of the same service type in logs.- Parameters:
name- The name of the service.
-
-
Method Details
-
update
public abstract void update()Logic to be executed in parallel. Marked 'abstract' so every child MUST implement it. -
getName
Returns the name of the service, which is by default the class name. This can be overridden for more descriptive names.- Returns:
- The name of the service.
-