2009-10-01 1.2.0

org.eclipse.soda.dk.epcglobal.llrp.adapter
Class EpcglobalLlrpAdapter

java.lang.Object
  extended by DeviceAdapter
      extended by org.eclipse.soda.dk.epcglobal.llrp.adapter.EpcglobalLlrpAdapter
All Implemented Interfaces:
EpcglobalLlrpAdapterService

public class EpcglobalLlrpAdapter
extends DeviceAdapter
implements EpcglobalLlrpAdapterService

EPCglobal Low Level Reader Protocol (LLRP) Adapter. The EpcglobalLlrpAdapter class implements the EpcglobalLlrpAdapterService and provides the controls for the adapter.

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
EpcglobalLlrpAdapterService,

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 Low Level Reader Protocol (LLRP)
URL: http://www.epcglobalinc.org/standards/llrp
Version: 1.0.1
Date: August 13, 2007
Vendor: EPCglobal
Comment: Ratified

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
protected  SignalService epcglobalLlrpDeviceServiceAddAccessspecResponse
          Defines the AddAccessspecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceAddRospecResponse
          Defines the AddRospecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceDeleteAccessspecResponse
          Defines the DeleteAccessspecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceDeleteRospecResponse
          Defines the DeleteRospecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceDisableAccessspecResponse
          Defines the DisableAccessspecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceDisableRospecResponse
          Defines the DisableRospecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceEnableAccessspecResponse
          Defines the EnableAccessspecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceEnableRospecResponse
          Defines the EnableRospecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceGetAccessspecsResponse
          Defines the GetAccessspecsResponse signalref.
protected  CommandService epcglobalLlrpDeviceServiceGetReaderCapabilities
          Defines the GetReaderCapabilities c reference.
protected  SignalService epcglobalLlrpDeviceServiceGetReaderCapabilitiesResponse
          Defines the GetReaderCapabilitiesResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceGetRospecsResponse
          Defines the GetRospecsResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceRoAccessReport
          Defines the RoAccessReport signalref.
protected  SignalService epcglobalLlrpDeviceServiceStartRospecResponse
          Defines the StartRospecResponse signalref.
protected  SignalService epcglobalLlrpDeviceServiceStopRospecResponse
          Defines the StopRospecResponse signalref.
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.adapter.service.EpcglobalLlrpAdapterService
ALL_COMMANDS, ALL_MEASUREMENTS, ALL_SIGNALS, EpcglobalLlrpAdapter, FACTORY_SERVICE_NAME, LLRP_COMMAND_TIMEOUT, LLRP_COMMAND_TIMEOUT_DEFAULT, LLRP_COMMAND_TIMEOUT_PROPERTY, MANAGED_SERVICE_NAME, READER_CAPABILITIES_ERROR_EXTERNAL_KEY, READER_CAPABILITIES_EXTERNAL_KEY, READER_CAPABILITIES_GET_EXTERNAL_KEY, READER_CAPABILITIES_READ_EXTERNAL_KEY, READER_CAPABILITIES_WRITE_EXTERNAL_KEY, ReaderCapabilities, SERVICE_DESCRIPTION, SERVICE_NAME
 
Constructor Summary
EpcglobalLlrpAdapter()
          Constructs a new instance of the EpcglobalLlrpAdapter class.
 
