public class GpiConfigGroup extends java.lang.Object implements java.lang.Iterable<GpiConfig>
Settings.getGpis()
,
FeatureSet.getGpiCount()
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.Object config) |
void |
disableAll()
Disable all GPIs in the collection.
|
void |
enableAll()
Enable all GPIs in the collection.
|
GpiConfig |
get(int i) |
protected GpiConfig |
getGpi(short portNumber)
Returns the settings for the specified GPI port.
|
java.util.Iterator<GpiConfig> |
iterator() |
void |
set(int i,
GpiConfig newValue) |
public GpiConfig get(int i)
i
- the GPI port numberpublic void set(int i, GpiConfig newValue)
i
- the GPI to setnewValue
- the config value for the GPIpublic void add(java.lang.Object config) throws OctaneSdkException
config
- adds the object to the GPI config groupOctaneSdkException
- if this object was not created by the
serializerpublic void enableAll()
public void disableAll()
protected GpiConfig getGpi(short portNumber) throws OctaneSdkException
portNumber
- the GPI port to queryOctaneSdkException
- The GPI settings or throws
an exception if the port does not
// exist