Package 

Interface ISubsystemHub

  • 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.
      • Methods inherited from class com.automaducks.pond.subsystems.IRealTimeSubsystem

        periodic
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.