|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectGpioProfile
org.eclipse.soda.dk.arcom.io.gpio.profile.ArcomIoGpioProfile
public class ArcomIoGpioProfile
Arcom Io Profile. The ArcomIoGpioProfile class implements the ArcomIoGpioProfileService and provides the controls for the profile.
The list of exported services:
ArcomIoGpioProfileService,
org.eclipse.soda.dk.profile.service.ProfileService| Field Summary | |
|---|---|
protected static byte |
ALL_OFF_OUTPUT
Define the all off output (byte) constant. |
protected static byte |
ALL_ON_OUTPUT
Define the all on output (byte) constant. |
protected CommandService |
arcomIoDeviceServiceGetInputRequest
Defines the GetInputRequest commandref. |
protected SignalService |
arcomIoDeviceServiceInputReport
Defines the InputReport signalref. |
protected CommandService |
arcomIoDeviceServiceSetAllOutputs
Defines the SetAllOutputs commandref. |
static java.lang.String |
CLASS_NAME
Defines the full class name. |
static int |
INPUT_COUNT
Define the input count (int) constant. |
static int |
OUTPUT_COUNT
Define the output count (int) constant. |
| Fields inherited from interface org.eclipse.soda.dk.arcom.io.gpio.profile.service.ArcomIoGpioProfileService |
|---|
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, ArcomIoGpioProfile, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, Metrics, METRICS_ERROR_EXTERNAL_KEY, METRICS_EXTERNAL_KEY, METRICS_GET_EXTERNAL_KEY, SERVICE_DESCRIPTION, SERVICE_NAME, Status, STATUS_ERROR_EXTERNAL_KEY, STATUS_EXTERNAL_KEY, STATUS_GET_EXTERNAL_KEY |
| Constructor Summary | |
|---|---|
ArcomIoGpioProfile()
Constructs a new instance of the ArcomIoGpioProfile class. |
|
| Method Summary | |
|---|---|
void |
activate()
Activate. |
protected java.util.Map |
createMapFromByte(byte data,
java.lang.String[] keys,
int count)
Create map from byte with the specified data, keys and count parameters and return the Map result. |
protected byte |
createOutputByteFromMap(java.util.Map states,
java.lang.String[] keys,
int count)
Create output byte from map with the specified states, keys and count parameters and return the byte result. |
DeviceService |
getDefaultDevice()
Gets the default DeviceService. |
java.lang.String |
getDefaultKey()
Gets the default key of the profile. |
protected long |
getInputCountValue()
Gets the input count value (long) value. |
protected long |
getOutputCountValue()
Gets the output count value (long) value. |
boolean |
isDeviceNeeded()
Is device needed. |
void |
setDevice(DeviceService device)
Set device. |
protected void |
setOutputPins(byte value)
Sets the output pins value. |
void |
signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
Signal occurred. |
protected void |
turnOffAllOutputs()
Turn off all outputs. |
protected void |
turnOnAllOutputs()
Turn on all outputs. |
protected void |
updateOutputs(java.util.Map fullState,
java.util.Map individualRequest)
Update outputs with the specified full state and individual request parameters. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_NAME
protected CommandService arcomIoDeviceServiceGetInputRequest
protected CommandService arcomIoDeviceServiceSetAllOutputs
protected SignalService arcomIoDeviceServiceInputReport
public static final int INPUT_COUNT
public static final int OUTPUT_COUNT
protected static final byte ALL_ON_OUTPUT
protected static final byte ALL_OFF_OUTPUT
| Constructor Detail |
|---|
public ArcomIoGpioProfile()
| Method Detail |
|---|
public void setDevice(DeviceService device)
device - device.
public void signalOccurred(SignalService source,
java.lang.Object timestamp,
java.lang.Object data)
source - source.timestamp - timestamp.data - data.public java.lang.String getDefaultKey()
public DeviceService getDefaultDevice()
public boolean isDeviceNeeded()
public void activate()
protected java.util.Map createMapFromByte(byte data,
java.lang.String[] keys,
int count)
data - The data (byte) parameter.keys - The keys (String[]) parameter.count - The count (int) parameter.
Map) value.
protected byte createOutputByteFromMap(java.util.Map states,
java.lang.String[] keys,
int count)
states - The states (Map) parameter.keys - The keys (String[]) parameter.count - The count (int) parameter.
byte) value.protected long getInputCountValue()
long) value.protected long getOutputCountValue()
long) value.protected void setOutputPins(byte value)
value - The value (byte) parameter.protected void turnOffAllOutputs()
protected void turnOnAllOutputs()
protected void updateOutputs(java.util.Map fullState,
java.util.Map individualRequest)
fullState - The full state (Map) parameter.individualRequest - The individual request (Map) parameter.turnOffAllOutputs(),
turnOnAllOutputs()
|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||