2010-01-22 1.2.0

org.eclipse.soda.dk.arcom.io.transport
Class ArcomIoTransport

java.lang.Object
  extended by ConnectionTransport
      extended by org.eclipse.soda.dk.arcom.io.transport.ArcomIoTransport
All Implemented Interfaces:
ArcomIoTransportService

public class ArcomIoTransport
extends ConnectionTransport
implements ArcomIoTransportService

Arcom IO AIM104 Relay 8in8 board.

The Device Kit properties CONNECTION_KEYS and default values.

arcomiotransport.mode rw
arcomiotransport.path 0
arcomiotransport.name /dev/arcom/aim104/relay8
arcomiotransport.connection randomaccessfile
arcomiotransport.pollingRate 250
arcomiotransport.mode=rw arcomiotransport.path=0 arcomiotransport.name=/dev/arcom/aim104/relay8 arcomiotransport.connection=randomaccessfile arcomiotransport.pollingRate=250

The list of exported services:

Since:
1.0
Version:
1.2.0
See Also:
ArcomIoTransportService, org.eclipse.soda.dk.transport.service.TransportService

Field Summary
static int BUFFER_SIZE
          Define the buffer size (int) constant.
static java.lang.String CLASS_NAME
          Defines the full class name.
 
Fields inherited from interface org.eclipse.soda.dk.arcom.io.transport.service.ArcomIoTransportService
FACTORY_SERVICE_NAME, MANAGED_SERVICE_NAME, POLLING_RATE, POLLING_RATE_DEFAULT, POLLING_RATE_PROPERTY, RANDOMACCESSFILE_MODE_DEFAULT, RANDOMACCESSFILE_MODE_PROPERTY, RANDOMACCESSFILE_NAME_DEFAULT, RANDOMACCESSFILE_NAME_PROPERTY, RANDOMACCESSFILE_PATH_DEFAULT, RANDOMACCESSFILE_PATH_PROPERTY, SERVICE_NAME
 
Constructor Summary
ArcomIoTransport()
          Constructs a new instance of the ArcomIoTransport class.
 
Method Summary
 int getBufferSize()
          Gets the buffer size (int) value.
 ConnectionService getDefaultConnection()
          Gets the default connection.
 RandomAccessFileConnectionService getDefaultRandomAccessFileConnection()
          Gets the default randomaccessfile connection.
 int getPollingRate()
          Gets the value of polling rate custom parameter.
protected  int processInput(byte[] bytes, int length)
          Perform the processInput action method.
 void setPollingRate(int pollingRate)
          Sets the value of polling rate custom parameter.
 void setup()
          Sets user-defined variables to use in the test.
 int startup(boolean output)
          Startup with the specified output parameter and return the int result.
 void write(byte[] sendBytes)
          Write with the specified send bytes parameter.
 
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

BUFFER_SIZE

public static final int BUFFER_SIZE
Define the buffer size (int) constant.

See Also:
Constant Field Values
Constructor Detail

ArcomIoTransport

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

Since:
1.0
Method Detail

getBufferSize

public int getBufferSize()
Gets the buffer size (int) value.

Returns:
The buffer size (int) value.

processInput

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

Parameters:
bytes - byte[]
length - int
Returns:
Results of the process input (int) value.
Throws:
java.lang.Exception - 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.

write

public void write(byte[] sendBytes)
           throws java.lang.Exception
Write with the specified send bytes parameter.

Parameters:
sendBytes - The send bytes (byte[]) parameter.
Throws:
java.lang.Exception - Exception.

getDefaultConnection

public ConnectionService getDefaultConnection()
Gets the default connection.

Returns:
ConnectionService The default connection used by this transport.
Since:
1.0

getDefaultRandomAccessFileConnection

public RandomAccessFileConnectionService getDefaultRandomAccessFileConnection()
Gets the default randomaccessfile connection.

Returns:
RandomAccessFileConnectionService The default randomaccessfile connection used by this transport.
Since:
1.0

getPollingRate

public int getPollingRate()
Gets the value of polling rate custom parameter.

Returns:
polling rate custom parameter.
Since:
1.0
See Also:
setPollingRate(int)

setPollingRate

public void setPollingRate(int pollingRate)
Sets the value of polling rate custom parameter.

Parameters:
pollingRate - The polling rate custom parameter.
Since:
1.0
See Also:
getPollingRate()

setup

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

User defined properties and default values.

arcomiotransport.pollingRate 250
retrytime RETRY_TIME_DEFAULT
transmitretries TRANSMIT_RETRIES_DEFAULT
noactivitytimeout NO_ACTIVITY_TIMEOUT_DEFAULT
arcomiotransport.pollingRate=250

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

2010-01-22 1.2.0

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