|
2009-10-01 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectGpioProfile
org.eclipse.soda.dk.generic.io.gpio.profile.GenericIoGpioProfile
public class GenericIoGpioProfile
Gpio Profile implementation for Generic Digital and Analog I/O Device. The GenericIoGpioProfile class implements the GenericIoGpioProfileService and provides the controls for the profile.
The list of exported services:
GenericIoGpioProfileService,
See the following specification(s) for more details:
Title:
EPCglobal Low Level Reader Protocol (LLRP)
URL:
http://www.epcglobalinc.org/standards/llrp
Version:
1.0.1
Date:
August 13, 2007
Vendor:
EPCglobal
Comment:
Ratified
Title:
EPCglobal Application Level Events (ALE) Specification
URL:
http://www.epcglobalinc.org/standards/ale/
Version:
1.1
Date:
February 27, 2008
Vendor:
EPCglobal
Comment:
Ratified
| Field Summary | |
|---|---|
static java.lang.String |
CLASS_NAME
Defines the full class name. |
protected MeasurementService |
genericIoDeviceServiceAnalogInputCount
Defines the AnalogInputCount measu reference. |
protected MeasurementService |
genericIoDeviceServiceAnalogInputs
Defines the AnalogInputs measu reference. |
protected MeasurementService |
genericIoDeviceServiceAnalogOutputCount
Defines the AnalogOutputCount measu reference. |
protected MeasurementService |
genericIoDeviceServiceAnalogOutputs
Defines the AnalogOutputs measu reference. |
protected MeasurementService |
genericIoDeviceServiceDigitalInputCount
Defines the DigitalInputCount measu reference. |
protected MeasurementService |
genericIoDeviceServiceDigitalInputs
Defines the DigitalInputs measu reference. |
protected MeasurementService |
genericIoDeviceServiceDigitalOutputCount
Defines the DigitalOutputCount measu reference. |
protected MeasurementService |
genericIoDeviceServiceDigitalOutputs
Defines the DigitalOutputs measu reference. |
| Constructor Summary | |
|---|---|
GenericIoGpioProfile()
Constructs a new instance of the GenericIoGpioProfile class. |
|
| Method Summary | |
|---|---|
void |
activate()
Activate. |
protected long |
createOutputStateFromMap(java.util.Map states,
java.lang.String[] keys,
long count)
Create output state from map with the specified states, keys and count parameters and return the long result. |
void |
deactivate()
Deactivate. |
void |
deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
Device changed. |
AdapterService |
getAdapter()
Gets the get adapter value. |
protected long |
getAnalogInputCountValue()
Gets the analog input count value (long) value. |
protected long |
getAnalogOutputCountValue()
Gets the analog output count value (long) value. |
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. |
int |
getPollingrate()
Gets the value of pollingrate custom parameter. |
boolean |
isAdapterNeeded()
Is adapter needed. |
boolean |
isDeviceNeeded()
Is device needed. |
void |
measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
Measurement changed. |
void |
setAdapter(AdapterService adapter)
Set adapter. |
void |
setDevice(DeviceService device)
Set device. |
protected void |
setOutputPins(long value)
Sets the output pins value. |
void |
setPollingrate(int pollingrate)
Sets the value of pollingrate custom parameter. |
void |
setup()
|
protected void |
turnOffAllOutputs()
Turn off all outputs. |
protected void |
turnOnAllOutputs()
Turn on all outputs. |
protected void |
updateAnalogOutputs(java.util.Map fullState,
java.util.Map individualRequest)
Update analog outputs with the specified full state and individual request parameters. |
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 MeasurementService genericIoDeviceServiceDigitalInputCount
protected MeasurementService genericIoDeviceServiceDigitalOutputCount
protected MeasurementService genericIoDeviceServiceAnalogInputCount
protected MeasurementService genericIoDeviceServiceAnalogOutputCount
protected MeasurementService genericIoDeviceServiceDigitalInputs
protected MeasurementService genericIoDeviceServiceDigitalOutputs
protected MeasurementService genericIoDeviceServiceAnalogInputs
protected MeasurementService genericIoDeviceServiceAnalogOutputs
| Constructor Detail |
|---|
public GenericIoGpioProfile()
| Method Detail |
|---|
public void setDevice(DeviceService device)
device - device.
public void deviceChanged(DeviceService source,
java.lang.Object timestamp,
int newState,
int oldState)
source - source.timestamp - time stamp.newState - new state.oldState - old state.
public void measurementChanged(MeasurementService source,
java.lang.Object timestamp,
java.lang.Object newValue,
java.lang.Object oldValue)
source - source.timestamp - time stamp.newValue - new value.oldValue - old value.public java.lang.String getDefaultKey()
public DeviceService getDefaultDevice()
public boolean isDeviceNeeded()
public void setPollingrate(int pollingrate)
pollingrate - The pollingrate custom parameter.getPollingrate()public int getPollingrate()
setPollingrate(int)public void setup()
org.eclipse.soda.dk.device.Container#setup()public AdapterService getAdapter()
public void setAdapter(AdapterService adapter)
adapter - adapter.public boolean isAdapterNeeded()
public void activate()
protected long createOutputStateFromMap(java.util.Map states,
java.lang.String[] keys,
long count)
states - The states (Map) parameter.keys - The keys (String[]) parameter.count - The count (long) parameter.
long) value.public void deactivate()
protected long getAnalogInputCountValue()
long) value.protected long getAnalogOutputCountValue()
long) value.protected long getInputCountValue()
long) value.getAnalogInputCountValue()protected long getOutputCountValue()
long) value.getAnalogOutputCountValue()protected void setOutputPins(long value)
value - The value (long) parameter.protected void turnOffAllOutputs()
protected void turnOnAllOutputs()
protected void updateAnalogOutputs(java.util.Map fullState,
java.util.Map individualRequest)
fullState - The full state (Map) parameter.individualRequest - The individual request (Map) parameter.
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(),
updateAnalogOutputs(Map,Map)
|
2009-10-01 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||