public class ControllerManager
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.util.LinkedHashMap<java.lang.String,IController> |
activeControllers |
protected java.util.Vector<java.lang.Class<? extends IController>> |
controllers |
protected boolean |
debug |
protected java.util.LinkedHashMap<java.lang.String,java.util.Timer> |
timers |
protected boolean |
useAcousticComms |
| Constructor and Description |
|---|
ControllerManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addController(java.lang.Class<? extends IController> cClass)
Add a new controller class
|
void |
associateControl(IController controller,
VehicleType vehicle,
int controlLatencySeconds,
int timeoutSeconds)
Create a control loop
|
void |
dissociateControl(VehicleType vehicle) |
void |
setUseAcousticComms(boolean useAcousticComms) |
protected void |
startTimers() |
void |
stop() |
protected java.util.LinkedHashMap<java.lang.String,IController> activeControllers
protected java.util.LinkedHashMap<java.lang.String,java.util.Timer> timers
protected java.util.Vector<java.lang.Class<? extends IController>> controllers
protected boolean useAcousticComms
protected boolean debug
public void addController(java.lang.Class<? extends IController> cClass)
cClass - The class of the controllerprotected void startTimers()
public void stop()
public void associateControl(IController controller, VehicleType vehicle, int controlLatencySeconds, int timeoutSeconds) throws java.lang.Exception
controller - The controller in chargevehicle - The vehicle being controlledcontrolLatencySeconds - java.lang.Exceptionpublic void dissociateControl(VehicleType vehicle)
public void setUseAcousticComms(boolean useAcousticComms)
Copyright © 2004-2018 FEUP-LSTS and Neptus developers. All Rights Reserved.