2008-02-07 1.1.0

org.eclipse.soda.dk.epcglobal.llrp.transport
Class EpcglobalLlrpTransport

java.lang.Object
  extended by ResponseTransport
      extended by org.eclipse.soda.dk.epcglobal.llrp.transport.EpcglobalLlrpTransport
All Implemented Interfaces:
EpcglobalLlrpTransportService

public class EpcglobalLlrpTransport
extends ResponseTransport
implements EpcglobalLlrpTransportService

EPCglobal Low Level Reader Protocol (LLRP) Transport.

The devicekit properties keys and default values.

epcgloballlrptransport.linger -1
epcgloballlrptransport.readtimeout 1000
epcgloballlrptransport.readsize -1
epcgloballlrptransport.localport -1
epcgloballlrptransport.host epcgloballlrp
epcgloballlrptransport.writesize -1
epcgloballlrptransport.remoteport 5084
epcgloballlrptransport.connection tcpip
epcgloballlrptransport.responsetimeout 1000
epcgloballlrptransport.linger=-1 epcgloballlrptransport.readtimeout=1000 epcgloballlrptransport.readsize=-1 epcgloballlrptransport.localport=-1 epcgloballlrptransport.host=epcgloballlrp epcgloballlrptransport.writesize=-1 epcgloballlrptransport.remoteport=5084 epcgloballlrptransport.connection=tcpip epcgloballlrptransport.responsetimeout=1000

The list of exported services:

Version:
1.1.0
See Also:
EpcglobalLlrpTransportService,

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

Field Summary
static java.lang.String CLASS_NAME
          Defines the full class name.
protected  ParameterMessage noActivityMessage
           
 
Fields inherited from interface org.eclipse.soda.dk.epcglobal.llrp.transport.service.EpcglobalLlrpTransportService
DEFAULT_HOST, DEFAULT_LINGER, DEFAULT_LOCALPORT, DEFAULT_READSIZE, DEFAULT_READTIMEOUT, DEFAULT_REMOTEPORT, DEFAULT_WRITESIZE, FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, ReaderEventParameter, SERVICE_NAME
 
Constructor Summary
EpcglobalLlrpTransport()
          Constructs a new instance of the EpcglobalLlrpTransport class.
 
Method Summary
 ConnectionService getDefaultConnection()
          Gets the default connection.
 long getDefaultResponseTimeout()
          Gets the default response timeout.
 TcpipConnectionService getDefaultTcpipConnection()
          Gets the default tcpip connection.
 MessageService noActivityProcessingMessage()
           
 void parsedMessage(int messageType, byte[] bytes, boolean maybeResponse, java.lang.Object timestamp)
          This method is invoked by the transport as a notification that a message coming from the device has been parsed
protected  int processInput(byte[] bytes, int length)
          Perform the processInput action method.
 void setup()
          Sets user-defined variables to use in the test.
 void setupCustom()
          Setup custom.
 void shutdown(boolean output)
          Shutdown with the specified output parameter.
 int startup(boolean output)
          Startup with the specified output parameter and return the int result.
 void startupMessageReceived(TransportService source, java.lang.Object timestamp, MessageService msg)
          Startup message received with the specified source, timestamp and msg parameters.
protected  void write(byte[] bytes, long responseTimeout)
           
 
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.

See Also:
Constant Field Values

noActivityMessage

protected ParameterMessage noActivityMessage
Constructor Detail

EpcglobalLlrpTransport

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

Method Detail

processInput

protected int processInput(byte[] bytes,
                           int length)
                    throws java.lang.Exception
Perform the processInput action method.

Parameters:
bytes - The bytes (byte[]) parameter.
length - The length (int) parameter.
Returns:
int
Throws:
java.lang.Exception

startup

public int startup(boolean output)
            throws java.lang.Exception
Startup with the specified output parameter and return the int result.

Parameters:
output - The output (boolean) parameter.
Returns:
Results of the startup (int) value.
Throws:
java.lang.Exception - Exception.

noActivityProcessingMessage

public MessageService noActivityProcessingMessage()

parsedMessage

public void parsedMessage(int messageType,
                          byte[] bytes,
                          boolean maybeResponse,
                          java.lang.Object timestamp)
This method is invoked by the transport as a notification that a message coming from the device has been parsed

Parameters:
messageType - The message type (int) parameter.
bytes - The bytes (byte[]) parameter.
maybeResponse - The maybe response (boolean) parameter.
timestamp - The timestamp (Object) parameter.

setupCustom

public void setupCustom()
Setup custom.


shutdown

public void shutdown(boolean output)
Shutdown with the specified output parameter.

Parameters:
output - The output (boolean) parameter.

startupMessageReceived

public void startupMessageReceived(TransportService source,
                                   java.lang.Object timestamp,
                                   MessageService msg)
Startup message received with the specified source, timestamp and msg parameters.

Parameters:
source - The source (TransportService) parameter.
timestamp - The timestamp (Object) parameter.
msg - The msg (MessageService) parameter.

write

protected void write(byte[] bytes,
                     long responseTimeout)
              throws java.lang.Exception
Parameters:
bytes - The bytes (byte[]) parameter.
responseTimeout - The response timeout (long) parameter.
Throws:
java.lang.Exception - Exception.

getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection.

Returns:
ConnectionService The default connection used by this transport.

getDefaultResponseTimeout

public long getDefaultResponseTimeout()
Gets the default response timeout.

Returns:
int The default response timeout.

getDefaultTcpipConnection

public TcpipConnectionService getDefaultTcpipConnection()
Gets the default tcpip connection.

Returns:
TcpipConnectionService The default tcpip connection used by this transport.

setup

public void setup()
Sets user-defined variables to use in the test.

User defined properties and default values.

retrytime DEFAULT_RETRY_TIME
noactivitytimeout DEFAULT_NO_ACTIVITY_TIMEOUT

See Also:
org.eclipse.soda.dk.transport.Transport#setup()

2008-02-07 1.1.0

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