|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.db.CustomParserAdapter
public class CustomParserAdapter
Field Summary |
---|
Fields inherited from interface org.opengts.db.CustomParser |
---|
ACCOUNT, COUNT, DATA, DATA_TYPE, DEVICE, DUPLEX, INDEX, PREFIX_, TRANSPORT |
Constructor Summary | |
---|---|
CustomParserAdapter()
|
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.Object> |
ClearTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> evMap)
Removes the temperature variables from the specified EventData field map |
static java.util.Map<java.lang.String,java.lang.Object> |
InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map,
Device device,
java.lang.String transport,
int dataType,
byte[] data,
int count,
int index)
Initialize CustomParser EventData field map with temporary variables |
static java.util.Map<java.lang.String,java.lang.Object> |
InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map,
Device device,
java.lang.String transport,
int dataType,
java.lang.String data,
int count,
int index)
Initialize CustomParser EventData field map with temporary variables |
static java.util.Map<java.lang.String,java.lang.Object> |
InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map,
Device device,
java.lang.String transport,
java.lang.String dataType,
byte[] data,
int count,
int index)
Initialize CustomParser EventData field map with temporary variables |
static java.util.Map<java.lang.String,java.lang.Object> |
InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map,
Device device,
java.lang.String transport,
java.lang.String dataType,
java.lang.String data,
int count,
int index)
Initialize CustomParser EventData field map with temporary variables |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CustomParserAdapter()
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.Object> InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map, Device device, java.lang.String transport, java.lang.String dataType, byte[] data, int count, int index)
map
- The EventData field map to initializedevice
- The current Device instance (may be null)transport
- Transport method (ie. "TCP", "UDP", "Satellite", etc)dataType
- The data type (as defined by the DCS)data
- The datacount
- Total number of events this sessionindex
- Index of current event within session
public static java.util.Map<java.lang.String,java.lang.Object> InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map, Device device, java.lang.String transport, int dataType, byte[] data, int count, int index)
map
- The EventData field map to initializedevice
- The current Device instance (may be null)transport
- Transport method (ie. "TCP", "UDP", "Satellite", etc)dataType
- The data type (as defined by the DCS)data
- The datacount
- Total number of events this sessionindex
- Index of current event within session
public static java.util.Map<java.lang.String,java.lang.Object> InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map, Device device, java.lang.String transport, java.lang.String dataType, java.lang.String data, int count, int index)
map
- The EventData field map to initializedevice
- The current Device instance (may be null)transport
- Transport method (ie. "TCP", "UDP", "Satellite", etc)dataType
- The data type (as defined by the DCS)data
- The datacount
- Total number of events this sessionindex
- Index of current event within session
public static java.util.Map<java.lang.String,java.lang.Object> InitTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> map, Device device, java.lang.String transport, int dataType, java.lang.String data, int count, int index)
map
- The EventData field map to initializedevice
- The current Device instance (may be null)transport
- Transport method (ie. "TCP", "UDP", "Satellite", etc)dataType
- The data type (as defined by the DCS)data
- The datacount
- Total number of events this sessionindex
- Index of current event within session
public static java.util.Map<java.lang.String,java.lang.Object> ClearTemporaryVars(java.util.Map<java.lang.String,java.lang.Object> evMap)
evMap
- The EventData field map
public byte[] parseData(Account account, Device device, java.lang.String type, byte[] data, java.util.Map<java.lang.String,java.lang.Object> props)
parseData
in interface CustomParser
account
- The assigned device Account instancedevice
- The assigned Device instancetype
- The type of data contained in "data"data
- The byte array containing the raw dataprops
- A map where parsed data should be placed (to be inserted into the EventData record)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |