|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.dbtools.DBRecord<RT> org.opengts.db.AccountRecord<RT> org.opengts.db.DeviceRecord<EventData> org.opengts.db.tables.EventData
public class EventData
Nested Class Summary | |
---|---|
static class |
EventData.DeviceDescriptionComparator
|
static class |
EventData.FieldComparator
|
static class |
EventData.GPSFixType
|
static class |
EventData.Key
|
static class |
EventData.LimitType
|
static class |
EventData.OdometerOffsetType
|
Nested classes/interfaces inherited from class org.opengts.db.DeviceRecord |
---|
DeviceRecord.DeviceKey<RT extends DBRecord> |
Nested classes/interfaces inherited from class org.opengts.db.AccountRecord |
---|
AccountRecord.AccountKey<RT extends DBRecord> |
Nested classes/interfaces inherited from class org.opengts.dbtools.DBRecord |
---|
DBRecord.DBChangeListener |
Field Summary | |
---|---|
static java.lang.String |
_TABLE_NAME
|
static int |
AddressColumnLength
|
static DBField[] |
AddressFieldInfo
|
static java.lang.String |
ALTKEY_eq_pushkey
|
static DBField[] |
AnalogFieldInfo
|
static DBField[] |
AtmosphereFieldInfo
|
static DBField[] |
AutoIncrementIndex
|
static DBField[] |
CANBUSFieldInfo
|
static int |
CityColumnLength
|
static DBField[] |
CreationTimeMillisecond
|
static DBField[] |
CustomFieldInfo
|
static java.lang.String[] |
DEBUG_PUSHPINS
|
static boolean |
DFT_allowInnoDBCountWithWhere
|
static boolean |
DFT_lockTableOnRead
|
static long |
DOOR_DRIVER
|
static long |
DOOR_HOOD_BONNET
|
static long |
DOOR_PASSENGER
|
static long |
DOOR_REAR_LEFT
|
static long |
DOOR_REAR_RIGHT
|
static long |
DOOR_TRUNK_BOOT
|
static EventData[] |
EMPTY_ARRAY
|
static DBField[] |
EndOfDaySummary
|
static java.lang.String |
FLD_acceleration
|
static java.lang.String |
FLD_accelerometerXYZ
|
static java.lang.String |
FLD_address
|
static java.lang.String |
FLD_airFilterPressure
|
static java.lang.String |
FLD_airPressure
|
static java.lang.String |
FLD_altitude
|
static java.lang.String |
FLD_ambientTemp
|
static java.lang.String |
FLD_analog0
|
static java.lang.String |
FLD_analog1
|
static java.lang.String |
FLD_analog2
|
static java.lang.String |
FLD_analog3
|
static java.lang.String |
FLD_attachData
|
static java.lang.String |
FLD_attachType
|
static java.lang.String |
FLD_autoIndex
|
static java.lang.String |
FLD_barometer
|
static java.lang.String |
FLD_batteryLevel
|
static java.lang.String |
FLD_batteryTemp
|
static java.lang.String |
FLD_batteryVolts
|
static java.lang.String |
FLD_brakeGForce
|
static java.lang.String |
FLD_brakePos
|
static java.lang.String |
FLD_brakePressure
|
static java.lang.String |
FLD_cabinTemp
|
static java.lang.String |
FLD_cellAccuracy
|
static java.lang.String |
FLD_cellLatitude
|
static java.lang.String |
FLD_cellLongitude
|
static java.lang.String |
FLD_cellNeighborInfo0
|
static java.lang.String |
FLD_cellNeighborInfo1
|
static java.lang.String |
FLD_cellNeighborInfo2
|
static java.lang.String |
FLD_cellNeighborInfo3
|
static java.lang.String |
FLD_cellNeighborInfo4
|
static java.lang.String |
FLD_cellNeighborInfo5
|
static java.lang.String |
FLD_cellServingInfo
|
static java.lang.String |
FLD_cellTimingAdvance
|
static java.lang.String |
FLD_cellTowerID
|
static java.lang.String |
FLD_city
|
static java.lang.String |
FLD_coolantLevel
|
static java.lang.String |
FLD_coolantTemp
|
static java.lang.String |
FLD_costCenter
|
static java.lang.String |
FLD_country
|
static java.lang.String |
FLD_dataPush
|
static java.lang.String |
FLD_dataSource
|
static java.lang.String |
FLD_dayDistanceKM
|
static java.lang.String |
FLD_dayEngineStarts
|
static java.lang.String |
FLD_dayFuelIdle
|
static java.lang.String |
FLD_dayFuelPTO
|
static java.lang.String |
FLD_dayFuelTotal
|
static java.lang.String |
FLD_dayFuelWork
|
static java.lang.String |
FLD_dayIdleHours
|
static java.lang.String |
FLD_dayWorkHours
|
static java.lang.String |
FLD_distanceKM
|
static java.lang.String |
FLD_doorStateMask
|
static java.lang.String |
FLD_driverID
|
static java.lang.String |
FLD_driverMessage
|
static java.lang.String |
FLD_driverMessageACK
|
static java.lang.String |
FLD_driverStatus
|
static java.lang.String |
FLD_emailRecipient
|
static java.lang.String |
FLD_engineHours
|
static java.lang.String |
FLD_engineLoad
|
static java.lang.String |
FLD_engineOnHours
|
static java.lang.String |
FLD_engineRpm
|
static java.lang.String |
FLD_engineTemp
|
static java.lang.String |
FLD_engineTorque
|
static java.lang.String |
FLD_entityID
|
static java.lang.String |
FLD_entityType
|
static java.lang.String |
FLD_etaDistanceKM
|
static java.lang.String |
FLD_etaLatitude
|
static java.lang.String |
FLD_etaLongitude
|
static java.lang.String |
FLD_etaTimestamp
|
static java.lang.String |
FLD_etaUniqueID
|
static java.lang.String |
FLD_faultCode
|
static java.lang.String |
FLD_fuelEconomy
|
static java.lang.String |
FLD_fuelEngineOn
|
static java.lang.String |
FLD_fuelIdle
|
static java.lang.String |
FLD_fuelLevel
|
static java.lang.String |
FLD_fuelLevel2
|
static java.lang.String |
FLD_fuelPressure
|
static java.lang.String |
FLD_fuelPTO
|
static java.lang.String |
FLD_fuelRemain
|
static java.lang.String |
FLD_fuelTemp
|
static java.lang.String |
FLD_fuelTotal
|
static java.lang.String |
FLD_fuelTrip
|
static java.lang.String |
FLD_fuelUsage
|
static java.lang.String |
FLD_geozoneID
|
static java.lang.String |
FLD_geozoneIndex
|
static java.lang.String |
FLD_gpsAge
|
static java.lang.String |
FLD_gpsFixStatus
|
static java.lang.String |
FLD_gpsFixType
|
static java.lang.String |
FLD_HDOP
|
static java.lang.String |
FLD_heading
|
static java.lang.String |
FLD_horzAccuracy
|
static java.lang.String |
FLD_idleHours
|
static java.lang.String |
FLD_impactData
|
static java.lang.String |
FLD_impactDataIndex
|
static java.lang.String |
FLD_impactDataPeriod
|
static java.lang.String |
FLD_impactDataStatus
|
static java.lang.String |
FLD_impactDataType
|
static java.lang.String |
FLD_inputMask
|
static java.lang.String |
FLD_intakeTemp
|
static java.lang.String |
FLD_isTollRoad
|
static java.lang.String |
FLD_j1708Fault
|
static java.lang.String |
FLD_jobNumber
|
static java.lang.String |
FLD_latitude
|
static java.lang.String |
FLD_leaseAllowedDistKM
|
static java.lang.String |
FLD_leaseContractID
|
static java.lang.String |
FLD_leaseEndDate
|
static java.lang.String |
FLD_leaseStartDate
|
static java.lang.String |
FLD_leaseStartOdomKM
|
static java.lang.String |
FLD_lightsStateMask
|
static java.lang.String |
FLD_locationAreaCode
|
static java.lang.String |
FLD_longitude
|
static java.lang.String |
FLD_malfunctionLamp
|
static java.lang.String |
FLD_massAirFlowRate
|
static java.lang.String |
FLD_messageID
|
static java.lang.String |
FLD_messageStatus
|
static java.lang.String |
FLD_messageTimestamp
|
static java.lang.String |
FLD_mobileCountryCode
|
static java.lang.String |
FLD_mobileNetworkCode
|
static java.lang.String |
FLD_odometerKM
|
static java.lang.String |
FLD_odometerOffsetKM
|
static java.lang.String |
FLD_oilCoolerInTemp
|
static java.lang.String |
FLD_oilCoolerOutTemp
|
static java.lang.String |
FLD_oilLevel
|
static java.lang.String |
FLD_oilPressure
|
static java.lang.String |
FLD_oilTemp
|
static java.lang.String |
FLD_outputMask
|
static java.lang.String |
FLD_postalCode
|
static java.lang.String |
FLD_priority
|
static java.lang.String |
FLD_ptoDistanceKM
|
static java.lang.String |
FLD_ptoEngaged
|
static java.lang.String |
FLD_ptoHours
|
static java.lang.String |
FLD_pulseCount
|
static java.lang.String |
FLD_rawData
|
static java.lang.String |
FLD_rfidTag
|
static java.lang.String |
FLD_sampleID
|
static java.lang.String |
FLD_sampleIndex
|
static java.lang.String |
FLD_satelliteCount
|
static java.lang.String |
FLD_seatbeltMask
|
static java.lang.String |
FLD_sensorHigh
|
static java.lang.String |
FLD_sensorLow
|
static java.lang.String |
FLD_sequence
|
static java.lang.String |
FLD_signalStrength
|
static java.lang.String |
FLD_speedKPH
|
static java.lang.String |
FLD_speedLimitKPH
|
static java.lang.String |
FLD_stateProvince
|
static java.lang.String |
FLD_statusCode
|
static java.lang.String |
FLD_stopID
|
static java.lang.String |
FLD_stopIndex
|
static java.lang.String |
FLD_stopStatus
|
static java.lang.String |
FLD_streetAddress
|
static java.lang.String |
FLD_subdivision
|
static java.lang.String |
FLD_tankLevel
|
static java.lang.String |
FLD_thermoAverage0
|
static java.lang.String |
FLD_thermoAverage1
|
static java.lang.String |
FLD_thermoAverage2
|
static java.lang.String |
FLD_thermoAverage3
|
static java.lang.String |
FLD_thermoAverage4
|
static java.lang.String |
FLD_thermoAverage5
|
static java.lang.String |
FLD_thermoAverage6
|
static java.lang.String |
FLD_thermoAverage7
|
static java.lang.String |
FLD_throttlePos
|
static java.lang.String |
FLD_timestamp
|
static java.lang.String |
FLD_tirePressure
|
static java.lang.String |
FLD_tireTemp
|
static java.lang.String |
FLD_transOilTemp
|
static java.lang.String |
FLD_transportID
|
static java.lang.String |
FLD_tripBrakeCount
|
static java.lang.String |
FLD_tripClutchCount
|
static java.lang.String |
FLD_tripDistanceKM
|
static java.lang.String |
FLD_tripElapsedSeconds
|
static java.lang.String |
FLD_tripIdleHours
|
static java.lang.String |
FLD_tripMaxRpm
|
static java.lang.String |
FLD_tripMaxSpeedKPH
|
static java.lang.String |
FLD_tripPtoHours
|
static java.lang.String |
FLD_tripStartLatitude
|
static java.lang.String |
FLD_tripStartLongitude
|
static java.lang.String |
FLD_tripStartTime
|
static java.lang.String |
FLD_tripStopTime
|
static java.lang.String |
FLD_turboPressure
|
static java.lang.String |
FLD_vBatteryVolts
|
static java.lang.String |
FLD_vertAccuracy
|
static java.lang.String |
FLD_workDistanceKM
|
static java.lang.String |
FLD_workHours
|
static DBField[] |
GarminFieldInfo
|
static DBField[] |
GPSFieldInfo
|
static int |
ICON_PUSHPIN_BLACK
|
static int |
ICON_PUSHPIN_BLUE
|
static int |
ICON_PUSHPIN_BROWN
|
static int |
ICON_PUSHPIN_GRAY
|
static int |
ICON_PUSHPIN_GREEN
|
static int |
ICON_PUSHPIN_ORANGE
|
static int |
ICON_PUSHPIN_PURPLE
|
static int |
ICON_PUSHPIN_RED
|
static int |
ICON_PUSHPIN_WHITE
|
static int |
ICON_PUSHPIN_YELLOW
|
static DBField[] |
ImpactData
|
static double |
INVALID_TEMPERATURE
|
static java.lang.String[] |
KEY_ACCOUNT
|
static java.lang.String[] |
KEY_CREATE_AGE
|
static java.lang.String[] |
KEY_CREATE_DATETIME
|
static java.lang.String[] |
KEY_DATE_DAY
|
static java.lang.String[] |
KEY_DATE_DOW
|
static java.lang.String[] |
KEY_DATE_MONTH
|
static java.lang.String[] |
KEY_DATE_YEAR
|
static java.lang.String[] |
KEY_DATETIME
|
static java.lang.String[] |
KEY_DEV_CONN_AGE
|
static java.lang.String[] |
KEY_DEV_TRAILERS
|
static java.lang.String[] |
KEY_DEVICE
|
static java.lang.String[] |
KEY_DEVICE_COUNT
|
static java.lang.String[] |
KEY_DEVICE_LINK
|
static java.lang.String[] |
KEY_DRIVER_BADGE
|
static java.lang.String[] |
KEY_DRIVER_DESC
|
static java.lang.String[] |
KEY_DRIVER_LICENSE
|
static java.lang.String[] |
KEY_DRIVER_PHONE
|
static java.lang.String[] |
KEY_DRIVERID
|
static java.lang.String[] |
KEY_EVENT_COUNT24
|
static java.lang.String[] |
KEY_FAULT_CODE
|
static java.lang.String[] |
KEY_FAULT_CODES
|
static java.lang.String[] |
KEY_FAULT_DESC
|
static java.lang.String[] |
KEY_FAULT_HEADER
|
static java.lang.String[] |
KEY_TIME
|
static java.lang.String[] |
KEY_TIMEZONE
|
static DBField[] |
LeaseRentalData
|
static long |
LIGHTS_FRONT_FOG
|
static long |
LIGHTS_HAZARD
|
static long |
LIGHTS_HIGH_BEAM
|
static long |
LIGHTS_LOW_BEAM
|
static long |
LIGHTS_REAR_FOG
|
static long |
LIGHTS_RUNNING
|
static DBField[] |
NeighborCellTowerData
|
static java.lang.String |
OPTCOLS_AddressFieldInfo
|
static java.lang.String |
OPTCOLS_AnalogFieldInfo
|
static java.lang.String |
OPTCOLS_AtmosphereFieldInfo
|
static java.lang.String |
OPTCOLS_AutoIncrementIndex
|
static java.lang.String |
OPTCOLS_CANBUSFieldInfo
|
static java.lang.String |
OPTCOLS_CreationTimeMillisecond
|
static java.lang.String |
OPTCOLS_CustomFieldInfo
|
static java.lang.String |
OPTCOLS_EndOfDaySummary
|
static java.lang.String |
OPTCOLS_GarminFieldInfo
|
static java.lang.String |
OPTCOLS_GPSFieldInfo
|
static java.lang.String |
OPTCOLS_ImpactData
|
static java.lang.String |
OPTCOLS_LeaseRentalData
|
static java.lang.String |
OPTCOLS_NeighborCellTowerData
|
static java.lang.String |
OPTCOLS_ServingCellTowerData
|
static java.lang.String |
OPTCOLS_ThermoFieldInfo
|
static java.lang.String |
OPTCOLS_TripSummary
|
static java.lang.String |
OPTCOLS_WorkZoneGridData
|
static java.lang.String |
PFLD_Account_
|
static java.lang.String |
PFLD_Device_
|
static java.lang.String |
PFLD_deviceDesc
|
static int |
PostalColumnLength
|
static java.lang.String |
PPNAME_all
|
static java.lang.String |
PPNAME_fleet
|
static java.lang.String |
PPNAME_heading
|
static java.lang.String |
PPNAME_last
|
static java.lang.String |
PPNAME_moving
|
static java.lang.String |
PPNAME_statusCode
|
static java.lang.String |
PPNAME_stop
|
static long |
SEATBELT_DRIVER
|
static long |
SEATBELT_PASSENGER
|
static long |
SEATBELT_REAR_LEFT
|
static long |
SEATBELT_REAR_RIGHT
|
static DBField[] |
ServingCellTowerData
|
static int |
StateColumnLength
|
static int |
StreetColumnLength
|
static double |
TEMPERATURE_LIMIT_HI
|
static double |
TEMPERATURE_LIMIT_LO
|
static DBField[] |
ThermoFieldInfo
|
static DBField[] |
TripSummary
|
static DBField[] |
WorkZoneGridData
|
Fields inherited from class org.opengts.db.DeviceRecord |
---|
FLD_deviceID |
Fields inherited from class org.opengts.db.AccountRecord |
---|
FLD_accountID, FLD_displayName, FLD_isActive, FLD_notes |
Fields inherited from class org.opengts.dbtools.DBRecord |
---|
errorDescription, excludedUpdateFields, FLD_creationMillis, FLD_creationTime, FLD_description, FLD_lastUpdateAccount, FLD_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR, tempProps |
Constructor Summary | |
---|---|
EventData()
|
|
EventData(EventData.Key key)
|
Method Summary | |
---|---|
EntityManager.EntityType |
_getEntityType(EntityManager.EntityType dft)
Gets the Entity type |
static java.lang.String |
_getKeyFieldString(boolean getTitle,
java.lang.String key,
java.lang.String arg,
java.util.Locale locale,
BasicPrivateLabel bpl,
EventData ed)
Gets the value string for the specified key. |
static int |
_getPushpinIconIndex(java.lang.String val,
OrderedSet<java.lang.String> iconKeys,
int dft)
|
static boolean |
_keyMatch(java.lang.String key,
java.lang.String keyMatch)
Returns true if the specified key matches the target key |
static boolean |
_keyMatch(java.lang.String key,
java.lang.String[] keyList)
Returns true if the specified key matches at least one of the target keys |
static void |
calculateReportDistance(java.util.Collection<EventData> evList)
Calculates the report distance for the specified list of EventData instances |
boolean |
calculateReportDistance(EventData lastEV)
Calculates the report distance for this EventData instance |
static void |
calculateReportDistance(EventData[] evList)
Calculates the report distance for the specified array of EventData instances |
boolean |
canUpdateCellTowerLocation()
|
int |
checkSpeedingCondition(double dftLimitKPH,
double dftOffsetKPH)
Returns one of the following values depending on the event speeding condition: - 0 = not speeding - 1 = Exceeds Specified speed - 2 = Exceeds Device speed - 3 = Exceeds Posted speed - 4 = Exceeds Geozone speed |
void |
clearThermoAverage()
|
static EventData |
copySynthesizedEvent(EventData evdb,
int sc)
|
static EventData |
copySynthesizedEvent(EventData evdb,
int sc,
long ts)
|
static long |
countRangeEvents(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd,
int[] statCode,
boolean validGPS,
EventData.LimitType limitType,
long limit,
java.lang.String addtnlSelect)
|
static EventData |
createEventDataRecord(GeoEvent gev)
Creates an EventData record from the specified GeoEvent |
static long |
deleteEventsAfterTimestamp(java.lang.String acctID,
java.lang.String devID,
long timestamp,
boolean inclusive)
Delete events which are after the specified timestamp (exclusive) |
static long |
deleteFutureEvents(Device device,
long futureTime)
Delete events which are in the future |
static long |
deleteFutureEvents(java.lang.String acctID,
java.lang.String devID,
long futureTime)
Delete events which are in the future |
static long |
deleteOldEvents(Device device,
long oldTimeSec,
java.lang.StringBuffer msg)
Delete old events Note: Will return -1 if EventData table is InnoDB. |
static boolean |
exists(java.lang.String acctID,
java.lang.String devID,
long time,
int stCode)
Returns true if the specified record exists |
java.lang.String |
formatAsCSVRecord(java.lang.String[] fields)
Format this events as a comma-separated-value list |
double |
getAcceleration()
Gets the acceleration (meters-per-second-squared) |
Accelerometer |
getAccelerometer()
Gets the accelerometer XYZ-axis values (meters-per-second-squared) |
java.lang.String |
getAccelerometerXYZ()
Gets the accelerometer XYZ-axis values (meters-per-second-squared). |
java.lang.String |
getAddress()
|
java.lang.String |
getAddress(boolean lazyUpdate)
|
double |
getAirFilterPressure()
Gets the air filter pressure (kPa) |
double |
getAirPressure()
Gets the air pressure (kPa) |
double |
getAltitude()
|
java.lang.String |
getAltitudeString(boolean inclUnits,
java.util.Locale locale)
|
double |
getAmbientTemp()
Gets the ambient air temperature (C) |
double |
getAnalog(int ndx)
Gets the analog value for the specified index |
double |
getAnalog0()
|
double |
getAnalog1()
|
double |
getAnalog2()
|
double |
getAnalog3()
|
static int |
GetAnalogFieldCount()
Returns the number of available analog fields |
static java.lang.String |
GetAnalogFieldName(int ndx)
Returns the analog field name for the specified index |
byte[] |
getAttachData()
Gets the attachment data |
RTProperties |
getAttachRTProperties()
Gets the attachment as an RTProperties instance. |
java.lang.String |
getAttachType()
Gets the attachment MIME type (used with "attachData") |
static EventData |
getAutoIndexEvent(long autoIndex)
|
double |
getBarometer()
|
double |
getBatteryLevel()
Gets the current battery level (as a percent) |
double |
getBatteryTemp()
Gets the battery temperature (C) |
double |
getBatteryVolts()
Gets the current battery voltage |
double |
getBestAccuracy()
Gets the accuracy radius, in meters |
GeoPoint |
getBestGeoPoint()
Gets the best GeoPoint for this event (does not return null) |
double |
getBestLatitude()
Gets the best Latitude for this event |
double |
getBestLongitude()
Gets the best Longitude for this event |
double |
getBrakeGForce()
Gets the brake G-force |
double |
getBrakePos()
Gets the brake position (percent) |
double |
getBrakePressure()
Gets the brake pressure |
double |
getCabinTemp()
Gets the cabin temperature (C) |
double |
getCellAccuracy()
|
GeoPoint |
getCellGeoPoint()
|
double |
getCellLatitude()
|
double |
getCellLongitude()
|
java.lang.String |
getCellNeighborInfo0()
|
java.lang.String |
getCellNeighborInfo1()
|
java.lang.String |
getCellNeighborInfo2()
|
java.lang.String |
getCellNeighborInfo3()
|
java.lang.String |
getCellNeighborInfo4()
|
java.lang.String |
getCellNeighborInfo5()
|
java.lang.String |
getCellServingInfo()
|
int |
getCellTimingAdvance()
|
int |
getCellTowerID()
|
java.lang.String |
getCity()
|
double |
getCoolantLevel()
Gets the coolant level (percent) |
double |
getCoolantTemp()
Gets the coolant temperature (C) |
long |
getCostCenter()
Gets the cost center |
java.lang.String |
getCountry()
|
long |
getCreationAge()
Gets the time difference (in seconds) between time the event was generated by the device, and the time the server received the event. |
java.lang.String |
getCreationTimeString()
Gets the String representation of the creation timestamp of this event |
boolean |
getDataPush()
Gets the data-push flag |
java.lang.String |
getDataSource()
Sets the data source for this event. |
double |
getDayDistanceKM()
|
int |
getDayEngineStarts()
|
double |
getDayFuelIdle()
|
double |
getDayFuelPTO()
|
double |
getDayFuelTotal()
|
double |
getDayFuelWork()
|
double |
getDayIdleHours()
|
double |
getDayWorkHours()
|
static java.util.Comparator<EventData> |
getDeviceDescriptionComparator()
|
double |
getDistanceKM()
Gets the distance/trip odometer value in kilometers. |
static java.lang.String |
GetDoorMaskDescription(long m,
java.util.Locale locale)
|
long |
getDoorStateMask()
|
boolean |
getDoorStateMaskBitState(int bit)
|
Driver |
getDriver(boolean chkDevIfBlank)
Gets the driver record instance |
java.lang.String |
getDriverID()
Gets the driver id |
java.lang.String |
getDriverID(boolean chkDevIfBlank)
Gets the driver id |
java.lang.String |
getDriverMessage()
Gets the driver message |
long |
getDriverStatus()
Gets the driver status |
java.lang.String |
getEmailRecipient()
Gets the email recipient |
double |
getEngineHours()
Gets the engine hours |
double |
getEngineLoad()
Gets the engine load (percent) |
double |
getEngineOnHours()
Gets the engine hours since last engine on |
long |
getEngineRpm()
Gets the engine RPM |
double |
getEngineTemp()
Gets the engine temperature (C) |
double |
getEngineTorque()
Gets the engine torque |
java.lang.String |
getEntityID()
|
java.lang.String[] |
getEntityIDList(java.lang.String altID)
|
int |
getEntityType()
Gets the Entity type |
java.lang.String |
getEntityTypeDescription(java.util.Locale loc)
Gets the Entity type description text |
double |
getEtaDistanceKM()
Gets the ETA distance in kilometers |
GeoPoint |
getEtaGeoPoint()
Gets the ETA GeoPoint |
double |
getEtaLatitude()
Gets the ETA Latitude |
double |
getEtaLongitude()
Gets the ETA Longitude |
long |
getEtaTimestamp()
Gets the ETA timestamp in Unix/Epoch time |
long |
getEtaUniqueID()
Gets the ETA unique-id |
static EventData |
getEventData(Device dev,
long timestamp,
int statusCode)
|
static EventData |
getEventData(java.lang.String acctId,
java.lang.String devId,
long timestamp,
int statusCode)
|
int |
getEventIndex()
Gets the Event index (used for reporting) |
static EventData[] |
getEventsByCreationMillis(java.lang.String acctId,
java.lang.String devId,
long createStartMS,
long createEndMS,
long limit)
|
static DBFactory<EventData> |
getFactory()
|
java.lang.String |
getFaultCode()
Gets the fault code string |
RTProperties |
getFaultCodeRTProperties()
Gets the fault code string value as an RTProperties instance |
java.lang.Object |
getFieldValue(java.lang.String fldName)
Overrides DBRecord.getFieldValue(...) |
double |
getFuelEconomy()
Gets the instantaneous fuel economy (km/Litre) |
double |
getFuelEngineOn()
Gets the fuel used since last engine-on |
double |
getFuelIdle()
Gets the idle fuel used |
double |
getFuelLevel()
Gets the fuel level |
double |
getFuelLevel(boolean estimate)
Gets the fuel-level |
double |
getFuelLevel2()
Gets the fuel level in the alternate/second tank |
double |
getFuelLevelVolume_Liters()
Gets the fuel volume in Liters, based on the level and estimated fuel capacity |
double |
getFuelLevelVolume_Units()
Gets the fuel volume in the Account preferred units, based on the level and estimated fuel capacity |
double |
getFuelPressure()
Gets the fuel pressure |
double |
getFuelPTO()
Gets the PTO fuel used |
double |
getFuelRemain()
Gets the fuel remaining in the tank (in Litres) |
double |
getFuelRemain(boolean estimate)
Gets the fuel remaining in the tank (in Litres) |
double |
getFuelTemp()
Gets the fuel temperature |
double |
getFuelTotal()
Gets the total fuel used |
double |
getFuelTrip()
Gets the trip fuel used |
double |
getFuelUsage()
Gets the fuel usage (rate of use) in Litres/Hour |
GeoPoint |
getGeoPoint()
Gets the GeoPoint for this event |
Geozone |
getGeozone()
Loads and returns the Geozone for the GeozoneID held by this EventData record. |
java.lang.String |
getGeozoneDescription()
Gets the Geozone description |
java.lang.String |
getGeozoneDisplayName()
Gets the Geozone display name |
java.lang.String |
getGeozoneID()
Gets the GeozoneID |
long |
getGeozoneIndex()
Gets the Geozone index provided by the device |
long |
getGpsAge()
|
static double |
getGPSDistanceTraveledKM(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd,
GeoPoint startingGP,
double startingOdomKM)
|
long |
getGpsFixStatus()
|
int |
getGpsFixType()
Gets the GPS fix type |
static EventData.GPSFixType |
getGPSFixType(EventData e)
|
java.lang.String |
getGpsFixTypeDescription(java.util.Locale loc)
Gets the GPS fix type description text |
double |
getHDOP()
|
double |
getHeading()
|
double |
getHorzAccuracy()
|
double |
getIdleHours()
Gets the engine idle hours |
java.lang.String |
getImpactData()
Gets the impact data |
int |
getImpactDataIndex()
Gets the impact data index |
int |
getImpactDataPeriod()
Gets the impact data period. |
int |
getImpactDataStatus()
Gets the impact data status. |
java.lang.String |
getImpactDataType()
Gets the impact data type |
double |
getImpactMagnitude()
Gets the maximum impact magnitude (in Meters/Second/Second) |
long |
getInputMask()
|
boolean |
getInputMaskBitState(int bit)
|
double |
getIntakeTemp()
Gets the intake temperature (C) |
boolean |
getIsFirstEvent()
Returns true if this event is the first event |
boolean |
getIsLastEvent()
Returns true if this event is the last event |
boolean |
getIsSynthesizedEvent()
Returns the synthesized event state |
boolean |
getIsTollRoad()
|
long |
getJ1708Fault()
Gets the OBD(DTC)/J1708 fault code (encoded) |
java.lang.String |
getJobNumber()
Gets the job number |
static java.lang.String |
getKeyFieldTitle(java.lang.String key,
java.lang.String arg,
java.util.Locale locale)
Gets the title string for the specified key |
java.lang.String |
getKeyFieldValue(java.lang.String key,
java.lang.String arg,
BasicPrivateLabel bpl)
Gets the value string for the specified key. |
double |
getLatitude()
Gets the latitude for this event |
double |
getLeaseAllowedDistKM()
Gets the allowed distance over the term of the lease |
java.lang.String |
getLeaseContractID()
Gets the lease contract id/number |
long |
getLeaseEndDate()
Gets the lease ending day number |
long |
getLeaseStartDate()
Gets the lease starting day number |
double |
getLeaseStartOdomKM()
Gets the starting odometer at the beginning of the lease |
static java.lang.String |
GetLightsMaskDescription(long m,
java.util.Locale locale)
|
long |
getLightsStateMask()
|
boolean |
getLightsStateMaskBitState(int bit)
|
int |
getLocationAreaCode()
|
double |
getLongitude()
Gets the longitude for this event |
boolean |
getMalfunctionLamp()
Returns true if the Malfunction-Indicator-Lamp is on |
double |
getMassAirFlowRate()
Gets the mass air flow rate (g/sec) |
long |
getMessageID()
Gets the MESSAGE id |
int |
getMessageStatus()
Gets the MESSAGE Status |
long |
getMessageTimestamp()
Gets the MESSAGE time |
double |
getMinimumSpeedingThreshold(double dftLimitKPH,
double dftOffsetKPH)
Gets the minimum speed limit threshold, based on the context of the event. |
int |
getMobileCountryCode()
|
int |
getMobileNetworkCode()
|
org.opengts.cellid.CellTower |
getNeighborCellTower(int ndx)
|
org.opengts.cellid.CellTower[] |
getNeighborCellTowers()
|
EventData |
getNextEventData(boolean validGPS)
Gets the next EventData record |
static EventData |
getNextEventData(java.lang.String accountID,
java.lang.String deviceID,
long timestamp,
int[] statusCodes,
boolean validGPS)
Gets the next EventData record |
long |
getOBDFault()
Gets the OBD(DTC)/J1708 fault code (encoded) |
double |
getOdometerKM()
|
double |
getOdometerOffsetKM()
|
double |
getOdometerOffsetKM(EventData.OdometerOffsetType offsType)
Returns the odometer value, adjusted with the specified offset type |
double |
getOdometerWithOffsetKM()
Returns the odometer value, already adjusted with the EventData/Device offset |
double |
getOilCoolerInTemp()
Gets the oil cooler inlet temperature |
double |
getOilCoolerOutTemp()
Gets the oil cooler outlet temperature |
double |
getOilLevel()
Gets the oil level (percent) |
double |
getOilPressure()
Gets the oil pressure |
double |
getOilTemp()
Gets the oil temperature (C) |
long |
getOutputMask()
|
boolean |
getOutputMaskBitState(int bit)
|
java.lang.String |
getPostalCode()
|
EventData |
getPreviousEventData(boolean validGPS)
Gets the previous EventData record |
EventData |
getPreviousEventData(int[] statusCodes,
boolean validGPS)
Gets the previous EventData record |
static EventData |
getPreviousEventData(java.lang.String accountID,
java.lang.String deviceID,
long timestamp,
int[] statusCodes,
boolean validGPS)
Gets the previous EventData record |
int |
getPriority()
Gets the event priority |
double |
getPtoDistanceKM()
Gets the PTO distance tripometer value in kilometers. |
boolean |
getPtoEngaged()
Gets the PTO engaged state |
double |
getPtoHours()
Gets the PTO hours |
double |
getPulseCount()
|
int |
getPushpinIconIndex(java.lang.String iconSelector,
OrderedSet<java.lang.String> iconKeys,
boolean isFleet,
BasicPrivateLabel bpl)
Gets the default map icon index |
static EventData[] |
getRangeEvents(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd,
int[] statCode,
boolean validGPS,
EventData.LimitType limitType,
long limit,
boolean ascending,
java.lang.String addtnlSelect)
|
static EventData[] |
getRangeEvents(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd,
int[] statCode,
boolean validGPS,
EventData.LimitType limitType,
long limit,
boolean ascending,
java.lang.String addtnlSelect,
DBRecordHandler<EventData> rcdHandler)
|
java.lang.String |
getRawData()
Gets the Raw Packet data for this event (if available) |
static long |
getRecordCount(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd)
Gets the number of EventData records for the specified Account/Device within the specified range. |
GeoPoint |
getReportDistanceGP()
Gets the Report location (GeoPoint) |
double |
getReportDistanceKM()
Gets the Report distance (kilometers) |
ReverseGeocode |
getReverseGeocode(java.lang.String name,
boolean fastOnly)
Returns a ReverseGeocode instance, using the named ReverseGeocodeProvider, for this event. |
java.lang.String |
getRfidTag()
Gets the stored RFID tag |
java.lang.String |
getSampleID()
Gets the sample ID |
int |
getSampleIndex()
Gets the sample index |
int |
getSatelliteCount()
Gets the Satellite count |
long |
getSeatbeltMask()
|
boolean |
getSeatbeltMaskBitState(int bit)
|
static java.lang.String |
GetSeatbeltMaskDescription(long m,
java.util.Locale locale)
|
static EventData[] |
getSelectedEvents(DBSelect<EventData> dsel,
DBRecordHandler<EventData> rcdHandler)
|
long |
getSensorHigh()
Gets the high sensor value |
long |
getSensorLow()
Gets the low sensor value |
int |
getSequence()
Gets the packet sequence number |
org.opengts.cellid.CellTower |
getServingCellTower()
|
double |
getSignalStrength()
Gets the current signal strength |
double |
getSpeedKPH()
|
double |
getSpeedLimitKPH()
Gets the posted speed limit (typically obtained from the reverse-geocoding service) |
double |
getSpeedMPH()
|
int[] |
getStartStopStatusCodes()
Returns the start/stop status codes defined in the Device record |
boolean |
getStartStopSupported(boolean dft)
Gets the "Start/Stop StatusCode supported" config |
java.lang.String |
getStateProvince()
|
int |
getStatusCode()
Gets the status code of this event |
java.lang.String |
getStatusCodeBackgroundColor(BasicPrivateLabel bpl)
Gets the String representation of the status code backgound color |
java.lang.String |
getStatusCodeDescription(BasicPrivateLabel bpl)
Gets the String representation of the status code of this event |
java.lang.String |
getStatusCodeForegroundColor(BasicPrivateLabel bpl)
Gets the String representation of the status code foregound color |
java.lang.String |
getStatusCodeHex()
Gets the Hex String representation of the status code of this event |
java.lang.String |
getStatusCodeIconName(BasicPrivateLabel bpl)
Gets the icon-name for the status code of this event |
java.lang.String |
getStatusCodeIconSelector(BasicPrivateLabel bpl)
Gets the map icon-selector for the status code of this event |
StatusCodeProvider |
getStatusCodeProvider(BasicPrivateLabel bpl)
Gets the String representation of the status code foregound color (may return null if this event status code is not pre-defined). |
long |
getStopID()
Gets the STOP id |
int |
getStopIndex()
Gets the STOP Index |
int |
getStopStatus()
Gets the STOP Status |
java.lang.String |
getStreetAddress()
|
java.lang.String |
getSubdivision()
|
static java.lang.String |
getTableDescription(java.util.Locale loc)
|
double |
getTankLevel()
Gets the general tank level |
double |
getThermoAverage(int ndx)
Gets the temperature value for the specified index |
double |
getThermoAverage0()
|
double |
getThermoAverage1()
|
double |
getThermoAverage2()
|
double |
getThermoAverage3()
|
double |
getThermoAverage4()
|
double |
getThermoAverage5()
|
double |
getThermoAverage6()
|
double |
getThermoAverage7()
|
static java.lang.String |
getThermoAverageName(int ndx)
Gets the temperature field name for the specified index |
static int |
getThermoCount()
Returns the number of defined temperature fields |
double |
getThrottlePos()
Gets the throttle position (percent) |
long |
getTimestamp()
Gets the timestamp of this event in Unix/Epoch time |
java.lang.String |
getTimestampDayOfMonth()
Gets the String representation of the timestamp day-of-month of this event |
static java.lang.String |
getTimestampDayOfMonth(long timestamp,
java.util.TimeZone tz)
Gets the String representation of the timestamp day-of-month of this event |
java.lang.String |
getTimestampDayOfWeek(boolean abbrev,
java.util.Locale locale)
Gets the String representation of the timestamp day-of-week of this event |
static java.lang.String |
getTimestampDayOfWeek(long timestamp,
boolean abbrev,
java.util.TimeZone tz,
java.util.Locale locale)
Gets the String representation of the timestamp day-of-week of this event |
java.lang.String |
getTimestampMonth(boolean abbrev,
java.util.Locale locale)
Gets the String representation of the timestamp month of this event |
static java.lang.String |
getTimestampMonth(long timestamp,
boolean abbrev,
java.util.TimeZone tz,
java.util.Locale locale)
Gets the String representation of the timestamp month of this event |
java.lang.String |
getTimestampMonthNumber()
Gets the String representation of the timestamp month-number (1..12) of this event |
static java.lang.String |
getTimestampMonthNumber(long timestamp,
java.util.TimeZone tz)
Gets the String representation of the timestamp month-number (1..12) of this event |
java.lang.String |
getTimestampString()
Gets the String representation of the timestamp of this event |
java.lang.String |
getTimestampString(BasicPrivateLabel bpl)
Gets the String representation of the timestamp of this event |
static java.lang.String |
getTimestampString(long timestamp,
Account account,
java.util.TimeZone tz,
BasicPrivateLabel bpl)
Gets the String representation of the timestamp of this event |
java.lang.String |
getTimestampTime()
Gets the String representation of the timestamp time-of-day of this event |
static java.lang.String |
getTimestampTime(long timestamp,
Account account,
java.util.TimeZone tz,
BasicPrivateLabel bpl)
Gets the String representation of the timestamp time-of-day of this event |
java.lang.String |
getTimestampYear()
Gets the String representation of the timestamp year of this event |
static java.lang.String |
getTimestampYear(long timestamp,
java.util.TimeZone tz)
Gets the String representation of the timestamp year of this event |
java.util.TimeZone |
getTimeZone()
Gets the TimeZone of this event |
double[] |
getTirePressure_kPa()
Gets an array of tire pressures (kPa) |
double[] |
getTirePressure_psi()
Gets an array of tire pressures (PSI) |
double[] |
getTirePressure_units(Account.PressureUnits pu)
Gets an array of tire pressures in the specified units |
java.lang.String |
getTirePressure()
Gets the tire pressure list as a comma separated String |
double[] |
getTireTemp_C()
Gets an array of tire temperatures (C) |
double[] |
getTireTemp_units(Account.TemperatureUnits tu)
Gets an array of tire temperatures in the specified units |
java.lang.String |
getTireTemp()
Gets the tire temperature list as a comma separated String |
double |
getTransOilTemp()
Gets the transmission oil temperature |
java.lang.String |
getTransportID()
Sets the transport-id for this event. |
long |
getTripBrakeCount()
|
long |
getTripClutchCount()
|
double |
getTripDistanceKM()
|
long |
getTripElapsedSeconds()
|
double |
getTripIdleHours()
|
long |
getTripMaxRpm()
|
double |
getTripMaxSpeedKPH()
|
double |
getTripPtoHours()
|
double |
getTripStartLatitude()
|
double |
getTripStartLongitude()
|
long |
getTripStartTime()
|
long |
getTripStopTime()
|
double |
getTurboPressure()
Gets the turbo pressure (kPa) |
double |
getVBatteryVolts()
Gets the vehicle battery volts |
double |
getVertAccuracy()
|
static java.lang.String |
getWhereClause(long autoIndex)
|
static java.lang.String |
getWhereClause(java.lang.String acctId,
java.lang.String devId,
long timeStart,
long timeEnd,
int[] statCode,
boolean gpsRequired,
java.lang.String andSelect)
|
double |
getWorkDistanceKM()
Gets the work distance tripometer value in kilometers. |
double |
getWorkHours()
Gets the engine work hours |
boolean |
hasAddress()
Returns true if an address has been defined |
boolean |
hasAttachData()
Returns true if this event record has attached data |
boolean |
hasCellLocation()
|
boolean |
hasDriverID()
Returns true if thie event has a defined driver-id |
boolean |
hasDriverMessage()
Returns true if a driver message is defined |
boolean |
hasDriverStatus()
Returns true if this event has a defined driver-status (value >= 0) |
boolean |
hasFaultCode()
Returns true if this event contains a non-blank fault code string |
boolean |
hasGeozone()
Returns true if this EventData record has a previously defined Geozone instance (Note: this EventData record may still have a valid GeozoneID) |
boolean |
hasGeozoneID()
Returns true if this event defines a GeozoneID |
boolean |
hasJobNumber()
Returns true if Job number is defined |
boolean |
hasMalfunctionLamp()
Returns true if the MalfunctionLamp was explicitly set (using "setMalfunctionLam(...)") |
boolean |
hasOdometerOffsetKM()
|
boolean |
hasSpeedLimitKPH()
Returns true if the posted speed limit is defined |
boolean |
hasStateProvince()
|
boolean |
isActualOdometer()
|
boolean |
isAttachType(java.lang.String type)
Returns true if the attachment type matches the specified type |
boolean |
isInputMaskExplicitlySet()
|
boolean |
isOutputMaskExplicitlySet()
|
boolean |
isStartEvent(boolean checkSpeed)
Returns true if this event represents a start event |
boolean |
isStartEvent(int[] ssc,
boolean checkSpeed)
Returns true if this event represents a start event |
boolean |
isStopEvent(boolean checkSpeed)
Returns true if this event represents a stop event |
boolean |
isStopEvent(int[] ssc,
boolean checkSpeed)
Returns true if this event represents a stop event |
boolean |
isStopped()
Gets the vehicle 'stopped' state |
boolean |
isTollRoad()
|
boolean |
isValidGeoPoint()
Returns true if the GeoPoint represented by this event is valid |
static boolean |
isValidTemperature(double t)
Returns true if the specified temperature is valid |
static boolean |
LockTableOnRead()
Returns the global flag for locking the EventData table (preventing inserts/updates) when reading event records. |
static void |
main(java.lang.String[] argv)
|
static DateTime |
parseDate(java.lang.String dateStr,
java.util.TimeZone tz)
|
protected void |
recordDidInsert()
Callback after record has been be inserted into the table |
protected void |
recordDidUpdate()
Callback after record has been be updated in the table |
protected void |
recordWillInsert()
Callback when record is about to be inserted into the table |
protected void |
recordWillUpdate()
Callback when record is about to be updated in the table |
void |
reloadAddress()
Reload all reverse-geocoded address fields |
void |
setAcceleration(double v)
Sets the acceleration (meters-per-second-squared) |
void |
setAccelerometer(Accelerometer xyz)
Gets the accelerometer XYZ-axis values (meters-per-second-squared) |
void |
setAccelerometerXYZ(java.lang.String v)
Sets the accelerometer XYZ-axis values (meters-per-second-squared) String should be in the format "X,Y,Z". |
void |
setAddress(java.lang.String v)
|
void |
setAirFilterPressure(double v)
Sets the air filter pressure (kPa) |
void |
setAirPressure(double v)
Sets the air pressure (kPa) |
void |
setAltitude(double v)
|
void |
setAmbientTemp(double v)
Sets the ambient air temperature (C) |
void |
setAnalog(int ndx,
double v)
Sets the analog value for the specified index |
void |
setAnalog0(double v)
|
void |
setAnalog1(double v)
|
void |
setAnalog2(double v)
|
void |
setAnalog3(double v)
|
void |
setAttachData(byte[] v)
Sets the attachment data |
void |
setAttachment(java.lang.String mimeType,
byte[] data)
Sets the attachment data |
void |
setAttachType(java.lang.String v)
Sets the attachment MIME type (used with "attachData") |
void |
setBarometer(double v)
|
void |
setBatteryLevel(double v)
Sets the current battery level |
void |
setBatteryTemp(double v)
Sets the battery temperature (C) |
void |
setBatteryVolts(double v)
Sets the current battery voltage |
void |
setBrakeGForce(double v)
Sets the brake G-force |
void |
setBrakePos(double v)
Sets the brake position (percent) |
void |
setBrakePressure(double v)
Sets the brake pressure |
void |
setCabinTemp(double v)
Sets the cabin temperature (C) |
void |
setCellAccuracy(double v)
|
void |
setCellGeoPoint(GeoPoint gp)
|
void |
setCellLatitude(double v)
|
void |
setCellLongitude(double v)
|
void |
setCellNeighborInfo0(java.lang.String v)
|
void |
setCellNeighborInfo1(java.lang.String v)
|
void |
setCellNeighborInfo2(java.lang.String v)
|
void |
setCellNeighborInfo3(java.lang.String v)
|
void |
setCellNeighborInfo4(java.lang.String v)
|
void |
setCellNeighborInfo5(java.lang.String v)
|
void |
setCellServingInfo(java.lang.String v)
|
void |
setCellTimingAdvance(int v)
|
void |
setCellTowerID(int v)
|
void |
setCity(java.lang.String v)
|
void |
setCoolantLevel(double v)
Sets the coolant level (percent) |
void |
setCoolantTemp(double v)
Sets the coolant temperature (C) |
void |
setCostCenter(long v)
Sets the cost center |
void |
setCountry(java.lang.String v)
|
void |
setCreationDefaultValues()
Called at new record creation time to initialize default values |
void |
setDataPush(boolean v)
Sets the data-push flag |
void |
setDataSource(java.lang.String v)
Sets the data source for this event. |
void |
setDayDistanceKM(double v)
|
void |
setDayEngineStarts(int v)
|
void |
setDayFuelIdle(double v)
|
void |
setDayFuelPTO(double v)
|
void |
setDayFuelTotal(double v)
|
void |
setDayFuelWork(double v)
|
void |
setDayIdleHours(double v)
|
void |
setDayWorkHours(double v)
|
void |
setDistanceKM(double v)
Sets the distance/trip odometer value in kilometers. |
void |
setDoorStateMask(long v)
|
void |
setDriverID(java.lang.String v)
Sets the driver id |
void |
setDriverMessage(java.lang.String v)
Sets the driver message |
void |
setDriverStatus(long v)
Sets the driver status |
void |
setEmailRecipient(java.lang.String v)
Sets the email recipient |
void |
setEngineHours(double v)
Sets the engine hours |
void |
setEngineLoad(double v)
Sets the engine load (percent) |
void |
setEngineOnHours(double v)
Sets the engine hours since last engine on |
void |
setEngineRpm(long v)
Sets the engine RPM |
void |
setEngineTemp(double v)
Sets the engine temperature (C) |
void |
setEngineTorque(double v)
Sets the engine torque |
void |
setEntityID(java.lang.String v)
|
void |
setEntityType(EntityManager.EntityType v)
Sets the Entity type |
void |
setEntityType(int v)
Sets the Entity type |
void |
setEntityType(java.lang.String v,
java.util.Locale locale)
Sets the Entity type |
void |
setEtaDistanceKM(double v)
Sets the ETA distance in kilometers |
void |
setEtaGeoPoint(GeoPoint gp)
Sets the ETA GeoPoint |
void |
setEtaLatitude(double v)
Sets the ETA Latitude |
void |
setEtaLongitude(double v)
Sets the ETA Longitude |
void |
setEtaTimestamp(long v)
Sets the ETA timestamp in Unix/Epoch time |
void |
setEtaUniqueID(long v)
Sets the ETA unique-id |
void |
setEventIndex(int ndx)
Sets the Event index (used for reporting) |
void |
setFaultCode_OBDII(java.lang.String[] dtc)
Sets the OBDII fault codes |
void |
setFaultCode(java.lang.String v)
Sets the fault code string IE. |
void |
setFuelEconomy(double v)
Sets the instantaneous fuel economy |
void |
setFuelEngineOn(double v)
Sets the fuel used since last engine-on |
void |
setFuelIdle(double v)
Sets the idle fuel used |
void |
setFuelLevel(double v)
Sets the fuel level |
void |
setFuelLevel2(double v)
Sets the fuel level in the alternate/second tank |
void |
setFuelPressure(double v)
Sets the fuel pressure |
void |
setFuelPTO(double v)
Sets the PTO fuel used |
void |
setFuelRemain(double v)
Sets the fuel remaining in the tank (in Litres) |
void |
setFuelTemp(double v)
Sets the fuel temperature |
void |
setFuelTotal(double v)
Sets the total fuel used |
void |
setFuelTrip(double v)
Sets the trip fuel used |
void |
setFuelUsage(double v)
Sets the fuel usage (rate of use) in Litres/Hour |
void |
setGeoPoint(double lat,
double lng)
Sets the latitude/longitude for this event |
void |
setGeoPoint(GeoPoint gp)
Sets the latitude/longitude for this event instance |
void |
setGeozone(Geozone zone)
Sets the Geozone, and GeozoneID |
void |
setGeozoneID(java.lang.String v)
Sets the GeozoneID |
void |
setGeozoneIndex(long v)
Sets the Geozone index provided by the device |
void |
setGpsAge(long v)
|
void |
setGpsFixStatus(long v)
|
void |
setGpsFixType(EventData.GPSFixType v)
Sets the GPS fix type |
void |
setGpsFixType(int v)
Sets the GPS fix type |
void |
setGpsFixType(java.lang.String v,
java.util.Locale locale)
Sets the GPS fix type |
void |
setHDOP(double v)
|
void |
setHeading(double v)
|
void |
setHorzAccuracy(double v)
|
void |
setIdleHours(double v)
Sets the engine idle hours |
void |
setImpactData(java.lang.String v)
Sets the impact data |
void |
setImpactDataIndex(int v)
Sets the impact data index |
void |
setImpactDataPeriod(int v)
Sets the impact data period. |
void |
setImpactDataStatus(int v)
Sets the impact data status |
void |
setImpactDataType(java.lang.String v)
Sets the impact data type |
void |
setInputMask(long v)
|
void |
setIntakeTemp(double v)
Sets the intake temperature (C) |
void |
setIsLastEvent(boolean isLast)
Sets the last event state for this event |
void |
setIsTollRoad(boolean v)
|
void |
setJ1708Fault(long v)
Sets the OBD(DTC)/J1708 fault code (encoded) |
void |
setJobNumber(java.lang.String v)
Sets the job number |
void |
setLatitude(double v)
Sets the latitude for this event |
void |
setLeaseAllowedDistKM(double v)
Sets the allowed distance over the term of the lease |
void |
setLeaseContractID(java.lang.String v)
Sets the lease contract id/number |
void |
setLeaseEndDate(DayNumber dn)
Sets the lease ending day number |
void |
setLeaseEndDate(int year,
int month,
int day)
Sets the lease ending date |
void |
setLeaseEndDate(long v)
Sets the lease ending day number |
void |
setLeaseStartDate(DayNumber dn)
Sets the lease starting day number |
void |
setLeaseStartDate(int year,
int month,
int day)
Sets the lease starting date |
void |
setLeaseStartDate(long v)
Sets the lease starting day number |
void |
setLeaseStartOdomKM(double v)
Sets the starting odometer at the beginning of the lease |
void |
setLightsStateMask(long v)
|
void |
setLocationAreaCode(int v)
|
void |
setLongitude(double v)
Sets the longitude for this event |
void |
setMalfunctionLamp(boolean v)
Sets the Malfunction-Indicator-Lamp state |
void |
setMassAirFlowRate(double v)
Sets the mass air flow rate (g/sec) |
void |
setMessageID(long v)
Sets the MESSAGE id |
void |
setMessageStatus(int v)
Sets the MESSAGE Status |
void |
setMessageTimestamp(long v)
Sets the MESSAGE time |
void |
setMobileCountryCode(int v)
|
void |
setMobileNetworkCode(int v)
|
void |
setNeighborCellTower(int ndx,
org.opengts.cellid.CellTower cti)
|
void |
setNeighborCellTowers(org.opengts.cellid.CellTower[] nct)
|
void |
setNeighborCellTowers(java.util.List<org.opengts.cellid.CellTower> nct)
|
void |
setOBDFault(long v)
Sets the OBD(DTC)/J1708 fault code (encoded) |
void |
setOdometerKM(double v)
|
void |
setOdometerKM(double v,
boolean actualOdom)
|
void |
setOdometerOffsetKM(double v)
|
void |
setOilCoolerInTemp(double v)
Sets the oil cooler inlet temperature |
void |
setOilCoolerOutTemp(double v)
Sets the oil cooler outlet temperature |
void |
setOilLevel(double v)
Sets the oil level (percent) |
void |
setOilPressure(double v)
Sets the oil pressure |
void |
setOilTemp(double v)
Sets the oil temperature (C) |
void |
setOutputMask(long v)
|
void |
setPostalCode(java.lang.String v)
|
void |
setPreviousEventData(EventData ev)
Sets the previous EventData record |
void |
setPriority(int v)
Sets the event priority |
void |
setPtoDistanceKM(double v)
Sets the PTO distance tripometer value in kilometers. |
void |
setPtoEngaged(boolean v)
Sets the PTO engaged state |
void |
setPtoHours(double v)
Sets the PTO hours |
void |
setPulseCount(double v)
|
void |
setPushpinIconIndex(int epii)
Sets the explicit Pushpin Icon Index |
void |
setPushpinIconIndex(java.lang.String iconName,
OrderedSet<java.lang.String> iconKeys)
Sets the explicit Pushpin Icon Index |
void |
setPushpinIconIndexProvider(PushpinIconIndexProvider piip)
Sets the Pushpin Icon Index Provider |
void |
setRawData(java.lang.String v)
Sets the Raw Packet data for this event (if available) |
void |
setReportDistanceKM(double km,
GeoPoint gp)
Sets the report distance and location (kilometers) |
void |
setRfidTag(java.lang.String v)
Sets the stored RFID tag |
void |
setSampleID(java.lang.String v)
Sets the sample ID |
void |
setSampleIndex(int v)
Sets the sample index |
void |
setSatelliteCount(int v)
Sets the Satellite count |
void |
setSeatbeltMask(long v)
|
void |
setSensorHigh(long v)
Sets the high sensor value |
void |
setSensorLow(long v)
Sets the low sensor value |
void |
setSequence(int v)
Sets the Satellite count |
void |
setServingCellTower(org.opengts.cellid.CellTower cti)
|
void |
setSignalStrength(double v)
Sets the current signal strength |
void |
setSpeedKPH(double v)
|
void |
setSpeedLimitKPH(double v)
Sets the posted speed limit (typically obtained from the reverse-geocoding service) |
void |
setStateProvince(java.lang.String v)
|
void |
setStatusCode(int v)
Sets the status code of this event |
void |
setStopID(long v)
Sets the STOP id |
void |
setStopIndex(int v)
Sets the STOP Index |
void |
setStopped(boolean stopped)
Sets the vehicle 'stopped' state |
void |
setStopStatus(int v)
Sets the STOP Status |
void |
setStreetAddress(java.lang.String v)
|
void |
setSubdivision(java.lang.String v)
|
void |
setSynthesizedEvent(boolean isSynthesized)
Sets the synthesized event state (ie. |
void |
setTankLevel(double v)
Sets the general tank level |
void |
setThermoAverage(int ndx,
double v)
|
void |
setThermoAverage0(double v)
|
void |
setThermoAverage1(double v)
|
void |
setThermoAverage2(double v)
|
void |
setThermoAverage3(double v)
|
void |
setThermoAverage4(double v)
|
void |
setThermoAverage5(double v)
|
void |
setThermoAverage6(double v)
|
void |
setThermoAverage7(double v)
|
void |
setThrottlePos(double v)
Sets the throttle position (percent) |
void |
setTimestamp(long v)
Sets the timestamp of this event in Unix/Epoch time |
void |
setTirePressure_kPa(double[] v)
Sets an array of tire pressures (kPa) |
void |
setTirePressure_psi(double[] v)
Sets an array of tire pressures (PSI) |
void |
setTirePressure(java.lang.String v)
Sets the tire pressure list as a comma separated String |
void |
setTireTemp_C(double[] v)
Sets an array of tire temperatures (C) |
void |
setTireTemp(java.lang.String v)
Sets the tire temperature list as a comma separated String |
void |
setTransOilTemp(double v)
Sets the transmission oil temperature |
void |
setTransportID(java.lang.String v)
Sets the transport-id for this event. |
void |
setTripBrakeCount(long v)
|
void |
setTripClutchCount(long v)
|
void |
setTripDistanceKM(double v)
|
void |
setTripElapsedSeconds(long v)
|
void |
setTripIdleHours(double v)
|
void |
setTripMaxRpm(long v)
|
void |
setTripMaxSpeedKPH(double v)
|
void |
setTripPtoHours(double v)
|
void |
setTripStartLatitude(double v)
|
void |
setTripStartLongitude(double v)
|
void |
setTripStartTime(long v)
|
void |
setTripStopTime(long v)
|
void |
setTurboPressure(double v)
Sets the turbo pressure (kPa) |
void |
setVBatteryVolts(double v)
Sets the vehicle battery volts |
void |
setVertAccuracy(double v)
|
void |
setWorkDistanceKM(double v)
Sets the work distance tripometer value in kilometers. |
void |
setWorkHours(double v)
Sets the engine work hours |
boolean |
showLastEventDevicePushpin(boolean isFleet,
BasicPrivateLabel bpl)
Returns true if the Device pushpin should be shown for the last event |
static boolean |
supportsFaultCode()
Returns true if the fault code string is supported |
static java.lang.String |
TABLE_NAME()
|
java.util.Set<java.lang.String> |
updateAddress(boolean fastOnly)
|
java.util.Set<java.lang.String> |
updateAddress(boolean fastOnly,
boolean force)
|
java.util.Set<java.lang.String> |
updateAddress(boolean fastOnly,
boolean force,
Account.GeocoderMode rgMode)
|
java.util.Set<java.lang.String> |
updateCellTowerLocation()
|
Methods inherited from class org.opengts.db.DeviceRecord |
---|
getDevice, getDeviceDescription, getDeviceID, getDeviceVIN, hasDevice, newField_deviceID, newField_deviceID, newField_deviceID, newField_deviceID, setDevice, setDeviceID |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengts.db.EventDataProvider |
---|
getAccountID, getDeviceDescription, getDeviceID, getDeviceVIN |
Field Detail |
---|
public static final boolean DFT_allowInnoDBCountWithWhere
public static final java.lang.String OPTCOLS_AddressFieldInfo
public static final java.lang.String OPTCOLS_GPSFieldInfo
public static final java.lang.String OPTCOLS_CustomFieldInfo
public static final java.lang.String OPTCOLS_GarminFieldInfo
public static final java.lang.String OPTCOLS_CANBUSFieldInfo
public static final java.lang.String OPTCOLS_AtmosphereFieldInfo
public static final java.lang.String OPTCOLS_ThermoFieldInfo
public static final java.lang.String OPTCOLS_AnalogFieldInfo
public static final java.lang.String OPTCOLS_AutoIncrementIndex
public static final java.lang.String OPTCOLS_TripSummary
public static final java.lang.String OPTCOLS_EndOfDaySummary
public static final java.lang.String OPTCOLS_ServingCellTowerData
public static final java.lang.String OPTCOLS_NeighborCellTowerData
public static final java.lang.String OPTCOLS_WorkZoneGridData
public static final java.lang.String OPTCOLS_LeaseRentalData
public static final java.lang.String OPTCOLS_ImpactData
public static final java.lang.String OPTCOLS_CreationTimeMillisecond
public static final double INVALID_TEMPERATURE
public static final double TEMPERATURE_LIMIT_LO
public static final double TEMPERATURE_LIMIT_HI
public static final int ICON_PUSHPIN_BLACK
public static final int ICON_PUSHPIN_BROWN
public static final int ICON_PUSHPIN_RED
public static final int ICON_PUSHPIN_ORANGE
public static final int ICON_PUSHPIN_YELLOW
public static final int ICON_PUSHPIN_GREEN
public static final int ICON_PUSHPIN_BLUE
public static final int ICON_PUSHPIN_PURPLE
public static final int ICON_PUSHPIN_GRAY
public static final int ICON_PUSHPIN_WHITE
public static final long SEATBELT_DRIVER
public static final long SEATBELT_PASSENGER
public static final long SEATBELT_REAR_LEFT
public static final long SEATBELT_REAR_RIGHT
public static final long DOOR_DRIVER
public static final long DOOR_PASSENGER
public static final long DOOR_REAR_LEFT
public static final long DOOR_REAR_RIGHT
public static final long DOOR_HOOD_BONNET
public static final long DOOR_TRUNK_BOOT
public static final long LIGHTS_RUNNING
public static final long LIGHTS_LOW_BEAM
public static final long LIGHTS_HIGH_BEAM
public static final long LIGHTS_FRONT_FOG
public static final long LIGHTS_REAR_FOG
public static final long LIGHTS_HAZARD
public static final EventData[] EMPTY_ARRAY
public static int AddressColumnLength
public static int StreetColumnLength
public static int CityColumnLength
public static int StateColumnLength
public static int PostalColumnLength
public static final java.lang.String ALTKEY_eq_pushkey
public static final boolean DFT_lockTableOnRead
public static final java.lang.String _TABLE_NAME
public static final java.lang.String PFLD_deviceDesc
public static final java.lang.String PFLD_Account_
public static final java.lang.String PFLD_Device_
public static final java.lang.String FLD_timestamp
public static final java.lang.String FLD_statusCode
public static final java.lang.String FLD_latitude
public static final java.lang.String FLD_longitude
public static final java.lang.String FLD_gpsAge
public static final java.lang.String FLD_speedKPH
public static final java.lang.String FLD_heading
public static final java.lang.String FLD_altitude
public static final java.lang.String FLD_transportID
public static final java.lang.String FLD_inputMask
public static final java.lang.String FLD_outputMask
public static final java.lang.String FLD_address
public static final java.lang.String FLD_dataSource
public static final java.lang.String FLD_rawData
public static final java.lang.String FLD_distanceKM
public static final java.lang.String FLD_odometerKM
public static final java.lang.String FLD_odometerOffsetKM
public static final java.lang.String FLD_geozoneIndex
public static final java.lang.String FLD_geozoneID
public static final java.lang.String FLD_streetAddress
public static final java.lang.String FLD_city
public static final java.lang.String FLD_stateProvince
public static final java.lang.String FLD_postalCode
public static final java.lang.String FLD_country
public static final java.lang.String FLD_subdivision
public static final java.lang.String FLD_speedLimitKPH
public static final java.lang.String FLD_isTollRoad
public static final DBField[] AddressFieldInfo
public static final java.lang.String FLD_gpsFixType
public static final java.lang.String FLD_gpsFixStatus
public static final java.lang.String FLD_horzAccuracy
public static final java.lang.String FLD_vertAccuracy
public static final java.lang.String FLD_HDOP
public static final java.lang.String FLD_satelliteCount
public static final java.lang.String FLD_batteryLevel
public static final java.lang.String FLD_batteryVolts
public static final java.lang.String FLD_batteryTemp
public static final java.lang.String FLD_signalStrength
public static final java.lang.String FLD_sequence
public static final DBField[] GPSFieldInfo
public static final java.lang.String FLD_priority
public static final java.lang.String FLD_entityID
public static final java.lang.String FLD_entityType
public static final java.lang.String FLD_driverID
public static final java.lang.String FLD_driverStatus
public static final java.lang.String FLD_driverMessage
public static final java.lang.String FLD_driverMessageACK
public static final java.lang.String FLD_emailRecipient
public static final java.lang.String FLD_sensorLow
public static final java.lang.String FLD_sensorHigh
public static final java.lang.String FLD_costCenter
public static final java.lang.String FLD_jobNumber
public static final java.lang.String FLD_rfidTag
public static final java.lang.String FLD_attachType
public static final java.lang.String FLD_attachData
public static final DBField[] CustomFieldInfo
public static final java.lang.String FLD_fuelTotal
public static final java.lang.String FLD_engineRpm
public static final java.lang.String FLD_engineHours
public static final java.lang.String FLD_engineOnHours
public static final java.lang.String FLD_engineLoad
public static final java.lang.String FLD_engineTorque
public static final java.lang.String FLD_idleHours
public static final java.lang.String FLD_workHours
public static final java.lang.String FLD_workDistanceKM
public static final java.lang.String FLD_transOilTemp
public static final java.lang.String FLD_oilCoolerInTemp
public static final java.lang.String FLD_oilCoolerOutTemp
public static final java.lang.String FLD_coolantLevel
public static final java.lang.String FLD_coolantTemp
public static final java.lang.String FLD_engineTemp
public static final java.lang.String FLD_intakeTemp
public static final java.lang.String FLD_brakeGForce
public static final java.lang.String FLD_acceleration
public static final java.lang.String FLD_accelerometerXYZ
public static final java.lang.String FLD_oilPressure
public static final java.lang.String FLD_oilLevel
public static final java.lang.String FLD_oilTemp
public static final java.lang.String FLD_airPressure
public static final java.lang.String FLD_airFilterPressure
public static final java.lang.String FLD_turboPressure
public static final java.lang.String FLD_ptoEngaged
public static final java.lang.String FLD_ptoHours
public static final java.lang.String FLD_ptoDistanceKM
public static final java.lang.String FLD_throttlePos
public static final java.lang.String FLD_brakePos
public static final java.lang.String FLD_j1708Fault
public static final java.lang.String FLD_faultCode
public static final java.lang.String FLD_malfunctionLamp
public static final java.lang.String FLD_fuelLevel
public static final java.lang.String FLD_fuelLevel2
public static final java.lang.String FLD_fuelRemain
public static final java.lang.String FLD_fuelTrip
public static final java.lang.String FLD_fuelIdle
public static final java.lang.String FLD_fuelPTO
public static final java.lang.String FLD_fuelEngineOn
public static final java.lang.String FLD_vBatteryVolts
public static final java.lang.String FLD_fuelPressure
public static final java.lang.String FLD_fuelUsage
public static final java.lang.String FLD_fuelTemp
public static final java.lang.String FLD_fuelEconomy
public static final java.lang.String FLD_brakePressure
public static final java.lang.String FLD_massAirFlowRate
public static final java.lang.String FLD_tirePressure
public static final java.lang.String FLD_tireTemp
public static final java.lang.String FLD_tankLevel
public static final java.lang.String FLD_seatbeltMask
public static final java.lang.String FLD_doorStateMask
public static final java.lang.String FLD_lightsStateMask
public static final DBField[] CANBUSFieldInfo
public static final java.lang.String FLD_etaTimestamp
public static final java.lang.String FLD_etaUniqueID
public static final java.lang.String FLD_etaDistanceKM
public static final java.lang.String FLD_etaLatitude
public static final java.lang.String FLD_etaLongitude
public static final java.lang.String FLD_stopID
public static final java.lang.String FLD_stopStatus
public static final java.lang.String FLD_stopIndex
public static final java.lang.String FLD_messageTimestamp
public static final java.lang.String FLD_messageID
public static final java.lang.String FLD_messageStatus
public static final DBField[] GarminFieldInfo
public static final java.lang.String FLD_barometer
public static final java.lang.String FLD_ambientTemp
public static final java.lang.String FLD_cabinTemp
public static final DBField[] AtmosphereFieldInfo
public static final java.lang.String FLD_thermoAverage0
public static final java.lang.String FLD_thermoAverage1
public static final java.lang.String FLD_thermoAverage2
public static final java.lang.String FLD_thermoAverage3
public static final java.lang.String FLD_thermoAverage4
public static final java.lang.String FLD_thermoAverage5
public static final java.lang.String FLD_thermoAverage6
public static final java.lang.String FLD_thermoAverage7
public static final DBField[] ThermoFieldInfo
public static final java.lang.String FLD_analog0
public static final java.lang.String FLD_analog1
public static final java.lang.String FLD_analog2
public static final java.lang.String FLD_analog3
public static final java.lang.String FLD_pulseCount
public static final DBField[] AnalogFieldInfo
public static final java.lang.String FLD_cellTowerID
public static final java.lang.String FLD_mobileCountryCode
public static final java.lang.String FLD_mobileNetworkCode
public static final java.lang.String FLD_cellTimingAdvance
public static final java.lang.String FLD_locationAreaCode
public static final java.lang.String FLD_cellServingInfo
public static final java.lang.String FLD_cellLatitude
public static final java.lang.String FLD_cellLongitude
public static final java.lang.String FLD_cellAccuracy
public static final DBField[] ServingCellTowerData
public static final java.lang.String FLD_cellNeighborInfo0
public static final java.lang.String FLD_cellNeighborInfo1
public static final java.lang.String FLD_cellNeighborInfo2
public static final java.lang.String FLD_cellNeighborInfo3
public static final java.lang.String FLD_cellNeighborInfo4
public static final java.lang.String FLD_cellNeighborInfo5
public static final DBField[] NeighborCellTowerData
public static final java.lang.String FLD_impactDataPeriod
public static final java.lang.String FLD_impactDataStatus
public static final java.lang.String FLD_impactDataIndex
public static final java.lang.String FLD_impactDataType
public static final java.lang.String FLD_impactData
public static final DBField[] ImpactData
public static final java.lang.String FLD_leaseStartDate
public static final java.lang.String FLD_leaseEndDate
public static final java.lang.String FLD_leaseStartOdomKM
public static final java.lang.String FLD_leaseAllowedDistKM
public static final java.lang.String FLD_leaseContractID
public static final DBField[] LeaseRentalData
public static final java.lang.String FLD_tripStartTime
public static final java.lang.String FLD_tripStopTime
public static final java.lang.String FLD_tripDistanceKM
public static final java.lang.String FLD_tripIdleHours
public static final java.lang.String FLD_tripPtoHours
public static final java.lang.String FLD_tripMaxSpeedKPH
public static final java.lang.String FLD_tripMaxRpm
public static final java.lang.String FLD_tripStartLatitude
public static final java.lang.String FLD_tripStartLongitude
public static final java.lang.String FLD_tripElapsedSeconds
public static final java.lang.String FLD_tripBrakeCount
public static final java.lang.String FLD_tripClutchCount
public static final DBField[] TripSummary
public static final java.lang.String FLD_dayEngineStarts
public static final java.lang.String FLD_dayIdleHours
public static final java.lang.String FLD_dayFuelIdle
public static final java.lang.String FLD_dayWorkHours
public static final java.lang.String FLD_dayFuelWork
public static final java.lang.String FLD_dayFuelPTO
public static final java.lang.String FLD_dayDistanceKM
public static final java.lang.String FLD_dayFuelTotal
public static final DBField[] EndOfDaySummary
public static final java.lang.String FLD_dataPush
public static final DBField[] CreationTimeMillisecond
public static final java.lang.String FLD_sampleIndex
public static final java.lang.String FLD_sampleID
public static final DBField[] WorkZoneGridData
public static final java.lang.String FLD_autoIndex
public static final DBField[] AutoIncrementIndex
public static final java.lang.String[] DEBUG_PUSHPINS
public static final java.lang.String PPNAME_last
public static final java.lang.String PPNAME_fleet
public static final java.lang.String PPNAME_heading
public static final java.lang.String PPNAME_stop
public static final java.lang.String PPNAME_moving
public static final java.lang.String PPNAME_all
public static final java.lang.String PPNAME_statusCode
public static final java.lang.String[] KEY_ACCOUNT
public static final java.lang.String[] KEY_DEVICE_COUNT
public static final java.lang.String[] KEY_DEVICE
public static final java.lang.String[] KEY_EVENT_COUNT24
public static final java.lang.String[] KEY_DEVICE_LINK
public static final java.lang.String[] KEY_DEV_CONN_AGE
public static final java.lang.String[] KEY_DEV_TRAILERS
public static final java.lang.String[] KEY_DATETIME
public static final java.lang.String[] KEY_DATE_YEAR
public static final java.lang.String[] KEY_DATE_MONTH
public static final java.lang.String[] KEY_DATE_DAY
public static final java.lang.String[] KEY_DATE_DOW
public static final java.lang.String[] KEY_TIMEZONE
public static final java.lang.String[] KEY_TIME
public static final java.lang.String[] KEY_CREATE_DATETIME
public static final java.lang.String[] KEY_CREATE_AGE
public static final java.lang.String[] KEY_FAULT_CODE
public static final java.lang.String[] KEY_FAULT_CODES
public static final java.lang.String[] KEY_FAULT_HEADER
public static final java.lang.String[] KEY_FAULT_DESC
public static final java.lang.String[] KEY_DRIVERID
public static final java.lang.String[] KEY_DRIVER_DESC
public static final java.lang.String[] KEY_DRIVER_BADGE
public static final java.lang.String[] KEY_DRIVER_LICENSE
public static final java.lang.String[] KEY_DRIVER_PHONE
Constructor Detail |
---|
public EventData()
public EventData(EventData.Key key)
Method Detail |
---|
public static int _getPushpinIconIndex(java.lang.String val, OrderedSet<java.lang.String> iconKeys, int dft)
public static EventData.GPSFixType getGPSFixType(EventData e)
public static java.lang.String GetSeatbeltMaskDescription(long m, java.util.Locale locale)
public static java.lang.String GetDoorMaskDescription(long m, java.util.Locale locale)
public static java.lang.String GetLightsMaskDescription(long m, java.util.Locale locale)
public static boolean LockTableOnRead()
public static java.lang.String TABLE_NAME()
public static DBFactory<EventData> getFactory()
public static EventData copySynthesizedEvent(EventData evdb, int sc)
public static EventData copySynthesizedEvent(EventData evdb, int sc, long ts)
public static java.lang.String getTableDescription(java.util.Locale loc)
public long getTimestamp()
getTimestamp
in interface EventDataProvider
public void setTimestamp(long v)
v
- The timestamp of this eventpublic java.util.TimeZone getTimeZone()
public static java.lang.String getTimestampString(long timestamp, Account account, java.util.TimeZone tz, BasicPrivateLabel bpl)
timestamp
- The timestampaccount
- The accounttz
- The TimeZonebpl
- The BasicPrivateLabel instance
public static java.lang.String getTimestampTime(long timestamp, Account account, java.util.TimeZone tz, BasicPrivateLabel bpl)
timestamp
- The timestampaccount
- The accounttz
- The TimeZonebpl
- The BasicPrivateLabel instance
public static java.lang.String getTimestampYear(long timestamp, java.util.TimeZone tz)
timestamp
- The timestamptz
- The TimeZone
public static java.lang.String getTimestampMonthNumber(long timestamp, java.util.TimeZone tz)
timestamp
- The timestamptz
- The TimeZone
public static java.lang.String getTimestampMonth(long timestamp, boolean abbrev, java.util.TimeZone tz, java.util.Locale locale)
timestamp
- The timestampabbrev
- True to return the month abbreviation, false to return the full month nametz
- The TimeZonelocale
- The locale
public static java.lang.String getTimestampDayOfMonth(long timestamp, java.util.TimeZone tz)
timestamp
- The timestamptz
- The TimeZone
public static java.lang.String getTimestampDayOfWeek(long timestamp, boolean abbrev, java.util.TimeZone tz, java.util.Locale locale)
timestamp
- The timestampabbrev
- True to return the day abbreviation, false to return the full day nametz
- The TimeZonelocale
- The locale
public java.lang.String getTimestampString(BasicPrivateLabel bpl)
bpl
- The BasicPrivateLabel instance
public java.lang.String getTimestampString()
public java.lang.String getTimestampTime()
public java.lang.String getTimestampYear()
public java.lang.String getTimestampMonth(boolean abbrev, java.util.Locale locale)
abbrev
- True to return the month abbreviation, false to return the full month namelocale
- The locale
public java.lang.String getTimestampMonthNumber()
public java.lang.String getTimestampDayOfMonth()
public java.lang.String getTimestampDayOfWeek(boolean abbrev, java.util.Locale locale)
abbrev
- True to return the day abbreviation, false to return the full day namelocale
- The locale
public java.lang.String getCreationTimeString()
public long getCreationAge()
getCreationAge
in interface EventDataProvider
public int getStatusCode()
getStatusCode
in interface EventDataProvider
public StatusCodeProvider getStatusCodeProvider(BasicPrivateLabel bpl)
getStatusCodeProvider
in interface EventDataProvider
public java.lang.String getStatusCodeForegroundColor(BasicPrivateLabel bpl)
public java.lang.String getStatusCodeBackgroundColor(BasicPrivateLabel bpl)
public java.lang.String getStatusCodeHex()
public java.lang.String getStatusCodeDescription(BasicPrivateLabel bpl)
getStatusCodeDescription
in interface EventDataProvider
public java.lang.String getStatusCodeIconSelector(BasicPrivateLabel bpl)
public java.lang.String getStatusCodeIconName(BasicPrivateLabel bpl)
bpl
- The domain BasicPrivateLabel
public void setStatusCode(int v)
v
- The status code of this eventpublic java.lang.String getDataSource()
public void setDataSource(java.lang.String v)
v
- The data sourcepublic java.lang.String getTransportID()
public void setTransportID(java.lang.String v)
v
- The transport-id used to identify this device.public java.lang.String getRawData()
public void setRawData(java.lang.String v)
v
- The Raw Packet data for this eventpublic double getBestLatitude()
public double getBestLongitude()
public GeoPoint getBestGeoPoint()
getBestGeoPoint
in interface EventDataProvider
public double getBestAccuracy()
getBestAccuracy
in interface EventDataProvider
public GeoPoint getGeoPoint()
getGeoPoint
in interface EventDataProvider
getGeoPoint
in interface GeoPointProvider
public void setGeoPoint(double lat, double lng)
lat
- The latitudelng
- The longitudepublic void setGeoPoint(GeoPoint gp)
gp
- The latitude/longitudepublic boolean isValidGeoPoint()
isValidGeoPoint
in interface EventDataProvider
public double getLatitude()
getLatitude
in interface EventDataProvider
public void setLatitude(double v)
v
- The latitude for this eventpublic double getLongitude()
getLongitude
in interface EventDataProvider
public void setLongitude(double v)
v
- The longitude for this eventpublic long getGpsAge()
getGpsAge
in interface EventDataProvider
public void setGpsAge(long v)
public double getSpeedKPH()
getSpeedKPH
in interface EventDataProvider
public void setSpeedKPH(double v)
public double getSpeedMPH()
public double getHeading()
getHeading
in interface EventDataProvider
public void setHeading(double v)
public double getAltitude()
getAltitude
in interface EventDataProvider
public java.lang.String getAltitudeString(boolean inclUnits, java.util.Locale locale)
public void setAltitude(double v)
public double getOdometerKM()
getOdometerKM
in interface EventDataProvider
public void setOdometerKM(double v)
public void setOdometerKM(double v, boolean actualOdom)
public boolean isActualOdometer()
public boolean hasOdometerOffsetKM()
public double getOdometerOffsetKM()
public void setOdometerOffsetKM(double v)
public double getOdometerOffsetKM(EventData.OdometerOffsetType offsType)
public double getOdometerWithOffsetKM()
public double getDistanceKM()
public void setDistanceKM(double v)
v
- The distance/trip odometer value in kilometers.public long getGeozoneIndex()
public void setGeozoneIndex(long v)
v
- The Geozone indexpublic boolean hasGeozoneID()
public java.lang.String getGeozoneID()
getGeozoneID
in interface EventDataProvider
public void setGeozoneID(java.lang.String v)
v
- The GeozoneIDpublic void setGeozone(Geozone zone)
zone
- The Geozone instancepublic boolean hasGeozone()
public Geozone getGeozone()
public java.lang.String getGeozoneDescription()
public java.lang.String getGeozoneDisplayName()
public int getPriority()
public void setPriority(int v)
v
- The event prioritypublic java.lang.String getEntityID()
public void setEntityID(java.lang.String v)
public java.lang.String[] getEntityIDList(java.lang.String altID)
public EntityManager.EntityType _getEntityType(EntityManager.EntityType dft)
dft
- The default EntityType if unable to determine the actual type
public int getEntityType()
public void setEntityType(int v)
v
- The Entity typepublic void setEntityType(EntityManager.EntityType v)
v
- The Entity typepublic void setEntityType(java.lang.String v, java.util.Locale locale)
v
- The Entity typepublic java.lang.String getEntityTypeDescription(java.util.Locale loc)
loc
- The Locale for which the text is returned.public int getGpsFixType()
public void setGpsFixType(int v)
v
- The GPS fix typepublic void setGpsFixType(EventData.GPSFixType v)
v
- The GPS fix typepublic void setGpsFixType(java.lang.String v, java.util.Locale locale)
v
- The GPS fix typepublic java.lang.String getGpsFixTypeDescription(java.util.Locale loc)
loc
- The Locale for which the text is returned.public long getGpsFixStatus()
public void setGpsFixStatus(long v)
public double getHorzAccuracy()
getHorzAccuracy
in interface EventDataProvider
public void setHorzAccuracy(double v)
public double getVertAccuracy()
public void setVertAccuracy(double v)
public double getHDOP()
public void setHDOP(double v)
public int getSatelliteCount()
getSatelliteCount
in interface EventDataProvider
public void setSatelliteCount(int v)
v
- The Satellite countpublic double getBatteryLevel()
getBatteryLevel
in interface EventDataProvider
public void setBatteryLevel(double v)
v
- The current battery levelpublic double getBatteryVolts()
public void setBatteryVolts(double v)
v
- The current battery voltagepublic double getBatteryTemp()
public void setBatteryTemp(double v)
v
- The battery temperature (C)public double getSignalStrength()
public void setSignalStrength(double v)
v
- The current signal strengthpublic int getSequence()
public void setSequence(int v)
v
- The Satellite countpublic boolean hasAddress()
public java.lang.String getAddress()
getAddress
in interface EventDataProvider
public java.lang.String getAddress(boolean lazyUpdate)
public void setAddress(java.lang.String v)
public void reloadAddress()
public java.util.Set<java.lang.String> updateAddress(boolean fastOnly) throws SlowOperationException
SlowOperationException
public java.util.Set<java.lang.String> updateAddress(boolean fastOnly, boolean force) throws SlowOperationException
SlowOperationException
public java.util.Set<java.lang.String> updateAddress(boolean fastOnly, boolean force, Account.GeocoderMode rgMode) throws SlowOperationException
SlowOperationException
public ReverseGeocode getReverseGeocode(java.lang.String name, boolean fastOnly) throws SlowOperationException
name
- The name of the ReverseGeocodeProvider. Must be available in the
BasicPrivateLabel assigned to the Account.fastOnly
- True to require that ReverseGeocodeProvider must be a fast operation.
SlowOperationException will be thrown if "fastOnly" is true, and the
specified ReverseGeocodeProvider is a slow operation.
SlowOperationException
- if "fastOnly" is true, and the this reverse-geocode
process is a slow operation.public java.lang.String getStreetAddress()
public void setStreetAddress(java.lang.String v)
public java.lang.String getCity()
public void setCity(java.lang.String v)
public boolean hasStateProvince()
public java.lang.String getStateProvince()
public void setStateProvince(java.lang.String v)
public java.lang.String getPostalCode()
public void setPostalCode(java.lang.String v)
public java.lang.String getCountry()
public void setCountry(java.lang.String v)
public java.lang.String getSubdivision()
public void setSubdivision(java.lang.String v)
public double getSpeedLimitKPH()
public void setSpeedLimitKPH(double v)
v
- The posted speed limitpublic boolean hasSpeedLimitKPH()
public double getMinimumSpeedingThreshold(double dftLimitKPH, double dftOffsetKPH)
dftLimitKPH
- A default minimum speed limit threshold.dftOffsetKPH
- The offset to add to the absolute threshold.
public int checkSpeedingCondition(double dftLimitKPH, double dftOffsetKPH)
dftLimitKPH
- A default minimum speed limit threshold.dftOffsetKPH
- The offset to add to the absolute threshold.
public boolean getIsTollRoad()
public void setIsTollRoad(boolean v)
public boolean isTollRoad()
public boolean isInputMaskExplicitlySet()
public long getInputMask()
getInputMask
in interface EventDataProvider
public boolean getInputMaskBitState(int bit)
public void setInputMask(long v)
public boolean isOutputMaskExplicitlySet()
public long getOutputMask()
public boolean getOutputMaskBitState(int bit)
public void setOutputMask(long v)
public long getSeatbeltMask()
public boolean getSeatbeltMaskBitState(int bit)
public void setSeatbeltMask(long v)
public long getDoorStateMask()
public boolean getDoorStateMaskBitState(int bit)
public void setDoorStateMask(long v)
public long getLightsStateMask()
public boolean getLightsStateMaskBitState(int bit)
public void setLightsStateMask(long v)
public double getBarometer()
public void setBarometer(double v)
public double getAmbientTemp()
public void setAmbientTemp(double v)
v
- The ambient air temperature (C)public double getCabinTemp()
public void setCabinTemp(double v)
v
- The cabin air temperature (C)public static int getThermoCount()
public static boolean isValidTemperature(double t)
public static java.lang.String getThermoAverageName(int ndx)
public double getThermoAverage(int ndx)
public void setThermoAverage(int ndx, double v)
public void clearThermoAverage()
public double getThermoAverage0()
public void setThermoAverage0(double v)
public double getThermoAverage1()
public void setThermoAverage1(double v)
public double getThermoAverage2()
public void setThermoAverage2(double v)
public double getThermoAverage3()
public void setThermoAverage3(double v)
public double getThermoAverage4()
public void setThermoAverage4(double v)
public double getThermoAverage5()
public void setThermoAverage5(double v)
public double getThermoAverage6()
public void setThermoAverage6(double v)
public double getThermoAverage7()
public void setThermoAverage7(double v)
public static int GetAnalogFieldCount()
public static java.lang.String GetAnalogFieldName(int ndx)
public double getAnalog(int ndx)
public void setAnalog(int ndx, double v)
public double getAnalog0()
public void setAnalog0(double v)
public double getAnalog1()
public void setAnalog1(double v)
public double getAnalog2()
public void setAnalog2(double v)
public double getAnalog3()
public void setAnalog3(double v)
public double getPulseCount()
public void setPulseCount(double v)
public long getTripStartTime()
public void setTripStartTime(long v)
public long getTripStopTime()
public void setTripStopTime(long v)
public double getTripDistanceKM()
public void setTripDistanceKM(double v)
public double getTripIdleHours()
public void setTripIdleHours(double v)
public double getTripPtoHours()
public void setTripPtoHours(double v)
public double getTripMaxSpeedKPH()
public void setTripMaxSpeedKPH(double v)
public long getTripMaxRpm()
public void setTripMaxRpm(long v)
public double getTripStartLatitude()
public void setTripStartLatitude(double v)
public double getTripStartLongitude()
public void setTripStartLongitude(double v)
public long getTripElapsedSeconds()
public void setTripElapsedSeconds(long v)
public long getTripBrakeCount()
public void setTripBrakeCount(long v)
public long getTripClutchCount()
public void setTripClutchCount(long v)
public int getDayEngineStarts()
public void setDayEngineStarts(int v)
public double getDayIdleHours()
public void setDayIdleHours(double v)
public double getDayFuelIdle()
public void setDayFuelIdle(double v)
public double getDayWorkHours()
public void setDayWorkHours(double v)
public double getDayFuelWork()
public void setDayFuelWork(double v)
public double getDayFuelPTO()
public void setDayFuelPTO(double v)
public double getDayDistanceKM()
public void setDayDistanceKM(double v)
public double getDayFuelTotal()
public void setDayFuelTotal(double v)
public boolean canUpdateCellTowerLocation()
public java.util.Set<java.lang.String> updateCellTowerLocation()
public double getCellLatitude()
public void setCellLatitude(double v)
public double getCellLongitude()
public void setCellLongitude(double v)
public void setCellGeoPoint(GeoPoint gp)
public GeoPoint getCellGeoPoint()
public boolean hasCellLocation()
public double getCellAccuracy()
public void setCellAccuracy(double v)
public int getMobileCountryCode()
public void setMobileCountryCode(int v)
public int getMobileNetworkCode()
public void setMobileNetworkCode(int v)
public int getCellTimingAdvance()
public void setCellTimingAdvance(int v)
public int getLocationAreaCode()
public void setLocationAreaCode(int v)
public int getCellTowerID()
public void setCellTowerID(int v)
public java.lang.String getCellServingInfo()
public void setCellServingInfo(java.lang.String v)
public org.opengts.cellid.CellTower getServingCellTower()
public void setServingCellTower(org.opengts.cellid.CellTower cti)
public java.lang.String getCellNeighborInfo0()
public void setCellNeighborInfo0(java.lang.String v)
public java.lang.String getCellNeighborInfo1()
public void setCellNeighborInfo1(java.lang.String v)
public java.lang.String getCellNeighborInfo2()
public void setCellNeighborInfo2(java.lang.String v)
public java.lang.String getCellNeighborInfo3()
public void setCellNeighborInfo3(java.lang.String v)
public java.lang.String getCellNeighborInfo4()
public void setCellNeighborInfo4(java.lang.String v)
public java.lang.String getCellNeighborInfo5()
public void setCellNeighborInfo5(java.lang.String v)
public org.opengts.cellid.CellTower getNeighborCellTower(int ndx)
public void setNeighborCellTower(int ndx, org.opengts.cellid.CellTower cti)
public org.opengts.cellid.CellTower[] getNeighborCellTowers()
public void setNeighborCellTowers(org.opengts.cellid.CellTower[] nct)
public void setNeighborCellTowers(java.util.List<org.opengts.cellid.CellTower> nct)
public boolean hasDriverID()
public java.lang.String getDriverID()
public void setDriverID(java.lang.String v)
v
- The driver idpublic java.lang.String getDriverID(boolean chkDevIfBlank)
chkDevIfBlank
- If true, and the event driver-id is blank, then this method
will also check the parent device record.
public Driver getDriver(boolean chkDevIfBlank)
chkDevIfBlank
- If true, and the event driver-id is blank, then this method
will also check the parent device record.
public boolean hasDriverStatus()
public long getDriverStatus()
public void setDriverStatus(long v)
v
- The driver statuspublic boolean hasDriverMessage()
public java.lang.String getDriverMessage()
public void setDriverMessage(java.lang.String v)
v
- The driver messagepublic java.lang.String getEmailRecipient()
public void setEmailRecipient(java.lang.String v)
v
- The email recipientpublic long getSensorLow()
public void setSensorLow(long v)
v
- The low sensor valuepublic long getSensorHigh()
public void setSensorHigh(long v)
v
- The high sensor valuepublic int getSampleIndex()
public void setSampleIndex(int v)
v
- The sample indexpublic java.lang.String getSampleID()
public void setSampleID(java.lang.String v)
v
- The sample IDpublic int getImpactDataPeriod()
public void setImpactDataPeriod(int v)
public int getImpactDataStatus()
public void setImpactDataStatus(int v)
v
- The impact data status (0=none, 1=partial, 2=complete)public int getImpactDataIndex()
public void setImpactDataIndex(int v)
public java.lang.String getImpactDataType()
public void setImpactDataType(java.lang.String v)
public java.lang.String getImpactData()
public void setImpactData(java.lang.String v)
public double getImpactMagnitude()
public long getLeaseStartDate()
public void setLeaseStartDate(long v)
v
- The lease starting day numberpublic void setLeaseStartDate(int year, int month, int day)
year
- The lease starting yearmonth
- The lease starting month (1..12)day
- The lease starting day of monthpublic void setLeaseStartDate(DayNumber dn)
dn
- The lease starting day numberpublic long getLeaseEndDate()
public void setLeaseEndDate(long v)
v
- The lease ending day numberpublic void setLeaseEndDate(int year, int month, int day)
year
- The lease ending yearmonth
- The lease ending month (1..12)day
- The lease ending day of monthpublic void setLeaseEndDate(DayNumber dn)
dn
- The lease ending day numberpublic double getLeaseStartOdomKM()
public void setLeaseStartOdomKM(double v)
v
- The starting odometer at the beginning of the leasepublic double getLeaseAllowedDistKM()
public void setLeaseAllowedDistKM(double v)
v
- The allowed distance over the term of the leasepublic java.lang.String getLeaseContractID()
public void setLeaseContractID(java.lang.String v)
v
- The lease contract id/numberpublic double getBrakeGForce()
public void setBrakeGForce(double v)
v
- The brake G-forcepublic double getAcceleration()
public void setAcceleration(double v)
v
- The acceleration (m/s/s)public java.lang.String getAccelerometerXYZ()
public void setAccelerometerXYZ(java.lang.String v)
v
- The accelerometer XYZ-axis values (m/s/s)public Accelerometer getAccelerometer()
public void setAccelerometer(Accelerometer xyz)
xyz
- The accelerometer XYZ-axis values (m/s/s)public double getBrakePressure()
public void setBrakePressure(double v)
v
- The brake pressurepublic double getMassAirFlowRate()
public void setMassAirFlowRate(double v)
v
- The mass air flow rate (g/sec)public java.lang.String getTirePressure()
public double[] getTirePressure_kPa()
public double[] getTirePressure_psi()
public double[] getTirePressure_units(Account.PressureUnits pu)
public void setTirePressure(java.lang.String v)
v
- The tire pressure stringpublic void setTirePressure_kPa(double[] v)
v
- An array of tire pressures (kPa)public void setTirePressure_psi(double[] v)
v
- An array of tire pressures (PSI)public java.lang.String getTireTemp()
public double[] getTireTemp_C()
public double[] getTireTemp_units(Account.TemperatureUnits tu)
public void setTireTemp(java.lang.String v)
v
- The tire temperature stringpublic void setTireTemp_C(double[] v)
v
- An array of tire temperatures (C)public double getTankLevel()
public void setTankLevel(double v)
v
- The general tank levelpublic boolean getDataPush()
public void setDataPush(boolean v)
v
- The data-push flagpublic long getCostCenter()
public void setCostCenter(long v)
v
- The cost centerpublic java.lang.String getJobNumber()
public void setJobNumber(java.lang.String v)
v
- The job numberpublic boolean hasJobNumber()
public java.lang.String getRfidTag()
public void setRfidTag(java.lang.String v)
v
- The stored RFID tagpublic java.lang.String getAttachType()
public void setAttachType(java.lang.String v)
v
- The attachment MIME typepublic boolean isAttachType(java.lang.String type)
type
- The target attachment type
public boolean hasAttachData()
public byte[] getAttachData()
public void setAttachData(byte[] v)
v
- The attachment datapublic void setAttachment(java.lang.String mimeType, byte[] data)
mimeType
- The MIME typedata
- The attachment datapublic RTProperties getAttachRTProperties()
public long getEtaTimestamp()
public void setEtaTimestamp(long v)
v
- The ETA timestamppublic long getEtaUniqueID()
public void setEtaUniqueID(long v)
v
- The ETA unique-idpublic double getEtaDistanceKM()
public void setEtaDistanceKM(double v)
v
- The ETA distance in kilometerspublic double getEtaLatitude()
public void setEtaLatitude(double v)
v
- The ETA Latitudepublic void setEtaGeoPoint(GeoPoint gp)
gp
- The ETA GeoPointpublic GeoPoint getEtaGeoPoint()
public double getEtaLongitude()
public void setEtaLongitude(double v)
v
- The ETA Longitudepublic long getStopID()
public void setStopID(long v)
v
- The STOP idpublic int getStopStatus()
public void setStopStatus(int v)
v
- The STOP Statuspublic int getStopIndex()
public void setStopIndex(int v)
v
- The STOP Indexpublic long getMessageTimestamp()
public void setMessageTimestamp(long v)
v
- The MESSAGE timepublic long getMessageID()
public void setMessageID(long v)
v
- The MESSAGE idpublic int getMessageStatus()
public void setMessageStatus(int v)
v
- The MESSAGE Statuspublic double getFuelPressure()
public void setFuelPressure(double v)
v
- The fuel pressurepublic double getFuelUsage()
public void setFuelUsage(double v)
v
- The fuel usage (rate of use)public double getFuelTemp()
public void setFuelTemp(double v)
v
- The fuel temperaturepublic double getFuelLevel()
public void setFuelLevel(double v)
v
- The fuel levelpublic double getFuelLevel(boolean estimate)
estimate
- True to estimate the fuel level based on other criteria
available to this event (ie. fuel-remaining, etc)
public double getFuelLevelVolume_Liters()
public double getFuelLevelVolume_Units()
public double getFuelLevel2()
public void setFuelLevel2(double v)
v
- The fuel level in the alternate/second tankpublic double getFuelEconomy()
public void setFuelEconomy(double v)
v
- The instantaneous fuel economypublic double getFuelTotal()
public void setFuelTotal(double v)
v
- The total fuel usedpublic double getFuelRemain()
public void setFuelRemain(double v)
v
- The fuel remaining in Litrespublic double getFuelRemain(boolean estimate)
estimate
- True to estimate fuel remaining based on device tank capacity and fuel level
public double getFuelTrip()
public void setFuelTrip(double v)
v
- The trip fuel usedpublic double getFuelIdle()
public void setFuelIdle(double v)
v
- The idle fuel usedpublic double getFuelPTO()
public void setFuelPTO(double v)
v
- The PTO fuel usedpublic double getFuelEngineOn()
public void setFuelEngineOn(double v)
v
- The fuel used since last engine-onpublic long getEngineRpm()
public void setEngineRpm(long v)
v
- The engine RPMpublic double getEngineHours()
public void setEngineHours(double v)
v
- The engine hourspublic double getEngineOnHours()
public void setEngineOnHours(double v)
v
- The engine hours since last engine onpublic double getEngineLoad()
public void setEngineLoad(double v)
v
- The engine load (percent)public double getEngineTorque()
public void setEngineTorque(double v)
v
- The engine torquepublic double getIdleHours()
public void setIdleHours(double v)
v
- The engine idle hourspublic double getWorkHours()
public void setWorkHours(double v)
v
- The engine work hourspublic double getWorkDistanceKM()
public void setWorkDistanceKM(double v)
v
- The work distance tripometer value in kilometers.public double getTransOilTemp()
public void setTransOilTemp(double v)
v
- The transmission oil temperaturepublic double getOilCoolerInTemp()
public void setOilCoolerInTemp(double v)
v
- The oil cooler inlet temperaturepublic double getOilCoolerOutTemp()
public void setOilCoolerOutTemp(double v)
v
- The oil cooler outlet temperaturepublic double getCoolantLevel()
public void setCoolantLevel(double v)
v
- The coolant level (percent)public double getCoolantTemp()
public void setCoolantTemp(double v)
v
- The coolant temperature (C)public double getEngineTemp()
public void setEngineTemp(double v)
v
- The engine temperature (C)public double getIntakeTemp()
public void setIntakeTemp(double v)
v
- The intake temperature (C)public double getOilPressure()
public void setOilPressure(double v)
v
- The oil pressurepublic double getOilLevel()
public void setOilLevel(double v)
v
- The oil level (percent)public double getOilTemp()
public void setOilTemp(double v)
v
- The oil temperature (C)public double getAirPressure()
public void setAirPressure(double v)
v
- The air pressure (kPa)public double getAirFilterPressure()
public void setAirFilterPressure(double v)
v
- The air filter pressure (kPa)public double getTurboPressure()
public void setTurboPressure(double v)
v
- The turbo pressure (kPa)public boolean getPtoEngaged()
public void setPtoEngaged(boolean v)
v
- The PTO engaged statepublic double getPtoHours()
public void setPtoHours(double v)
v
- The PTO hourspublic double getPtoDistanceKM()
public void setPtoDistanceKM(double v)
v
- The PTO distance tripometer value in kilometers.public double getThrottlePos()
public void setThrottlePos(double v)
v
- The throttle position (percent)public double getBrakePos()
public void setBrakePos(double v)
v
- The brake position (percent)public double getVBatteryVolts()
public void setVBatteryVolts(double v)
v
- The vehicle battery voltspublic long getJ1708Fault()
public void setJ1708Fault(long v)
v
- The OBD(DTC)/J1708 fault code (encoded)public long getOBDFault()
getJ1708Fault()
public void setOBDFault(long v)
v
- The OBD(DTC)/J1708 fault code (encoded)setJ1708Fault(long)
public static boolean supportsFaultCode()
public java.lang.String getFaultCode()
public void setFaultCode(java.lang.String v)
v
- The fault code stringpublic boolean hasFaultCode()
public RTProperties getFaultCodeRTProperties()
public void setFaultCode_OBDII(java.lang.String[] dtc)
dtc
- An array of DTC value codespublic boolean getMalfunctionLamp()
public void setMalfunctionLamp(boolean v)
v
- The Malfunction-Indicator-Lamp statepublic boolean hasMalfunctionLamp()
public void setCreationDefaultValues()
setCreationDefaultValues
in class DBRecord<EventData>
public void setEventIndex(int ndx)
setEventIndex
in interface EventDataProvider
ndx
- The event indexpublic int getEventIndex()
getEventIndex
in interface EventDataProvider
public boolean getIsFirstEvent()
getIsFirstEvent
in interface EventDataProvider
public void setIsLastEvent(boolean isLast)
setIsLastEvent
in interface EventDataProvider
isLast
- The last event statepublic boolean getIsLastEvent()
getIsLastEvent
in interface EventDataProvider
public boolean showLastEventDevicePushpin(boolean isFleet, BasicPrivateLabel bpl)
isFleet
- True for the group/fleet mapbpl
- The BasicPrivateLabel instance
public double getReportDistanceKM()
public GeoPoint getReportDistanceGP()
public void setReportDistanceKM(double km, GeoPoint gp)
km
- The report distance (kilometers)gp
- The report locationpublic boolean calculateReportDistance(EventData lastEV)
lastEV
- The prior event
public static void calculateReportDistance(EventData[] evList)
evList
- The EventData arraypublic static void calculateReportDistance(java.util.Collection<EventData> evList)
evList
- The EventData listpublic boolean getStartStopSupported(boolean dft)
dft
- The default "Start/Stop StatusCode supported" state
public int[] getStartStopStatusCodes()
public boolean isStartEvent(boolean checkSpeed)
checkSpeed
- True to use the speed of the event in the start event determination
public boolean isStartEvent(int[] ssc, boolean checkSpeed)
ssc
- A 2-element array of status-codes (element 0 contains the start-status-code)
used to check this event for start-event status.checkSpeed
- True to use the speed of the event in the start event determination
public boolean isStopEvent(boolean checkSpeed)
checkSpeed
- True to use the speed of the event in the stop event determination
public boolean isStopEvent(int[] ssc, boolean checkSpeed)
ssc
- A 2-element array of status-codes (element 1 contains the stop-status-code)
used to check this event for stop-event status.checkSpeed
- True to use the speed of the event in the stop event determination
public void setStopped(boolean stopped)
stopped
- The current vehicle stopped statepublic boolean isStopped()
public void setSynthesizedEvent(boolean isSynthesized)
isSynthesized
- True to indicate a synthesized eventpublic boolean getIsSynthesizedEvent()
public void setPushpinIconIndexProvider(PushpinIconIndexProvider piip)
piip
- The PushpinIconIndexProvider instancepublic void setPushpinIconIndex(int epii)
epii
- The PushpinIconIndexProvider instancepublic void setPushpinIconIndex(java.lang.String iconName, OrderedSet<java.lang.String> iconKeys)
iconName
- The icon nameiconKeys
- The list of icon keys from which the index is derived, based on the position of
icon name in this list.public int getPushpinIconIndex(java.lang.String iconSelector, OrderedSet<java.lang.String> iconKeys, boolean isFleet, BasicPrivateLabel bpl)
getPushpinIconIndex
in interface EventDataProvider
iconSelector
- An icon 'selector' to be analyzed by the installed 'RuleFactory' to
determine the icon index. Currently, this value is obtained only from the
contents of the MapProvider property "iconSelector" or "iconSelector.fleet", and
will likely be null if neither of these properties are defined.iconKeys
- The defined icon keys (the returned index must be within the
the range of this list).isFleet
- True if obtaining an icon index for a 'fleet' map
public java.lang.String formatAsCSVRecord(java.lang.String[] fields)
fields
- The array of EventData fields to include in the CSV format
public void setPreviousEventData(EventData ev)
ev
- The previous EventData recordpublic EventData getPreviousEventData(boolean validGPS) throws DBException
validGPS
- True to check for previous events with a valid GPS location only
DBException
public EventData getPreviousEventData(int[] statusCodes, boolean validGPS) throws DBException
statusCodes
- A list of status codes to search forvalidGPS
- True to check for previous events with a valid GPS location only
DBException
public static EventData getPreviousEventData(java.lang.String accountID, java.lang.String deviceID, long timestamp, int[] statusCodes, boolean validGPS) throws DBException
accountID
- The Account IDdeviceID
- The Device IDtimestamp
- The starting timestampstatusCodes
- The status codes to look forvalidGPS
- True to look for events with a valid GPS location only
DBException
public EventData getNextEventData(boolean validGPS) throws DBException
validGPS
- True to check for next events with a valid GPS location only
DBException
public static EventData getNextEventData(java.lang.String accountID, java.lang.String deviceID, long timestamp, int[] statusCodes, boolean validGPS) throws DBException
accountID
- The Account IDdeviceID
- The Device IDtimestamp
- The starting timestampstatusCodes
- The status codes to look forvalidGPS
- True to look for events with a valid GPS location only
DBException
public java.lang.Object getFieldValue(java.lang.String fldName)
DBRecord.getFieldValue(...)
getFieldValue
in class DBRecord<EventData>
fldName
- The EventData fieldname
protected void recordWillInsert()
recordWillInsert
in class DBRecord<EventData>
protected void recordDidInsert()
recordDidInsert
in class DBRecord<EventData>
protected void recordWillUpdate()
recordWillUpdate
in class DBRecord<EventData>
protected void recordDidUpdate()
recordDidUpdate
in class DBRecord<EventData>
public static boolean exists(java.lang.String acctID, java.lang.String devID, long time, int stCode) throws DBException
acctID
- The Account IDdevID
- The Device ID
DBException
public static EventData createEventDataRecord(GeoEvent gev)
gev
- The GeoEventpublic static java.lang.String getWhereClause(long autoIndex)
public static java.lang.String getWhereClause(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, int[] statCode, boolean gpsRequired, java.lang.String andSelect)
public static EventData getAutoIndexEvent(long autoIndex) throws DBException
DBException
public static EventData[] getSelectedEvents(DBSelect<EventData> dsel, DBRecordHandler<EventData> rcdHandler) throws DBException
DBException
public static EventData getEventData(Device dev, long timestamp, int statusCode) throws DBException
DBException
public static EventData getEventData(java.lang.String acctId, java.lang.String devId, long timestamp, int statusCode) throws DBException
DBException
public static EventData[] getRangeEvents(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, int[] statCode, boolean validGPS, EventData.LimitType limitType, long limit, boolean ascending, java.lang.String addtnlSelect) throws DBException
DBException
public static EventData[] getRangeEvents(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, int[] statCode, boolean validGPS, EventData.LimitType limitType, long limit, boolean ascending, java.lang.String addtnlSelect, DBRecordHandler<EventData> rcdHandler) throws DBException
DBException
public static long countRangeEvents(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, int[] statCode, boolean validGPS, EventData.LimitType limitType, long limit, java.lang.String addtnlSelect) throws DBException
DBException
public static long getRecordCount(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd) throws DBException
acctId
- The Account IDdevId
- The Device IDtimeStart
- The starting time range (inclusive)timeEnd
- The ending time range (inclusive)
DBException
public static EventData[] getEventsByCreationMillis(java.lang.String acctId, java.lang.String devId, long createStartMS, long createEndMS, long limit) throws DBException
DBException
public static long deleteFutureEvents(Device device, long futureTime) throws DBException
device
- The Device record for which EventData records will be deletedfutureTime
- The time in the future after which events will be deleted.
This time must be more than 60 seconds beyond the current system clock time.
DBException
public static long deleteFutureEvents(java.lang.String acctID, java.lang.String devID, long futureTime) throws DBException
acctID
- The Account IDdevID
- The Device IDfutureTime
- The time in the future after which events will be deleted.
This time must be more than 60 seconds beyond the current system clock time.
DBException
public static long deleteEventsAfterTimestamp(java.lang.String acctID, java.lang.String devID, long timestamp, boolean inclusive) throws DBException
acctID
- The Account IDdevID
- The Device IDtimestamp
- The time after which all events will be deleted.inclusive
- True to include 'timestamp', false to exclude
DBException
public static long deleteOldEvents(Device device, long oldTimeSec, java.lang.StringBuffer msg) throws DBException
device
- The Device instance for the events that are to be deleted.oldTimeSec
- The time in the past before which (exclusive) events will be deleted.msg
- StringBuffer where messages are placed regarding the events deleted.
DBException
public static double getGPSDistanceTraveledKM(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, GeoPoint startingGP, double startingOdomKM)
public static DateTime parseDate(java.lang.String dateStr, java.util.TimeZone tz)
public static boolean _keyMatch(java.lang.String key, java.lang.String keyMatch)
public static boolean _keyMatch(java.lang.String key, java.lang.String[] keyList)
public static java.lang.String getKeyFieldTitle(java.lang.String key, java.lang.String arg, java.util.Locale locale)
public java.lang.String getKeyFieldValue(java.lang.String key, java.lang.String arg, BasicPrivateLabel bpl)
public static java.lang.String _getKeyFieldString(boolean getTitle, java.lang.String key, java.lang.String arg, java.util.Locale locale, BasicPrivateLabel bpl, EventData ed)
public static java.util.Comparator<EventData> getDeviceDescriptionComparator()
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |