2008-02-07 1.1.0

org.eclipse.soda.dk.epcglobal.llrp.gpio.profile
Class EpcglobalLlrpGpioProfile

java.lang.Object
  extended by GpioProfile
      extended by org.eclipse.soda.dk.epcglobal.llrp.gpio.profile.EpcglobalLlrpGpioProfile
All Implemented Interfaces:
EpcglobalLlrpGpioProfileService

public class EpcglobalLlrpGpioProfile
extends GpioProfile
implements EpcglobalLlrpGpioProfileService

EpcglobalLlrp GPIO Profile. The EpcglobalLlrpGpioProfile class implements the device service and provides the controls for the device.

The list of exported services:

Version:
1.1.0
See Also:
EpcglobalLlrpGpioProfileService, the following specification(s) for more details:
Title: EPCglobal Low Level Reader Protocol (LLRP)
Version: 1.0
Date: April 12, 2007
Vendor: EPCglobal
Comment: Ratified

Title: EPCglobal Low Level Reader Protocol (LLRP)
Version: 1.0
Date: April 12, 2007
Vendor: EPCglobal
Comment: Ratified

Title: LLRP Specification
Version: EPC
Vendor: EPC

Title: LLRP Specification
Version: EPC
Vendor: EPC


Field Summary
static java.lang.String CLASS_NAME
          Defines the class name.
protected  CommandService epcglobalLlrpDeviceServiceGetReaderConfig_GPIPortCurrentState
          Defines the GetReaderConfig_GPIPortCurrentState commandref.
protected  SignalService epcglobalLlrpDeviceServiceGPIPortCurrentStateResponse
          Defines the GPIPortCurrentStateResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceReaderEventNotification
          Defines the ReaderEventNotification signalref.
protected  CommandService epcglobalLlrpDeviceServiceSetReaderConfig_GPIPortCurrentState
          Defines the SetReaderConfig_GPIPortCurrentState commandref.
protected  CommandService epcglobalLlrpDeviceServiceSetReaderConfig_GPOWriteData
          Defines the SetReaderConfig_GPOWriteData commandref.
protected  CommandService epcglobalLlrpDeviceServiceSetReaderConfig_ReaderEventNotificationSpec
          Defines the SetReaderConfig_ReaderEventNotificationSpec commandref.
protected  SignalService epcglobalLlrpDeviceServiceSetReaderConfigResponse
          Defines the SetReaderConfigResponse signalref.
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.gpio.profile.service.EpcglobalLlrpGpioProfileService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, Capabilities, CAPABILITIES_ERROR_EXTERNAL_KEY, CAPABILITIES_EXTERNAL_KEY, CAPABILITIES_GET_EXTERNAL_KEY, Configuration, CONFIGURATION_ERROR_EXTERNAL_KEY, CONFIGURATION_EXTERNAL_KEY, CONFIGURATION_GET_EXTERNAL_KEY, DEFAULT_GPIPORTCOUNT, DEFAULT_GPOPORTCOUNT, EpcglobalLlrpGpioProfile, FACTORY_SERVICE_NAME, GPI_PORT_COUNT, GPI_PORT_COUNT_DEFAULT, GPIPORTCOUNT_DEFAULT, GPIPORTCOUNT_KEY, GPO_PORT_COUNT, GPO_PORT_COUNT_DEFAULT, GPOPORTCOUNT_DEFAULT, GPOPORTCOUNT_KEY, 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
EpcglobalLlrpGpioProfile()
          Constructs a new instance of the EpcglobalLlrpGpioProfile class.
EpcglobalLlrpGpioProfile(DeviceService device)
          Constructs an instance of this class from the specified device parameter.
 
Method Summary
 void activate()
          Activate.
protected  void enableGPIEventNotification()
          Enable gpievent notification.
protected  void enableGPIPorts()
          Enable gpiports.
protected  void epcEpcglobalLlrpUpdateOutputPort(int gpoPortNumber, java.lang.Boolean gpoPortState)
          Epc epcglobal llrp update output port with the specified gpo port number and gpo port state parameters.
