Package jisa.devices.interfaces
Interface MultiInstrument
-
- All Known Implementing Classes:
ADRelay,Agilent4155B,Agilent4155C,Agilent4156B,Agilent4156C,AgilentB1500A,AgilentSPA,ArroyoTEC,CryoCon22C,DummyMCSMU,ET2408,FakeTC,ILM200,ITC503,K1234,K2600B,LS331,LS336,MercuryITC,TestFET,USBTC08
public interface MultiInstrument
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default booleancontains(java.lang.Class<? extends Instrument> type)Checks whether this instrument contains any sub-instruments that can be considered to be of the specified typedefault booleancontains(kotlin.reflect.KClass<? extends Instrument> type)<I extends Instrument>
java.util.List<I>get(java.lang.Class<I> type)Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.default <I extends Instrument>
java.util.List<I>get(kotlin.reflect.KClass<I> type)Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.default <I extends Instrument>
IgetSubInstrument(java.lang.Class<I> type, int n)default java.util.List<? extends Instrument>getSubInstruments()Returns a list of all sub-instruments contained in this instrument.default <I extends Instrument>
java.util.List<I>getSubInstruments(java.lang.Class<I> type)java.util.List<java.lang.Class<? extends Instrument>>getSubInstrumentTypes()Returns a list of all the different classes of sub-instruments that this instrument contains.
-
-
-
Method Detail
-
getSubInstrumentTypes
java.util.List<java.lang.Class<? extends Instrument>> getSubInstrumentTypes()
Returns a list of all the different classes of sub-instruments that this instrument contains.- Returns:
- List of sub-instrument classes
-
contains
default boolean contains(java.lang.Class<? extends Instrument> type)
Checks whether this instrument contains any sub-instruments that can be considered to be of the specified type- Parameters:
type- Type to check- Returns:
- Does it contain any?
-
contains
default boolean contains(kotlin.reflect.KClass<? extends Instrument> type)
-
get
<I extends Instrument> java.util.List<I> get(java.lang.Class<I> type)
Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.- Type Parameters:
I- Instrument class- Parameters:
type- The class object of sub-instrument to return- Returns:
- List of sub-instruments matching the given class
-
get
default <I extends Instrument> java.util.List<I> get(kotlin.reflect.KClass<I> type)
Returns a list of all sub-instruments this instrument contains that can be considered to be of the given instrument type.- Type Parameters:
I- Instrument class- Parameters:
type- The (Kotlin) class object of sub-instrument to return- Returns:
- List of sub-instruments matching the given class
-
getSubInstruments
default <I extends Instrument> java.util.List<I> getSubInstruments(java.lang.Class<I> type)
-
getSubInstrument
default <I extends Instrument> I getSubInstrument(java.lang.Class<I> type, int n)
-
getSubInstruments
default java.util.List<? extends Instrument> getSubInstruments()
Returns a list of all sub-instruments contained in this instrument.- Returns:
- List of all sub-instruments
-
-