Interface MSwitch

    • Method Detail

      • getDescription

        static java.lang.String getDescription()
      • getName

        java.lang.String getName​(int channel)
      • getSubInstrumentTypes

        default java.util.List<java.lang.Class<? extends Instrument>> getSubInstrumentTypes()
        Description copied from interface: MultiInstrument
        Returns a list of all the different classes of sub-instruments that this instrument contains.
        Specified by:
        getSubInstrumentTypes in interface MultiInstrument
        Returns:
        List of sub-instrument classes
      • get

        default <I extends Instrument> java.util.List<I> get​(java.lang.Class<I> type)
        Description copied from interface: MultiInstrument
        Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.
        Specified by:
        get in interface MultiInstrument
        Type Parameters:
        I - Instrument class
        Parameters:
        type - The class object of sub-instrument to return
        Returns:
        List of sub-instruments matching the given class
      • getNumChannels

        int getNumChannels()
      • getChannels

        default java.util.List<Switch> getChannels()
      • getChannel

        default Switch getChannel​(int channel)