protected  void epcEpcglobalLlrpUpdateOutputPort(java.util.List gpoWriteDatas)
          Epc epcglobal llrp update output port with the specified gpo write datas parameter.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the device.
 int getGpiPortCount()
          Gets the value of gpi port count custom parameter.
 int getGpoPortCount()
          Gets the value of gpo port count custom parameter.
protected  long getInputCountValue()
          Gets the input count value (long) value.
protected  long getOutputCountValue()
          Gets the output count value (long) value.
protected  java.util.Map getReaderEventNotificationSpecParameter()
          Gets the reader event notification spec parameter (Map) value.
protected  java.util.Map getSetReaderConfigGPIEventParameter()
          Gets the set reader config gpievent parameter (Map) value.
protected  java.util.Map getSetReaderGPICurrentStateParameter()
          Gets the set reader gpicurrent state parameter (Map) value.
 boolean isDeviceNeeded()
          Is device needed.
protected  void populateTasks()
          Populate tasks.
 void setDevice(DeviceService device)
          Set device.
 void setGpiPortCount(int gpiPortCount)
          Sets the value of gpi port count custom parameter.
 void setGpoPortCount(int gpoPortCount)
          Sets the value of gpo port count custom parameter.
 void setup()
           
 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

CLASS_NAME

public static final java.lang.String CLASS_NAME
Defines the class name.

See Also:
Constant Field Values

epcglobalLlrpDeviceServiceSetReaderConfig_ReaderEventNotificationSpec

protected CommandService epcglobalLlrpDeviceServiceSetReaderConfig_ReaderEventNotificationSpec
Defines the SetReaderConfig_ReaderEventNotificationSpec commandref.


epcglobalLlrpDeviceServiceSetReaderConfig_GPIPortCurrentState

protected CommandService epcglobalLlrpDeviceServiceSetReaderConfig_GPIPortCurrentState
Defines the SetReaderConfig_GPIPortCurrentState commandref.


epcglobalLlrpDeviceServiceGetReaderConfig_GPIPortCurrentState

protected CommandService epcglobalLlrpDeviceServiceGetReaderConfig_GPIPortCurrentState
Defines the GetReaderConfig_GPIPortCurrentState commandref.


epcglobalLlrpDeviceServiceSetReaderConfig_GPOWriteData

protected CommandService epcglobalLlrpDeviceServiceSetReaderConfig_GPOWriteData
Defines the SetReaderConfig_GPOWriteData commandref.


epcglobalLlrpDeviceServiceSetReaderConfigResponse

protected SignalService epcglobalLlrpDeviceServiceSetReaderConfigResponse
Defines the SetReaderConfigResponse signalref.


epcglobalLlrpDeviceServiceGPIPortCurrentStateResponse

protected SignalService epcglobalLlrpDeviceServiceGPIPortCurrentStateResponse
Defines the GPIPortCurrentStateResponse signalref.


epcglobalLlrpDeviceServiceReaderEventNotification

protected SignalService epcglobalLlrpDeviceServiceReaderEventNotification
Defines the ReaderEventNotification signalref.

Constructor Detail

EpcglobalLlrpGpioProfile

public EpcglobalLlrpGpioProfile()
Constructs a new instance of the EpcglobalLlrpGpioProfile class.

See Also:
EpcglobalLlrpGpioProfile(DeviceService)

EpcglobalLlrpGpioProfile

public EpcglobalLlrpGpioProfile(DeviceService device)
Constructs an instance of this class from the specified device parameter.

Parameters:
device - The device (DeviceService) parameter.
See Also:
EpcglobalLlrpGpioProfile()
Method Detail

activate

public void activate()
Activate.


enableGPIEventNotification

protected void enableGPIEventNotification()
Enable gpievent notification.


enableGPIPorts

protected void enableGPIPorts()
Enable gpiports.


epcEpcglobalLlrpUpdateOutputPort

