-
- All Implemented Interfaces:
-
com.automaducks.pond.subsystems.IRealTimeSubsystem
,com.automaducks.pond.subsystems.ISubsystem
public interface ISubsystemHub implements IRealTimeSubsystem
-
-
Method Summary
Modifier and Type Method Description abstract void
add(ISubsystem subsystem)
Add a new subsystem to the hub. abstract <T extends ISubsystem> T
findFirst(Class<T> subsystemClass)
Find the first available subsystem by its class. abstract void
remove(ISubsystem subsystem)
Removes an subsystem to the hub. -
-
Method Detail
-
add
abstract void add(ISubsystem subsystem)
Add a new subsystem to the hub.
- Parameters:
subsystem
- subsystem to be added.
-
findFirst
abstract <T extends ISubsystem> T findFirst(Class<T> subsystemClass)
Find the first available subsystem by its class.
- Parameters:
subsystemClass
- the subsystem class.
-
remove
abstract void remove(ISubsystem subsystem)
Removes an subsystem to the hub.
- Parameters:
subsystem
- subsystem to be removed.
-
-
-
-