-
- 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 <T extends ISubsystem> Tadd(T subsystem)Add a new subsystem to the hub. abstract <T extends ISubsystem> TfindFirst(Class<T> subsystemClass)Find the first available subsystem by its class. abstract voidremove(ISubsystem subsystem)Removes an subsystem to the hub. -
-
Method Detail
-
add
abstract <T extends ISubsystem> T add(T 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.
-
-
-
-