protected void epcEpcglobalLlrpUpdateOutputPort(int gpoPortNumber,
                                                java.lang.Boolean gpoPortState)
Epc epcglobal llrp update output port with the specified gpo port number and gpo port state parameters.

Parameters:
gpoPortNumber - The gpo port number (int) parameter.
gpoPortState - The gpo port state (Boolean) parameter.
See Also:
epcEpcglobalLlrpUpdateOutputPort(List)

epcEpcglobalLlrpUpdateOutputPort

protected void epcEpcglobalLlrpUpdateOutputPort(java.util.List gpoWriteDatas)
Epc epcglobal llrp update output port with the specified gpo write datas parameter.

Parameters:
gpoWriteDatas - The gpo write datas (List) parameter.
See Also:
epcEpcglobalLlrpUpdateOutputPort(int,Boolean)

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default DeviceService.

Returns:
DeviceService The default DeviceService.

getDefaultKey

public java.lang.String getDefaultKey()
Gets the default key of the device.

Returns:
String The default key

getGpiPortCount

public int getGpiPortCount()
Gets the value of gpi port count custom parameter.

Returns:
gpi port count custom parameter.
See Also:
setGpiPortCount(int)

getGpoPortCount

public int getGpoPortCount()
Gets the value of gpo port count custom parameter.

Returns:
gpo port count custom parameter.
See Also:
setGpoPortCount(int)

getInputCountValue

protected long getInputCountValue()
Gets the input count value (long) value.

Returns:
The input count value (long) value.

getOutputCountValue

protected long getOutputCountValue()
Gets the output count value (long) value.

Returns:
The output count value (long) value.

getReaderEventNotificationSpecParameter

protected java.util.Map getReaderEventNotificationSpecParameter()
Gets the reader event notification spec parameter (Map) value.

Returns:
The reader event notification spec parameter (Map) value.

getSetReaderConfigGPIEventParameter

protected java.util.Map getSetReaderConfigGPIEventParameter()
Gets the set reader config gpievent parameter (Map) value.

Returns:
The set reader config gpievent parameter (Map) value.

getSetReaderGPICurrentStateParameter

protected java.util.Map getSetReaderGPICurrentStateParameter()
Gets the set reader gpicurrent state parameter (Map) value.

Returns:
The set reader gpicurrent state parameter (Map) value.

isDeviceNeeded

public boolean isDeviceNeeded()
Is device needed.

Returns:
The results of this method.

populateTasks

protected void populateTasks()
Populate tasks.


setDevice

public void setDevice(DeviceService device)
Set device.

Parameters:
device - device.
See Also:
getDefaultDevice()

setGpiPortCount

public void setGpiPortCount(int gpiPortCount)
Sets the value of gpi port count custom parameter.

Parameters:
gpiPortCount - The gpi port count custom parameter.
See Also:
getGpiPortCount()

setGpoPortCount

public void setGpoPortCount(int gpoPortCount)
Sets the value of gpo port count custom parameter.

Parameters:
gpoPortCount - The gpo port count custom parameter.
See Also:
getGpoPortCount()

setup

public void setup()
See Also:
org.eclipse.soda.dk.device.Container#setup()

signalOccurred

public void signalOccurred(SignalService source,
                           java.lang.Object timestamp,
                           java.lang.Object data)
Signal occurred.

Parameters:
source - source.
timestamp - timestamp.
data - data.

turnOffAllOutputs

protected void turnOffAllOutputs()
Turn off all outputs.


turnOnAllOutputs

protected void turnOnAllOutputs()
Turn on all outputs.


updateOutputs

protected void updateOutputs(java.util.Map fullState,
                             java.util.Map individualRequest)
Update outputs with the specified full state and individual request parameters.

Parameters:
fullState - The full state (Map) parameter.
individualRequest - The individual request (Map) parameter.
See Also:
turnOffAllOutputs(), turnOnAllOutputs()

2008-02-07 1.1.0

Copyright (c) 2008 IBM. See license in Legal section.