org.opengts.db
Interface CustomParser

All Known Implementing Classes:
CustomParserAdapter

public interface CustomParser


Field Summary
static java.lang.String ACCOUNT
           
static java.lang.String COUNT
           
static java.lang.String DATA
           
static java.lang.String DATA_TYPE
           
static java.lang.String DEVICE
           
static java.lang.String DUPLEX
           
static java.lang.String INDEX
           
static java.lang.String PREFIX_
           
static java.lang.String TRANSPORT
           
 
Method Summary
 byte[] parseData(Account account, Device device, java.lang.String type, byte[] data, java.util.Map<java.lang.String,java.lang.Object> props)
          Callback to parse raw data received from a remote tracking device through its device communication server.
 

Field Detail

PREFIX_

static final java.lang.String PREFIX_
See Also:
Constant Field Values

ACCOUNT

static final java.lang.String ACCOUNT
See Also:
Constant Field Values

DEVICE

static final java.lang.String DEVICE
See Also:
Constant Field Values

DATA_TYPE

static final java.lang.String DATA_TYPE
See Also:
Constant Field Values

DATA

static final java.lang.String DATA
See Also:
Constant Field Values

TRANSPORT

static final java.lang.String TRANSPORT
See Also:
Constant Field Values

DUPLEX

static final java.lang.String DUPLEX
See Also:
Constant Field Values

COUNT

static final java.lang.String COUNT
See Also:
Constant Field Values

INDEX

static final java.lang.String INDEX
See Also:
Constant Field Values
Method Detail

parseData

byte[] parseData(Account account,
                 Device device,
                 java.lang.String type,
                 byte[] data,
                 java.util.Map<java.lang.String,java.lang.Object> props)
Callback to parse raw data received from a remote tracking device through its device communication server.

Parameters:
account - The assigned device Account instance
device - The assigned Device instance
type - The type of data contained in "data"
data - The byte array containing the raw data
props - A map where parsed data should be placed (to be inserted into the EventData record)
Returns:
The response which will be sent back to the device