Package jisa.devices
Class Configuration<T extends Instrument>
- java.lang.Object
- 
- jisa.devices.Configuration<T>
 
- 
 public class Configuration<T extends Instrument> extends java.lang.Object
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classConfiguration.Parameter<S>
 - 
Constructor SummaryConstructors Constructor Description Configuration(java.lang.String name, java.lang.Class<T> target)Configuration(java.lang.String name, kotlin.reflect.KClass<T> target)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description SRunnableaddChangeListener(SRunnable listener)Tconfigure()Tget()intgetChoice()java.lang.StringgetChoiceName()java.util.List<java.lang.String>getChoices()InstrumentgetInputInstrument()TgetInstrument()java.lang.StringgetName()java.util.List<Configuration.Parameter<?>>getParameters()java.lang.Class<T>getTarget()booleanisChoice()voidloadFromConfig(ConfigBlock block)voidremoveChangeListener(SRunnable listener)voidselectChoice(int index)voidsetInputInstrument(Instrument instrument)voidwriteToConfig(ConfigBlock block)
 
- 
- 
- 
Method Detail- 
getNamepublic java.lang.String getName() 
 - 
loadFromConfigpublic void loadFromConfig(ConfigBlock block) 
 - 
removeChangeListenerpublic void removeChangeListener(SRunnable listener) 
 - 
writeToConfigpublic void writeToConfig(ConfigBlock block) 
 - 
getTargetpublic java.lang.Class<T> getTarget() 
 - 
selectChoicepublic void selectChoice(int index) 
 - 
isChoicepublic boolean isChoice() 
 - 
getChoiceNamepublic java.lang.String getChoiceName() 
 - 
getChoicespublic java.util.List<java.lang.String> getChoices() 
 - 
getChoicepublic int getChoice() 
 - 
getParameterspublic java.util.List<Configuration.Parameter<?>> getParameters() 
 - 
configurepublic T configure() throws java.io.IOException, DeviceException - Throws:
- java.io.IOException
- DeviceException
 
 - 
getInputInstrumentpublic Instrument getInputInstrument() 
 - 
setInputInstrumentpublic void setInputInstrument(Instrument instrument) 
 - 
getInstrumentpublic T getInstrument() throws java.io.IOException, DeviceException - Throws:
- java.io.IOException
- DeviceException
 
 - 
getpublic T get() throws java.io.IOException, DeviceException - Throws:
- java.io.IOException
- DeviceException
 
 
- 
 
-