|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectConnectionTransport
org.eclipse.soda.dk.barcode.reader.simulator.BarcodeReaderSimulator
public class BarcodeReaderSimulator
GPS NMEA Transport.
The devicekit properties keys and default values.
| gpsnmeatransport.hardwareflowcontrol | 0 |
| gpsnmeatransport.parity | none |
| gpsnmeatransport.stopbits | 1 |
| gpsnmeatransport.comport | 1 |
| gpsnmeatransport.readintervaltimeout | 50 |
| gpsnmeatransport.softwareflowcontrol | 0 |
| gpsnmeatransport.writetotaltimeout | 100 |
| gpsnmeatransport.databits | 8 |
| gpsnmeatransport.readtotaltimeout | 1000 |
| gpsnmeatransport.baudrate | 4800 |
| gpsnmeatransport.linger | -1 |
| gpsnmeatransport.readtimeout | 1000 |
| gpsnmeatransport.readsize | -1 |
| gpsnmeatransport.localport | -1 |
| gpsnmeatransport.host | localhost |
| gpsnmeatransport.writesize | -1 |
| gpsnmeatransport.remoteport | 8901 |
| gpsnmeatransport.connection | serial |
The list of exported services:
org.eclipse.soda.dk.transport.service.TransportService| Field Summary | |
|---|---|
protected BarcodeReaderSimulator |
barcodeReaderSimulator
Define the barcode reader simulator (BarcodeReaderSimulator) field. |
static java.lang.String |
CLASS_NAME
Defines the class name. |
static byte[] |
HEX_TABLE
Define the hex table (byte[]) constant. |
| Constructor Summary | |
|---|---|
BarcodeReaderSimulator()
Constructs a new instance of the GpsNmeaTransport class. |
|
| Method Summary | |
|---|---|
ConnectionService |
getDefaultConnection()
Gets the default connection. |
TcpipServerConnectionService |
getDefaultTcpipServerConnection()
Gets the default tcpip server connection (TcpipServerConnectionService) value. |
LatitudeData |
getLatitude(java.lang.String nmeaString)
Get latitude with the specified nmea string parameter and return the LatitudeData result. |
LongitudeData |
getLongitude(java.lang.String nmeaString)
Get longitude with the specified nmea string parameter and return the LongitudeData result. |
static void |
main(java.lang.String[] args)
Main with the specified args parameter. |
void |
processInput()
Process input. |
int |
processInput(byte[] bytes,
int length)
Process the input bytes and notify listeners of any messages found. |
void |
setup()
Sets user-defined varables to use in the test. |
void |
start(BundleContext context)
Start with the specified context parameter. |
void |
stop(BundleContext context)
Stop with the specified context parameter. |
protected void |
write(MessageService message)
Write with the specified message parameter. |
| 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
public static final byte[] HEX_TABLE
protected BarcodeReaderSimulator barcodeReaderSimulator
| Constructor Detail |
|---|
public BarcodeReaderSimulator()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
args - The args (String[]) parameter.public ConnectionService getDefaultConnection()
public TcpipServerConnectionService getDefaultTcpipServerConnection()
TcpipServerConnectionService) value.public LatitudeData getLatitude(java.lang.String nmeaString)
nmeaString - The nmea string (String) parameter.
LatitudeData) value.public LongitudeData getLongitude(java.lang.String nmeaString)
nmeaString - The nmea string (String) parameter.
LongitudeData) value.public void processInput()
processInput(byte[],int)
public int processInput(byte[] bytes,
int length)
throws java.lang.Exception
bytes - The bytes (byte[]) parameter.length - The length (int) parameter.
int) value.
java.lang.Exception - Exception.processInput()public void setup()
User defined properties and default values.
| retrytime | DEFAULT_RETRY_TIME |
| noactivitytimeout | DEFAULT_NO_ACTIVITY_TIMEOUT |
org.eclipse.soda.dk.transport.Transport#setup()
public void start(BundleContext context)
throws java.lang.Exception
start in interface BundleActivatorcontext - The context (BundleContext) parameter.
java.lang.Exception - Exception.
public void stop(BundleContext context)
throws java.lang.Exception
stop in interface BundleActivatorcontext - The context (BundleContext) parameter.
java.lang.Exception - Exception.
protected void write(MessageService message)
throws java.lang.Exception
message - The message (MessageService) parameter.
java.lang.Exception - Exception.
|
2008-07-29 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||