Method Summary
 void activate()
          Activate.
 IIdManager getAccessSpecIdManager()
          Gets the access spec ID manager (IIdManager) value.
 MeasurementService getCapabilities()
          Gets the capabilities (MeasurementService) value.
 int getControlCapacity()
          Gets the control capacity.
 DeviceService getDefaultDevice()
          Gets the default DeviceService.
 java.lang.String getDefaultKey()
          Gets the default key of the adapter.
 InterestService getInterest()
          Gets the interest filter for the adapter.
 ILLRPCapabilities getLLRPCapabilities()
          Gets the llrpcapabilities (ILLRPCapabilities) value.
 long getLLRPCommandTimeout()
          Gets the value of LLRP command timeout custom parameter.
 int getMessageCapacity()
          Gets the message capacity.
 IIdManager getROSpecIdManager()
          Gets the rospec ID manager (IIdManager) value.
 ITaskManager getTaskManager()
          Gets the task manager (ITaskManager) value.
 java.lang.Object handleMethodReaderCapabilities(int code, Measurement measurement, java.lang.Object data)
          Handle method reader capabilities with the specified code, measurement and data parameters and return the Object result.
 void handleSignal(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Handle signal with the specified source, time stamp and data parameters.
 boolean isDeviceNeeded()
          Is device needed.
 void setDevice(DeviceService device)
          Set device.
 void setLLRPCommandTimeout(long LLRPCommandTimeout)
          Sets the value of LLRP command timeout custom parameter.
protected  void setReaderCapabilities()
          Set reader capabilities.
 void setup()
           
 void signalOccurred(SignalService source, java.lang.Object timestamp, java.lang.Object data)
          Signal occurred.
 
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 full class name.

Since:
1.0
See Also:
Constant Field Values

epcglobalLlrpDeviceServiceGetReaderCapabilities

protected CommandService epcglobalLlrpDeviceServiceGetReaderCapabilities
Defines the GetReaderCapabilities c reference.

Since:
1.1

epcglobalLlrpDeviceServiceGetReaderCapabilitiesResponse

protected SignalService epcglobalLlrpDeviceServiceGetReaderCapabilitiesResponse
Defines the GetReaderCapabilitiesResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceGetRospecsResponse

protected SignalService epcglobalLlrpDeviceServiceGetRospecsResponse
Defines the GetRospecsResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceDeleteRospecResponse

protected SignalService epcglobalLlrpDeviceServiceDeleteRospecResponse
Defines the DeleteRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceAddRospecResponse

protected SignalService epcglobalLlrpDeviceServiceAddRospecResponse
Defines the AddRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceEnableRospecResponse

protected SignalService epcglobalLlrpDeviceServiceEnableRospecResponse
Defines the EnableRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceDisableRospecResponse

protected SignalService epcglobalLlrpDeviceServiceDisableRospecResponse
Defines the DisableRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceStartRospecResponse

protected SignalService epcglobalLlrpDeviceServiceStartRospecResponse
Defines the StartRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceStopRospecResponse

protected SignalService epcglobalLlrpDeviceServiceStopRospecResponse
Defines the StopRospecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceRoAccessReport

protected SignalService epcglobalLlrpDeviceServiceRoAccessReport
Defines the RoAccessReport signalref.

Since:
1.1

epcglobalLlrpDeviceServiceGetAccessspecsResponse

protected SignalService epcglobalLlrpDeviceServiceGetAccessspecsResponse
Defines the GetAccessspecsResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceDeleteAccessspecResponse

protected SignalService epcglobalLlrpDeviceServiceDeleteAccessspecResponse
Defines the DeleteAccessspecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceAddAccessspecResponse

protected SignalService epcglobalLlrpDeviceServiceAddAccessspecResponse
Defines the AddAccessspecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceEnableAccessspecResponse

protected SignalService epcglobalLlrpDeviceServiceEnableAccessspecResponse
Defines the EnableAccessspecResponse signalref.

Since:
1.1

epcglobalLlrpDeviceServiceDisableAccessspecResponse

protected SignalService epcglobalLlrpDeviceServiceDisableAccessspecResponse
Defines the DisableAccessspecResponse signalref.

Since:
1.1
Constructor Detail

EpcglobalLlrpAdapter

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

Since:
1.0
Method Detail

activate

public void activate()
Activate.


getAccessSpecIdManager

public IIdManager getAccessSpecIdManager()
Gets the access spec ID manager (IIdManager) value.

Returns:
The access spec id manager (IIdManager) value.

getCapabilities

public MeasurementService getCapabilities()
Gets the capabilities (MeasurementService) value.

Returns:
The capabilities (MeasurementService) value.
See Also:
getLLRPCapabilities(), handleMethodReaderCapabilities(int,Measurement,Object), setReaderCapabilities()

getControlCapacity

public int getControlCapacity()
Gets the control capacity.

Returns:
The control capacity value.
Since:
1.1

getDefaultDevice

public DeviceService getDefaultDevice()
Gets the default DeviceService.

Returns:
DeviceService The default DeviceService.
Since:
1.0

getDefaultKey

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

Returns:
String The default key
Since:
1.0

getInterest

public InterestService getInterest()
Gets the interest filter for the adapter.

Returns:
InterestService The interest filter for this adapter.
Since:
1.0

getLLRPCapabilities

public ILLRPCapabilities getLLRPCapabilities()
Gets the llrpcapabilities (ILLRPCapabilities) value.

Returns:
The llrpcapabilities (ILLRPCapabilities) value.

getLLRPCommandTimeout

public long getLLRPCommandTimeout()
Gets the value of LLRP command timeout custom parameter.

Returns:
LLRP command timeout custom parameter.
Since:
1.1
See Also:
setLLRPCommandTimeout(long)

getMessageCapacity

public int getMessageCapacity()
Gets the message capacity.

Returns:
int The message capacity.
Since:
1.1

getROSpecIdManager

public IIdManager getROSpecIdManager()
Gets the rospec ID manager (IIdManager) value.

Returns:
The rospec id manager (IIdManager) value.

getTaskManager

public ITaskManager getTaskManager()
Gets the task manager (ITaskManager) value.

Returns:
The task manager (ITaskManager) value.

handleMethodReaderCapabilities

public java.lang.Object handleMethodReaderCapabilities(int code,
                                                       Measurement measurement,
                                                       java.lang.Object data)
Handle method reader capabilities with the specified code, measurement and data parameters and return the Object result.

Parameters:
code - The code (int) parameter.
measurement - The measurement (Measurement) parameter.
data - The data (Object) parameter.
Returns:
Results of the handle method reader capabilities (Object) value.

handleSignal

public void handleSignal(SignalService source,
                         java.lang.Object timestamp,
                         java.lang.Object data)
Handle signal with the specified source, time stamp and data parameters.

Parameters:
source - The source (SignalService) parameter.
timestamp - The time stamp (Object) parameter.
data - The data (Object) parameter.
Since:
1.2

isDeviceNeeded

public boolean isDeviceNeeded()
Is device needed.

Returns:
The results of this method.
Since:
1.0

setDevice

public void setDevice(DeviceService device)
Set device.

Parameters:
device - device.
Since:
1.1

setLLRPCommandTimeout

public void setLLRPCommandTimeout(long LLRPCommandTimeout)
Sets the value of LLRP command timeout custom parameter.

Parameters:
LLRPCommandTimeout - The LLRP command timeout custom parameter.
Since:
1.1
See Also:
getLLRPCommandTimeout()

setReaderCapabilities

protected void setReaderCapabilities()
Set reader capabilities.

See Also:
handleMethodReaderCapabilities(int,Measurement,Object)

setup

public void setup()
Since:
1.1
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 - time stamp.
data - data.
Since:
1.1

2009-10-01 1.2.0

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