org.opengts.db.tables
Class EventData

java.lang.Object
  extended by org.opengts.dbtools.DBRecord<RT>
      extended by org.opengts.db.AccountRecord<RT>
          extended by org.opengts.db.DeviceRecord<EventData>
              extended by org.opengts.db.tables.EventData
All Implemented Interfaces:
EventDataProvider, GeoPointProvider

public class EventData
extends DeviceRecord<EventData>
implements EventDataProvider, GeoPointProvider


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 org.opengts.db.AccountRecord
createSystemAdminAccount, getAccount, getAccountDescription, getAccountID, getDisplayName, getFilteredID, getFilteredID, getIsActive, getNotes, GetSimpleLocalString, getSystemAdminAccount, getSystemAdminAccountID, hasAccount, hasSystemAdminAccountID, isAccountManager, isActive, isSystemAdmin, isSystemAdmin, isSystemAdminAccountID, isValidID, newField_accountID, newField_accountID, newField_displayName, newField_displayName, newField_isActive, newField_isActive, newField_notes, newField_notes, setAccount, setDisplayName, setIsActive, setNotes, setRuntimeDefaultValues
 
Methods inherited from class org.opengts.dbtools.DBRecord
_getFactory, _reload, addChangedNotification, addExcludedUpdateFields, adjustStringLength_1, adjustStringLength, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, geKeyValue, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentAccount, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getKeyValue, getLastCaughtSQLException, getLastUpdateAccount, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getTemporaryProperties, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, hasOptionalFieldValue, hasTemporaryProperties, insert, isFieldUnsigned, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateAccount, newField_lastUpdateAccount, newField_lastUpdateTime, newField_lastUpdateUser, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationMillis, setCreationTime, SetCurrentAccount, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setKeyValue, setLastCaughtSQLException, setLastUpdateAccount, setLastUpdateTime, setLastUpdateUser, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setOptionalFieldValue, setValidating, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setVirtual, toString, toXML, toXML, toXML, toXML, toXML, unlock, update, update, update
 
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

DFT_allowInnoDBCountWithWhere

public static final boolean DFT_allowInnoDBCountWithWhere
See Also:
Constant Field Values

OPTCOLS_AddressFieldInfo

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

OPTCOLS_GPSFieldInfo

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

OPTCOLS_CustomFieldInfo

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

OPTCOLS_GarminFieldInfo

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

OPTCOLS_CANBUSFieldInfo

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

OPTCOLS_AtmosphereFieldInfo

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

OPTCOLS_ThermoFieldInfo

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

OPTCOLS_AnalogFieldInfo

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

OPTCOLS_AutoIncrementIndex

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

OPTCOLS_TripSummary

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

OPTCOLS_EndOfDaySummary

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

OPTCOLS_ServingCellTowerData

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

OPTCOLS_NeighborCellTowerData

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

OPTCOLS_WorkZoneGridData

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

OPTCOLS_LeaseRentalData

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

OPTCOLS_ImpactData

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

OPTCOLS_CreationTimeMillisecond

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

INVALID_TEMPERATURE

public static final double INVALID_TEMPERATURE
See Also:
Constant Field Values

TEMPERATURE_LIMIT_LO

public static final double TEMPERATURE_LIMIT_LO
See Also:
Constant Field Values

TEMPERATURE_LIMIT_HI

public static final double TEMPERATURE_LIMIT_HI
See Also:
Constant Field Values

ICON_PUSHPIN_BLACK

public static final int ICON_PUSHPIN_BLACK
See Also:
Constant Field Values

ICON_PUSHPIN_BROWN

public static final int ICON_PUSHPIN_BROWN
See Also:
Constant Field Values

ICON_PUSHPIN_RED

public static final int ICON_PUSHPIN_RED
See Also:
Constant Field Values

ICON_PUSHPIN_ORANGE

public static final int ICON_PUSHPIN_ORANGE
See Also:
Constant Field Values

ICON_PUSHPIN_YELLOW

public static final int ICON_PUSHPIN_YELLOW
See Also:
Constant Field Values

ICON_PUSHPIN_GREEN

public static final int ICON_PUSHPIN_GREEN
See Also:
Constant Field Values

ICON_PUSHPIN_BLUE

public static final int ICON_PUSHPIN_BLUE
See Also:
Constant Field Values

ICON_PUSHPIN_PURPLE

public static final int ICON_PUSHPIN_PURPLE
See Also:
Constant Field Values

ICON_PUSHPIN_GRAY

public static final int ICON_PUSHPIN_GRAY
See Also:
Constant Field Values

ICON_PUSHPIN_WHITE

public static final int ICON_PUSHPIN_WHITE
See Also:
Constant Field Values

SEATBELT_DRIVER

public static final long SEATBELT_DRIVER
See Also:
Constant Field Values

SEATBELT_PASSENGER

public static final long SEATBELT_PASSENGER
See Also:
Constant Field Values

SEATBELT_REAR_LEFT

public static final long SEATBELT_REAR_LEFT
See Also:
Constant Field Values

SEATBELT_REAR_RIGHT

public static final long SEATBELT_REAR_RIGHT
See Also:
Constant Field Values

DOOR_DRIVER

public static final long DOOR_DRIVER
See Also:
Constant Field Values

DOOR_PASSENGER

public static final long DOOR_PASSENGER
See Also:
Constant Field Values

DOOR_REAR_LEFT

public static final long DOOR_REAR_LEFT
See Also:
Constant Field Values

DOOR_REAR_RIGHT

public static final long DOOR_REAR_RIGHT
See Also:
Constant Field Values

DOOR_HOOD_BONNET

public static final long DOOR_HOOD_BONNET
See Also:
Constant Field Values

DOOR_TRUNK_BOOT

public static final long DOOR_TRUNK_BOOT
See Also:
Constant Field Values

LIGHTS_RUNNING

public static final long LIGHTS_RUNNING
See Also:
Constant Field Values

LIGHTS_LOW_BEAM

public static final long LIGHTS_LOW_BEAM
See Also:
Constant Field Values

LIGHTS_HIGH_BEAM

public static final long LIGHTS_HIGH_BEAM
See Also:
Constant Field Values

LIGHTS_FRONT_FOG

public static final long LIGHTS_FRONT_FOG
See Also:
Constant Field Values

LIGHTS_REAR_FOG

public static final long LIGHTS_REAR_FOG
See Also:
Constant Field Values

LIGHTS_HAZARD

public static final long LIGHTS_HAZARD
See Also:
Constant Field Values

EMPTY_ARRAY

public static final EventData[] EMPTY_ARRAY

AddressColumnLength

public static int AddressColumnLength

StreetColumnLength

public static int StreetColumnLength

CityColumnLength

public static int CityColumnLength

StateColumnLength

public static int StateColumnLength

PostalColumnLength

public static int PostalColumnLength

ALTKEY_eq_pushkey

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

DFT_lockTableOnRead

public static final boolean DFT_lockTableOnRead
See Also:
Constant Field Values

_TABLE_NAME

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

PFLD_deviceDesc

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

PFLD_Account_

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

PFLD_Device_

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

FLD_timestamp

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

FLD_statusCode

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

FLD_latitude

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

FLD_longitude

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

FLD_gpsAge

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

FLD_speedKPH

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

FLD_heading

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

FLD_altitude

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

FLD_transportID

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

FLD_inputMask

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

FLD_outputMask

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

FLD_address

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

FLD_dataSource

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

FLD_rawData

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

FLD_distanceKM

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

FLD_odometerKM

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

FLD_odometerOffsetKM

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

FLD_geozoneIndex

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

FLD_geozoneID

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

FLD_streetAddress

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

FLD_city

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

FLD_stateProvince

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

FLD_postalCode

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

FLD_country

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

FLD_subdivision

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

FLD_speedLimitKPH

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

FLD_isTollRoad

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

AddressFieldInfo

public static final DBField[] AddressFieldInfo

FLD_gpsFixType

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

FLD_gpsFixStatus

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

FLD_horzAccuracy

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

FLD_vertAccuracy

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

FLD_HDOP

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

FLD_satelliteCount

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

FLD_batteryLevel

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

FLD_batteryVolts

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

FLD_batteryTemp

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

FLD_signalStrength

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

FLD_sequence

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

GPSFieldInfo

public static final DBField[] GPSFieldInfo

FLD_priority

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

FLD_entityID

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

FLD_entityType

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

FLD_driverID

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

FLD_driverStatus

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

FLD_driverMessage

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

FLD_driverMessageACK

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

FLD_emailRecipient

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

FLD_sensorLow

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

FLD_sensorHigh

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

FLD_costCenter

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

FLD_jobNumber

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

FLD_rfidTag

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

FLD_attachType

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

FLD_attachData

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

CustomFieldInfo

public static final DBField[] CustomFieldInfo

FLD_fuelTotal

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

FLD_engineRpm

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

FLD_engineHours

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

FLD_engineOnHours

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

FLD_engineLoad

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

FLD_engineTorque

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

FLD_idleHours

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

FLD_workHours

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

FLD_workDistanceKM

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

FLD_transOilTemp

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

FLD_oilCoolerInTemp

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

FLD_oilCoolerOutTemp

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

FLD_coolantLevel

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

FLD_coolantTemp

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

FLD_engineTemp

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

FLD_intakeTemp

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

FLD_brakeGForce

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

FLD_acceleration

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

FLD_accelerometerXYZ

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

FLD_oilPressure

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

FLD_oilLevel

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

FLD_oilTemp

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

FLD_airPressure

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

FLD_airFilterPressure

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

FLD_turboPressure

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

FLD_ptoEngaged

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

FLD_ptoHours

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

FLD_ptoDistanceKM

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

FLD_throttlePos

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

FLD_brakePos

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

FLD_j1708Fault

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

FLD_faultCode

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

FLD_malfunctionLamp

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

FLD_fuelLevel

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

FLD_fuelLevel2

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

FLD_fuelRemain

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

FLD_fuelTrip

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

FLD_fuelIdle

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

FLD_fuelPTO

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

FLD_fuelEngineOn

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

FLD_vBatteryVolts

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

FLD_fuelPressure

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

FLD_fuelUsage

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

FLD_fuelTemp

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

FLD_fuelEconomy

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

FLD_brakePressure

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

FLD_massAirFlowRate

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

FLD_tirePressure

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

FLD_tireTemp

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

FLD_tankLevel

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

FLD_seatbeltMask

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

FLD_doorStateMask

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

FLD_lightsStateMask

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

CANBUSFieldInfo

public static final DBField[] CANBUSFieldInfo

FLD_etaTimestamp

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

FLD_etaUniqueID

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

FLD_etaDistanceKM

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

FLD_etaLatitude

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

FLD_etaLongitude

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

FLD_stopID

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

FLD_stopStatus

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

FLD_stopIndex

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

FLD_messageTimestamp

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

FLD_messageID

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

FLD_messageStatus

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

GarminFieldInfo

public static final DBField[] GarminFieldInfo

FLD_barometer

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

FLD_ambientTemp

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

FLD_cabinTemp

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

AtmosphereFieldInfo

public static final DBField[] AtmosphereFieldInfo

FLD_thermoAverage0

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

FLD_thermoAverage1

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

FLD_thermoAverage2

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

FLD_thermoAverage3

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

FLD_thermoAverage4

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

FLD_thermoAverage5

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

FLD_thermoAverage6

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

FLD_thermoAverage7

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

ThermoFieldInfo

public static final DBField[] ThermoFieldInfo

FLD_analog0

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

FLD_analog1

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

FLD_analog2

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

FLD_analog3

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

FLD_pulseCount

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

AnalogFieldInfo

public static final DBField[] AnalogFieldInfo

FLD_cellTowerID

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

FLD_mobileCountryCode

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

FLD_mobileNetworkCode

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

FLD_cellTimingAdvance

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

FLD_locationAreaCode

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

FLD_cellServingInfo

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

FLD_cellLatitude

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

FLD_cellLongitude

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

FLD_cellAccuracy

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

ServingCellTowerData

public static final DBField[] ServingCellTowerData

FLD_cellNeighborInfo0

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

FLD_cellNeighborInfo1

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

FLD_cellNeighborInfo2

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

FLD_cellNeighborInfo3

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

FLD_cellNeighborInfo4

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

FLD_cellNeighborInfo5

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

NeighborCellTowerData

public static final DBField[] NeighborCellTowerData

FLD_impactDataPeriod

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

FLD_impactDataStatus

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

FLD_impactDataIndex

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

FLD_impactDataType

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

FLD_impactData

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

ImpactData

public static final DBField[] ImpactData

FLD_leaseStartDate

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

FLD_leaseEndDate

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

FLD_leaseStartOdomKM

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

FLD_leaseAllowedDistKM

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

FLD_leaseContractID

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

LeaseRentalData

public static final DBField[] LeaseRentalData

FLD_tripStartTime

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

FLD_tripStopTime

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

FLD_tripDistanceKM

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

FLD_tripIdleHours

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

FLD_tripPtoHours

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

FLD_tripMaxSpeedKPH

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

FLD_tripMaxRpm

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

FLD_tripStartLatitude

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

FLD_tripStartLongitude

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

FLD_tripElapsedSeconds

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

FLD_tripBrakeCount

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

FLD_tripClutchCount

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

TripSummary

public static final DBField[] TripSummary

FLD_dayEngineStarts

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

FLD_dayIdleHours

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

FLD_dayFuelIdle

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

FLD_dayWorkHours

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

FLD_dayFuelWork

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

FLD_dayFuelPTO

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

FLD_dayDistanceKM

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

FLD_dayFuelTotal

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

EndOfDaySummary

public static final DBField[] EndOfDaySummary

FLD_dataPush

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

CreationTimeMillisecond

public static final DBField[] CreationTimeMillisecond

FLD_sampleIndex

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

FLD_sampleID

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

WorkZoneGridData

public static final DBField[] WorkZoneGridData

FLD_autoIndex

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

AutoIncrementIndex

public static final DBField[] AutoIncrementIndex

DEBUG_PUSHPINS

public static final java.lang.String[] DEBUG_PUSHPINS

PPNAME_last

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

PPNAME_fleet

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

PPNAME_heading

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

PPNAME_stop

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

PPNAME_moving

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

PPNAME_all

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

PPNAME_statusCode

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

KEY_ACCOUNT

public static final java.lang.String[] KEY_ACCOUNT

KEY_DEVICE_COUNT

public static final java.lang.String[] KEY_DEVICE_COUNT

KEY_DEVICE

public static final java.lang.String[] KEY_DEVICE

KEY_EVENT_COUNT24

public static final java.lang.String[] KEY_EVENT_COUNT24

KEY_DEVICE_LINK

public static final java.lang.String[] KEY_DEVICE_LINK

KEY_DEV_CONN_AGE

public static final java.lang.String[] KEY_DEV_CONN_AGE

KEY_DEV_TRAILERS

public static final java.lang.String[] KEY_DEV_TRAILERS

KEY_DATETIME

public static final java.lang.String[] KEY_DATETIME

KEY_DATE_YEAR

public static final java.lang.String[] KEY_DATE_YEAR

KEY_DATE_MONTH

public static final java.lang.String[] KEY_DATE_MONTH

KEY_DATE_DAY

public static final java.lang.String[] KEY_DATE_DAY

KEY_DATE_DOW

public static final java.lang.String[] KEY_DATE_DOW

KEY_TIMEZONE

public static final java.lang.String[] KEY_TIMEZONE

KEY_TIME

public static final java.lang.String[] KEY_TIME

KEY_CREATE_DATETIME

public static final java.lang.String[] KEY_CREATE_DATETIME

KEY_CREATE_AGE

public static final java.lang.String[] KEY_CREATE_AGE

KEY_FAULT_CODE

public static final java.lang.String[] KEY_FAULT_CODE

KEY_FAULT_CODES

public static final java.lang.String[] KEY_FAULT_CODES

KEY_FAULT_HEADER

public static final java.lang.String[] KEY_FAULT_HEADER

KEY_FAULT_DESC

public static final java.lang.String[] KEY_FAULT_DESC

KEY_DRIVERID

public static final java.lang.String[] KEY_DRIVERID

KEY_DRIVER_DESC

public static final java.lang.String[] KEY_DRIVER_DESC

KEY_DRIVER_BADGE

public static final java.lang.String[] KEY_DRIVER_BADGE

KEY_DRIVER_LICENSE

public static final java.lang.String[] KEY_DRIVER_LICENSE

KEY_DRIVER_PHONE

public static final java.lang.String[] KEY_DRIVER_PHONE
Constructor Detail

EventData

public EventData()

EventData

public EventData(EventData.Key key)
Method Detail

_getPushpinIconIndex

public static int _getPushpinIconIndex(java.lang.String val,
                                       OrderedSet<java.lang.String> iconKeys,
                                       int dft)

getGPSFixType

public static EventData.GPSFixType getGPSFixType(EventData e)

GetSeatbeltMaskDescription

public static java.lang.String GetSeatbeltMaskDescription(long m,
                                                          java.util.Locale locale)

GetDoorMaskDescription

public static java.lang.String GetDoorMaskDescription(long m,
                                                      java.util.Locale locale)

GetLightsMaskDescription

public static java.lang.String GetLightsMaskDescription(long m,
                                                        java.util.Locale locale)

LockTableOnRead

public static boolean LockTableOnRead()
Returns the global flag for locking the EventData table (preventing inserts/updates) when reading event records.


TABLE_NAME

public static java.lang.String TABLE_NAME()

getFactory

public static DBFactory<EventData> getFactory()

copySynthesizedEvent

public static EventData copySynthesizedEvent(EventData evdb,
                                             int sc)

copySynthesizedEvent

public static EventData copySynthesizedEvent(EventData evdb,
                                             int sc,
                                             long ts)

getTableDescription

public static java.lang.String getTableDescription(java.util.Locale loc)

getTimestamp

public long getTimestamp()
Gets the timestamp of this event in Unix/Epoch time

Specified by:
getTimestamp in interface EventDataProvider
Returns:
The timestamp of this event

setTimestamp

public void setTimestamp(long v)
Sets the timestamp of this event in Unix/Epoch time

Parameters:
v - The timestamp of this event

getTimeZone

public java.util.TimeZone getTimeZone()
Gets the TimeZone of this event

Returns:
The TimeZone for this event (does not return null)

getTimestampString

public 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

Parameters:
timestamp - The timestamp
account - The account
tz - The TimeZone
bpl - The BasicPrivateLabel instance
Returns:
The String representation of the timestamp of this event

getTimestampTime

public 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

Parameters:
timestamp - The timestamp
account - The account
tz - The TimeZone
bpl - The BasicPrivateLabel instance
Returns:
The String representation of the timestamp time-of-day of this event

getTimestampYear

public static java.lang.String getTimestampYear(long timestamp,
                                                java.util.TimeZone tz)
Gets the String representation of the timestamp year of this event

Parameters:
timestamp - The timestamp
tz - The TimeZone
Returns:
The String representation of the timestamp year of this event

getTimestampMonthNumber

public 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

Parameters:
timestamp - The timestamp
tz - The TimeZone
Returns:
The String representation of the timestamp month-number of this event

getTimestampMonth

public 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

Parameters:
timestamp - The timestamp
abbrev - True to return the month abbreviation, false to return the full month name
tz - The TimeZone
locale - The locale
Returns:
The String representation of the timestamp month of this event

getTimestampDayOfMonth

public static java.lang.String getTimestampDayOfMonth(long timestamp,
                                                      java.util.TimeZone tz)
Gets the String representation of the timestamp day-of-month of this event

Parameters:
timestamp - The timestamp
tz - The TimeZone
Returns:
The String representation of the timestamp day-of-month of this event

getTimestampDayOfWeek

public 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

Parameters:
timestamp - The timestamp
abbrev - True to return the day abbreviation, false to return the full day name
tz - The TimeZone
locale - The locale
Returns:
The String representation of the timestamp day-of-week of this event

getTimestampString

public java.lang.String getTimestampString(BasicPrivateLabel bpl)
Gets the String representation of the timestamp of this event

Parameters:
bpl - The BasicPrivateLabel instance
Returns:
The String representation of the timestamp of this event

getTimestampString

public java.lang.String getTimestampString()
Gets the String representation of the timestamp of this event

Returns:
The String representation of the timestamp of this event

getTimestampTime

public java.lang.String getTimestampTime()
Gets the String representation of the timestamp time-of-day of this event

Returns:
The String representation of the timestamp time-of-day of this event

getTimestampYear

public java.lang.String getTimestampYear()
Gets the String representation of the timestamp year of this event

Returns:
The String representation of the timestamp year of this event

getTimestampMonth

public java.lang.String getTimestampMonth(boolean abbrev,
                                          java.util.Locale locale)
Gets the String representation of the timestamp month of this event

Parameters:
abbrev - True to return the month abbreviation, false to return the full month name
locale - The locale
Returns:
The String representation of the timestamp month of this event

getTimestampMonthNumber

public java.lang.String getTimestampMonthNumber()
Gets the String representation of the timestamp month-number (1..12) of this event

Returns:
The String representation of the timestamp month-number of this event

getTimestampDayOfMonth

public java.lang.String getTimestampDayOfMonth()
Gets the String representation of the timestamp day-of-month of this event

Returns:
The String representation of the timestamp day-of-month of this event

getTimestampDayOfWeek

public java.lang.String getTimestampDayOfWeek(boolean abbrev,
                                              java.util.Locale locale)
Gets the String representation of the timestamp day-of-week of this event

Parameters:
abbrev - True to return the day abbreviation, false to return the full day name
locale - The locale
Returns:
The String representation of the timestamp day-of-week of this event

getCreationTimeString

public java.lang.String getCreationTimeString()
Gets the String representation of the creation timestamp of this event

Returns:
The String representation of the creation timestamp of this event

getCreationAge

public 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.

Specified by:
getCreationAge in interface EventDataProvider
Returns:
The elapsed time, in seconds, between the time the event was generated on the device, and when it was received by the server.

getStatusCode

public int getStatusCode()
Gets the status code of this event

Specified by:
getStatusCode in interface EventDataProvider
Returns:
The status code of this event

getStatusCodeProvider

public 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).

Specified by:
getStatusCodeProvider in interface EventDataProvider
Returns:
The String representation of the status code foregound color

getStatusCodeForegroundColor

public java.lang.String getStatusCodeForegroundColor(BasicPrivateLabel bpl)
Gets the String representation of the status code foregound color

Returns:
The String representation of the status code foregound color

getStatusCodeBackgroundColor

public java.lang.String getStatusCodeBackgroundColor(BasicPrivateLabel bpl)
Gets the String representation of the status code backgound color

Returns:
The String representation of the status code backgound color

getStatusCodeHex

public java.lang.String getStatusCodeHex()
Gets the Hex String representation of the status code of this event

Returns:
The Hex String representation of the status code of this event

getStatusCodeDescription

public java.lang.String getStatusCodeDescription(BasicPrivateLabel bpl)
Gets the String representation of the status code of this event

Specified by:
getStatusCodeDescription in interface EventDataProvider
Returns:
The String representation of the status code of this event

getStatusCodeIconSelector

public java.lang.String getStatusCodeIconSelector(BasicPrivateLabel bpl)
Gets the map icon-selector for the status code of this event

Returns:
The map icon-selector for the status code of this event

getStatusCodeIconName

public java.lang.String getStatusCodeIconName(BasicPrivateLabel bpl)
Gets the icon-name for the status code of this event

Parameters:
bpl - The domain BasicPrivateLabel
Returns:
The icon-name for the status code of this event

setStatusCode

public void setStatusCode(int v)
Sets the status code of this event

Parameters:
v - The status code of this event

getDataSource

public java.lang.String getDataSource()
Sets the data source for this event. The data source is an optional field defined by the remote client tracking device.

Returns:
The event data source

setDataSource

public void setDataSource(java.lang.String v)
Sets the data source for this event.

Parameters:
v - The data source

getTransportID

public java.lang.String getTransportID()
Sets the transport-id for this event. This is the 'transportID' from the Transport record used to identify this Device.

Returns:
The transport-id used to identify this device.

setTransportID

public void setTransportID(java.lang.String v)
Sets the transport-id for this event.

Parameters:
v - The transport-id used to identify this device.

getRawData

public java.lang.String getRawData()
Gets the Raw Packet data for this event (if available)

Returns:
The Raw Packet data for this event (for blank if not available)

setRawData

public void setRawData(java.lang.String v)
Sets the Raw Packet data for this event (if available)

Parameters:
v - The Raw Packet data for this event

getBestLatitude

public double getBestLatitude()
Gets the best Latitude for this event

Returns:
The best Latitude for this event

getBestLongitude

public double getBestLongitude()
Gets the best Longitude for this event

Returns:
The best Longitude for this event

getBestGeoPoint

public GeoPoint getBestGeoPoint()
Gets the best GeoPoint for this event (does not return null)

Specified by:
getBestGeoPoint in interface EventDataProvider
Returns:
The best GeoPoint for this event

getBestAccuracy

public double getBestAccuracy()
Gets the accuracy radius, in meters

Specified by:
getBestAccuracy in interface EventDataProvider
Returns:
The Accuracy radius, in meters

getGeoPoint

public GeoPoint getGeoPoint()
Gets the GeoPoint for this event

Specified by:
getGeoPoint in interface EventDataProvider
Specified by:
getGeoPoint in interface GeoPointProvider
Returns:
The GeoPoint for this event

setGeoPoint

public void setGeoPoint(double lat,
                        double lng)
Sets the latitude/longitude for this event

Parameters:
lat - The latitude
lng - The longitude

setGeoPoint

public void setGeoPoint(GeoPoint gp)
Sets the latitude/longitude for this event instance

Parameters:
gp - The latitude/longitude

isValidGeoPoint

public boolean isValidGeoPoint()
Returns true if the GeoPoint represented by this event is valid

Specified by:
isValidGeoPoint in interface EventDataProvider
Returns:
True if the GeoPoint represented by this event is valid

getLatitude

public double getLatitude()
Gets the latitude for this event

Specified by:
getLatitude in interface EventDataProvider
Returns:
The latitude for this event

setLatitude

public void setLatitude(double v)
Sets the latitude for this event

Parameters:
v - The latitude for this event

getLongitude

public double getLongitude()
Gets the longitude for this event

Specified by:
getLongitude in interface EventDataProvider
Returns:
The longitude for this event

setLongitude

public void setLongitude(double v)
Sets the longitude for this event

Parameters:
v - The longitude for this event

getGpsAge

public long getGpsAge()
Specified by:
getGpsAge in interface EventDataProvider

setGpsAge

public void setGpsAge(long v)

getSpeedKPH

public double getSpeedKPH()
Specified by:
getSpeedKPH in interface EventDataProvider

setSpeedKPH

public void setSpeedKPH(double v)

getSpeedMPH

public double getSpeedMPH()

getHeading

public double getHeading()
Specified by:
getHeading in interface EventDataProvider

setHeading

public void setHeading(double v)

getAltitude

public double getAltitude()
Specified by:
getAltitude in interface EventDataProvider

getAltitudeString

public java.lang.String getAltitudeString(boolean inclUnits,
                                          java.util.Locale locale)

setAltitude

public void setAltitude(double v)

getOdometerKM

public double getOdometerKM()
Specified by:
getOdometerKM in interface EventDataProvider

setOdometerKM

public void setOdometerKM(double v)

setOdometerKM

public void setOdometerKM(double v,
                          boolean actualOdom)

isActualOdometer

public boolean isActualOdometer()

hasOdometerOffsetKM

public boolean hasOdometerOffsetKM()

getOdometerOffsetKM

public double getOdometerOffsetKM()

setOdometerOffsetKM

public void setOdometerOffsetKM(double v)

getOdometerOffsetKM

public double getOdometerOffsetKM(EventData.OdometerOffsetType offsType)
Returns the odometer value, adjusted with the specified offset type

Returns:
The offset adjusted odometer value

getOdometerWithOffsetKM

public double getOdometerWithOffsetKM()
Returns the odometer value, already adjusted with the EventData/Device offset

Returns:
The offset adjusted odometer value

getDistanceKM

public double getDistanceKM()
Gets the distance/trip odometer value in kilometers.

Returns:
The distance/trip odometer value in kilometers.

setDistanceKM

public void setDistanceKM(double v)
Sets the distance/trip odometer value in kilometers.

Parameters:
v - The distance/trip odometer value in kilometers.

getGeozoneIndex

public long getGeozoneIndex()
Gets the Geozone index provided by the device

Returns:
The Geozone index

setGeozoneIndex

public void setGeozoneIndex(long v)
Sets the Geozone index provided by the device

Parameters:
v - The Geozone index

hasGeozoneID

public boolean hasGeozoneID()
Returns true if this event defines a GeozoneID

Returns:
True if this event defines a GeozoneID

getGeozoneID

public java.lang.String getGeozoneID()
Gets the GeozoneID

Specified by:
getGeozoneID in interface EventDataProvider
Returns:
The GeozoneID

setGeozoneID

public void setGeozoneID(java.lang.String v)
Sets the GeozoneID

Parameters:
v - The GeozoneID

setGeozone

public void setGeozone(Geozone zone)
Sets the Geozone, and GeozoneID

Parameters:
zone - The Geozone instance

hasGeozone

public boolean hasGeozone()
Returns true if this EventData record has a previously defined Geozone instance (Note: this EventData record may still have a valid GeozoneID)

Returns:
True is this EventData record has a defined Geozone

getGeozone

public Geozone getGeozone()
Loads and returns the Geozone for the GeozoneID held by this EventData record. Returns null if this EventData record does not contain a valid GeozoneID.

Returns:
The Geozone, or null if this EventData record has no valid GeozoneID

getGeozoneDescription

public java.lang.String getGeozoneDescription()
Gets the Geozone description

Returns:
The Geozone description, or an empty String if this EventData record does not define a valid GeozoneID

getGeozoneDisplayName

public java.lang.String getGeozoneDisplayName()
Gets the Geozone display name

Returns:
The Geozone display name, or an empty String if this EventData record does not define a valid GeozoneID

getPriority

public int getPriority()
Gets the event priority

Returns:
The event priority

setPriority

public void setPriority(int v)
Sets the event priority

Parameters:
v - The event priority

getEntityID

public java.lang.String getEntityID()

setEntityID

public void setEntityID(java.lang.String v)

getEntityIDList

public java.lang.String[] getEntityIDList(java.lang.String altID)

_getEntityType

public EntityManager.EntityType _getEntityType(EntityManager.EntityType dft)
Gets the Entity type

Parameters:
dft - The default EntityType if unable to determine the actual type
Returns:
The Entity type

getEntityType

public int getEntityType()
Gets the Entity type

Returns:
The Entity type

setEntityType

public void setEntityType(int v)
Sets the Entity type

Parameters:
v - The Entity type

setEntityType

public void setEntityType(EntityManager.EntityType v)
Sets the Entity type

Parameters:
v - The Entity type

setEntityType

public void setEntityType(java.lang.String v,
                          java.util.Locale locale)
Sets the Entity type

Parameters:
v - The Entity type

getEntityTypeDescription

public java.lang.String getEntityTypeDescription(java.util.Locale loc)
Gets the Entity type description text

Parameters:
loc - The Locale for which the text is returned.

getGpsFixType

public int getGpsFixType()
Gets the GPS fix type

Returns:
The GPS fix type

setGpsFixType

public void setGpsFixType(int v)
Sets the GPS fix type

Parameters:
v - The GPS fix type

setGpsFixType

public void setGpsFixType(EventData.GPSFixType v)
Sets the GPS fix type

Parameters:
v - The GPS fix type

setGpsFixType

public void setGpsFixType(java.lang.String v,
                          java.util.Locale locale)
Sets the GPS fix type

Parameters:
v - The GPS fix type

getGpsFixTypeDescription

public java.lang.String getGpsFixTypeDescription(java.util.Locale loc)
Gets the GPS fix type description text

Parameters:
loc - The Locale for which the text is returned.

getGpsFixStatus

public long getGpsFixStatus()

setGpsFixStatus

public void setGpsFixStatus(long v)

getHorzAccuracy

public double getHorzAccuracy()
Specified by:
getHorzAccuracy in interface EventDataProvider

setHorzAccuracy

public void setHorzAccuracy(double v)

getVertAccuracy

public double getVertAccuracy()

setVertAccuracy

public void setVertAccuracy(double v)

getHDOP

public double getHDOP()

setHDOP

public void setHDOP(double v)

getSatelliteCount

public int getSatelliteCount()
Gets the Satellite count

Specified by:
getSatelliteCount in interface EventDataProvider
Returns:
The Satellite count

setSatelliteCount

public void setSatelliteCount(int v)
Sets the Satellite count

Parameters:
v - The Satellite count

getBatteryLevel

public double getBatteryLevel()
Gets the current battery level (as a percent)

Specified by:
getBatteryLevel in interface EventDataProvider
Returns:
The current battery level

setBatteryLevel

public void setBatteryLevel(double v)
Sets the current battery level

Parameters:
v - The current battery level

getBatteryVolts

public double getBatteryVolts()
Gets the current battery voltage

Returns:
The current battery voltage

setBatteryVolts

public void setBatteryVolts(double v)
Sets the current battery voltage

Parameters:
v - The current battery voltage

getBatteryTemp

public double getBatteryTemp()
Gets the battery temperature (C)

Returns:
The battery temperature (C)

setBatteryTemp

public void setBatteryTemp(double v)
Sets the battery temperature (C)

Parameters:
v - The battery temperature (C)

getSignalStrength

public double getSignalStrength()
Gets the current signal strength

Returns:
The current signal strength

setSignalStrength

public void setSignalStrength(double v)
Sets the current signal strength

Parameters:
v - The current signal strength

getSequence

public int getSequence()
Gets the packet sequence number

Returns:
The packet sequence number

setSequence

public void setSequence(int v)
Sets the Satellite count

Parameters:
v - The Satellite count

hasAddress

public boolean hasAddress()
Returns true if an address has been defined

Returns:
True if an address has been defined

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface EventDataProvider

getAddress

public java.lang.String getAddress(boolean lazyUpdate)

setAddress

public void setAddress(java.lang.String v)

reloadAddress

public void reloadAddress()
Reload all reverse-geocoded address fields


updateAddress

public java.util.Set<java.lang.String> updateAddress(boolean fastOnly)
                                              throws SlowOperationException
Throws:
SlowOperationException

updateAddress

public java.util.Set<java.lang.String> updateAddress(boolean fastOnly,
                                                     boolean force)
                                              throws SlowOperationException
Throws:
SlowOperationException

updateAddress

public java.util.Set<java.lang.String> updateAddress(boolean fastOnly,
                                                     boolean force,
                                                     Account.GeocoderMode rgMode)
                                              throws SlowOperationException
Throws:
SlowOperationException

getReverseGeocode

public ReverseGeocode getReverseGeocode(java.lang.String name,
                                        boolean fastOnly)
                                 throws SlowOperationException
Returns a ReverseGeocode instance, using the named ReverseGeocodeProvider, for this event. Returns null if the named ReverseGeocodeProvider does not exist. Will use the 'active' ReverseGeocodeProvider if the specified name is null/blank.

Parameters:
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.
Throws:
SlowOperationException - if "fastOnly" is true, and the this reverse-geocode process is a slow operation.

getStreetAddress

public java.lang.String getStreetAddress()

setStreetAddress

public void setStreetAddress(java.lang.String v)

getCity

public java.lang.String getCity()

setCity

public void setCity(java.lang.String v)

hasStateProvince

public boolean hasStateProvince()

getStateProvince

public java.lang.String getStateProvince()

setStateProvince

public void setStateProvince(java.lang.String v)

getPostalCode

public java.lang.String getPostalCode()

setPostalCode

public void setPostalCode(java.lang.String v)

getCountry

public java.lang.String getCountry()

setCountry

public void setCountry(java.lang.String v)

getSubdivision

public java.lang.String getSubdivision()

setSubdivision

public void setSubdivision(java.lang.String v)

getSpeedLimitKPH

public double getSpeedLimitKPH()
Gets the posted speed limit (typically obtained from the reverse-geocoding service)

Returns:
The posted speed limit

setSpeedLimitKPH

public void setSpeedLimitKPH(double v)
Sets the posted speed limit (typically obtained from the reverse-geocoding service)

Parameters:
v - The posted speed limit

hasSpeedLimitKPH

public boolean hasSpeedLimitKPH()
Returns true if the posted speed limit is defined

Returns:
True if the posted speed limit is defined

getMinimumSpeedingThreshold

public double getMinimumSpeedingThreshold(double dftLimitKPH,
                                          double dftOffsetKPH)
Gets the minimum speed limit threshold, based on the context of the event.

Parameters:
dftLimitKPH - A default minimum speed limit threshold.
dftOffsetKPH - The offset to add to the absolute threshold.
Returns:
The minimum speed limit threshold, or 0 if no threshold defined.

checkSpeedingCondition

public 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

Parameters:
dftLimitKPH - A default minimum speed limit threshold.
dftOffsetKPH - The offset to add to the absolute threshold.
Returns:
The speeding condition.

getIsTollRoad

public boolean getIsTollRoad()

setIsTollRoad

public void setIsTollRoad(boolean v)

isTollRoad

public boolean isTollRoad()

isInputMaskExplicitlySet

public boolean isInputMaskExplicitlySet()

getInputMask

public long getInputMask()
Specified by:
getInputMask in interface EventDataProvider

getInputMaskBitState

public boolean getInputMaskBitState(int bit)

setInputMask

public void setInputMask(long v)

isOutputMaskExplicitlySet

public boolean isOutputMaskExplicitlySet()

getOutputMask

public long getOutputMask()

getOutputMaskBitState

public boolean getOutputMaskBitState(int bit)

setOutputMask

public void setOutputMask(long v)

getSeatbeltMask

public long getSeatbeltMask()

getSeatbeltMaskBitState

public boolean getSeatbeltMaskBitState(int bit)

setSeatbeltMask

public void setSeatbeltMask(long v)

getDoorStateMask

public long getDoorStateMask()

getDoorStateMaskBitState

public boolean getDoorStateMaskBitState(int bit)

setDoorStateMask

public void setDoorStateMask(long v)

getLightsStateMask

public long getLightsStateMask()

getLightsStateMaskBitState

public boolean getLightsStateMaskBitState(int bit)

setLightsStateMask

public void setLightsStateMask(long v)

getBarometer

public double getBarometer()

setBarometer

public void setBarometer(double v)

getAmbientTemp

public double getAmbientTemp()
Gets the ambient air temperature (C)

Returns:
The ambient air temperature (C)

setAmbientTemp

public void setAmbientTemp(double v)
Sets the ambient air temperature (C)

Parameters:
v - The ambient air temperature (C)

getCabinTemp

public double getCabinTemp()
Gets the cabin temperature (C)

Returns:
The cabin temperature (C)

setCabinTemp

public void setCabinTemp(double v)
Sets the cabin temperature (C)

Parameters:
v - The cabin air temperature (C)

getThermoCount

public static int getThermoCount()
Returns the number of defined temperature fields


isValidTemperature

public static boolean isValidTemperature(double t)
Returns true if the specified temperature is valid


getThermoAverageName

public static java.lang.String getThermoAverageName(int ndx)
Gets the temperature field name for the specified index


getThermoAverage

public double getThermoAverage(int ndx)
Gets the temperature value for the specified index


setThermoAverage

public void setThermoAverage(int ndx,
                             double v)

clearThermoAverage

public void clearThermoAverage()

getThermoAverage0

public double getThermoAverage0()

setThermoAverage0

public void setThermoAverage0(double v)

getThermoAverage1

public double getThermoAverage1()

setThermoAverage1

public void setThermoAverage1(double v)

getThermoAverage2

public double getThermoAverage2()

setThermoAverage2

public void setThermoAverage2(double v)

getThermoAverage3

public double getThermoAverage3()

setThermoAverage3

public void setThermoAverage3(double v)

getThermoAverage4

public double getThermoAverage4()

setThermoAverage4

public void setThermoAverage4(double v)

getThermoAverage5

public double getThermoAverage5()

setThermoAverage5

public void setThermoAverage5(double v)

getThermoAverage6

public double getThermoAverage6()

setThermoAverage6

public void setThermoAverage6(double v)

getThermoAverage7

public double getThermoAverage7()

setThermoAverage7

public void setThermoAverage7(double v)

GetAnalogFieldCount

public static int GetAnalogFieldCount()
Returns the number of available analog fields


GetAnalogFieldName

public static java.lang.String GetAnalogFieldName(int ndx)
Returns the analog field name for the specified index


getAnalog

public double getAnalog(int ndx)
Gets the analog value for the specified index


setAnalog

public void setAnalog(int ndx,
                      double v)
Sets the analog value for the specified index


getAnalog0

public double getAnalog0()

setAnalog0

public void setAnalog0(double v)

getAnalog1

public double getAnalog1()

setAnalog1

public void setAnalog1(double v)

getAnalog2

public double getAnalog2()

setAnalog2

public void setAnalog2(double v)

getAnalog3

public double getAnalog3()

setAnalog3

public void setAnalog3(double v)

getPulseCount

public double getPulseCount()

setPulseCount

public void setPulseCount(double v)

getTripStartTime

public long getTripStartTime()

setTripStartTime

public void setTripStartTime(long v)

getTripStopTime

public long getTripStopTime()

setTripStopTime

public void setTripStopTime(long v)

getTripDistanceKM

public double getTripDistanceKM()

setTripDistanceKM

public void setTripDistanceKM(double v)

getTripIdleHours

public double getTripIdleHours()

setTripIdleHours

public void setTripIdleHours(double v)

getTripPtoHours

public double getTripPtoHours()

setTripPtoHours

public void setTripPtoHours(double v)

getTripMaxSpeedKPH

public double getTripMaxSpeedKPH()

setTripMaxSpeedKPH

public void setTripMaxSpeedKPH(double v)

getTripMaxRpm

public long getTripMaxRpm()

setTripMaxRpm

public void setTripMaxRpm(long v)

getTripStartLatitude

public double getTripStartLatitude()

setTripStartLatitude

public void setTripStartLatitude(double v)

getTripStartLongitude

public double getTripStartLongitude()

setTripStartLongitude

public void setTripStartLongitude(double v)

getTripElapsedSeconds

public long getTripElapsedSeconds()

setTripElapsedSeconds

public void setTripElapsedSeconds(long v)

getTripBrakeCount

public long getTripBrakeCount()

setTripBrakeCount

public void setTripBrakeCount(long v)

getTripClutchCount

public long getTripClutchCount()

setTripClutchCount

public void setTripClutchCount(long v)

getDayEngineStarts

public int getDayEngineStarts()

setDayEngineStarts

public void setDayEngineStarts(int v)

getDayIdleHours

public double getDayIdleHours()

setDayIdleHours

public void setDayIdleHours(double v)

getDayFuelIdle

public double getDayFuelIdle()

setDayFuelIdle

public void setDayFuelIdle(double v)

getDayWorkHours

public double getDayWorkHours()

setDayWorkHours

public void setDayWorkHours(double v)

getDayFuelWork

public double getDayFuelWork()

setDayFuelWork

public void setDayFuelWork(double v)

getDayFuelPTO

public double getDayFuelPTO()

setDayFuelPTO

public void setDayFuelPTO(double v)

getDayDistanceKM

public double getDayDistanceKM()

setDayDistanceKM

public void setDayDistanceKM(double v)

getDayFuelTotal

public double getDayFuelTotal()

setDayFuelTotal

public void setDayFuelTotal(double v)

canUpdateCellTowerLocation

public boolean canUpdateCellTowerLocation()

updateCellTowerLocation

public java.util.Set<java.lang.String> updateCellTowerLocation()

getCellLatitude

public double getCellLatitude()

setCellLatitude

public void setCellLatitude(double v)

getCellLongitude

public double getCellLongitude()

setCellLongitude

public void setCellLongitude(double v)

setCellGeoPoint

public void setCellGeoPoint(GeoPoint gp)

getCellGeoPoint

public GeoPoint getCellGeoPoint()

hasCellLocation

public boolean hasCellLocation()

getCellAccuracy

public double getCellAccuracy()

setCellAccuracy

public void setCellAccuracy(double v)

getMobileCountryCode

public int getMobileCountryCode()

setMobileCountryCode

public void setMobileCountryCode(int v)

getMobileNetworkCode

public int getMobileNetworkCode()

setMobileNetworkCode

public void setMobileNetworkCode(int v)

getCellTimingAdvance

public int getCellTimingAdvance()

setCellTimingAdvance

public void setCellTimingAdvance(int v)

getLocationAreaCode

public int getLocationAreaCode()

setLocationAreaCode

public void setLocationAreaCode(int v)

getCellTowerID

public int getCellTowerID()

setCellTowerID

public void setCellTowerID(int v)

getCellServingInfo

public java.lang.String getCellServingInfo()

setCellServingInfo

public void setCellServingInfo(java.lang.String v)

getServingCellTower

public org.opengts.cellid.CellTower getServingCellTower()

setServingCellTower

public void setServingCellTower(org.opengts.cellid.CellTower cti)

getCellNeighborInfo0

public java.lang.String getCellNeighborInfo0()

setCellNeighborInfo0

public void setCellNeighborInfo0(java.lang.String v)

getCellNeighborInfo1

public java.lang.String getCellNeighborInfo1()

setCellNeighborInfo1

public void setCellNeighborInfo1(java.lang.String v)

getCellNeighborInfo2

public java.lang.String getCellNeighborInfo2()

setCellNeighborInfo2

public void setCellNeighborInfo2(java.lang.String v)

getCellNeighborInfo3

public java.lang.String getCellNeighborInfo3()

setCellNeighborInfo3

public void setCellNeighborInfo3(java.lang.String v)

getCellNeighborInfo4

public java.lang.String getCellNeighborInfo4()

setCellNeighborInfo4

public void setCellNeighborInfo4(java.lang.String v)

getCellNeighborInfo5

public java.lang.String getCellNeighborInfo5()

setCellNeighborInfo5

public void setCellNeighborInfo5(java.lang.String v)

getNeighborCellTower

public org.opengts.cellid.CellTower getNeighborCellTower(int ndx)

setNeighborCellTower

public void setNeighborCellTower(int ndx,
                                 org.opengts.cellid.CellTower cti)

getNeighborCellTowers

public org.opengts.cellid.CellTower[] getNeighborCellTowers()

setNeighborCellTowers

public void setNeighborCellTowers(org.opengts.cellid.CellTower[] nct)

setNeighborCellTowers

public void setNeighborCellTowers(java.util.List<org.opengts.cellid.CellTower> nct)

hasDriverID

public boolean hasDriverID()
Returns true if thie event has a defined driver-id

Returns:
True if thie event has a defined driver-id

getDriverID

public java.lang.String getDriverID()
Gets the driver id

Returns:
The driver id

setDriverID

public void setDriverID(java.lang.String v)
Sets the driver id

Parameters:
v - The driver id

getDriverID

public java.lang.String getDriverID(boolean chkDevIfBlank)
Gets the driver id

Parameters:
chkDevIfBlank - If true, and the event driver-id is blank, then this method will also check the parent device record.
Returns:
The driver id

getDriver

public Driver getDriver(boolean chkDevIfBlank)
Gets the driver record instance

Parameters:
chkDevIfBlank - If true, and the event driver-id is blank, then this method will also check the parent device record.
Returns:
The driver record

hasDriverStatus

public boolean hasDriverStatus()
Returns true if this event has a defined driver-status (value >= 0)

Returns:
True if this event has a defined driver-status

getDriverStatus

public long getDriverStatus()
Gets the driver status

Returns:
The driver status

setDriverStatus

public void setDriverStatus(long v)
Sets the driver status

Parameters:
v - The driver status

hasDriverMessage

public boolean hasDriverMessage()
Returns true if a driver message is defined

Returns:
True if a driver message is defined

getDriverMessage

public java.lang.String getDriverMessage()
Gets the driver message

Returns:
The driver message

setDriverMessage

public void setDriverMessage(java.lang.String v)
Sets the driver message

Parameters:
v - The driver message

getEmailRecipient

public java.lang.String getEmailRecipient()
Gets the email recipient

Returns:
The email recipient

setEmailRecipient

public void setEmailRecipient(java.lang.String v)
Sets the email recipient

Parameters:
v - The email recipient

getSensorLow

public long getSensorLow()
Gets the low sensor value

Returns:
The low sensor value

setSensorLow

public void setSensorLow(long v)
Sets the low sensor value

Parameters:
v - The low sensor value

getSensorHigh

public long getSensorHigh()
Gets the high sensor value

Returns:
The high sensor value

setSensorHigh

public void setSensorHigh(long v)
Sets the high sensor value

Parameters:
v - The high sensor value

getSampleIndex

public int getSampleIndex()
Gets the sample index

Returns:
The sample index

setSampleIndex

public void setSampleIndex(int v)
Sets the sample index

Parameters:
v - The sample index

getSampleID

public java.lang.String getSampleID()
Gets the sample ID

Returns:
The sample ID

setSampleID

public void setSampleID(java.lang.String v)
Sets the sample ID

Parameters:
v - The sample ID

getImpactDataPeriod

public int getImpactDataPeriod()
Gets the impact data period. (0=pre-impact, 1=post-impact)


setImpactDataPeriod

public void setImpactDataPeriod(int v)
Sets the impact data period.


getImpactDataStatus

public int getImpactDataStatus()
Gets the impact data status.

Returns:
The impact data status (0=none, 1=partial, 2=complete)

setImpactDataStatus

public void setImpactDataStatus(int v)
Sets the impact data status

Parameters:
v - The impact data status (0=none, 1=partial, 2=complete)

getImpactDataIndex

public int getImpactDataIndex()
Gets the impact data index


setImpactDataIndex

public void setImpactDataIndex(int v)
Sets the impact data index


getImpactDataType

public java.lang.String getImpactDataType()
Gets the impact data type


setImpactDataType

public void setImpactDataType(java.lang.String v)
Sets the impact data type


getImpactData

public java.lang.String getImpactData()
Gets the impact data


setImpactData

public void setImpactData(java.lang.String v)
Sets the impact data


getImpactMagnitude

public double getImpactMagnitude()
Gets the maximum impact magnitude (in Meters/Second/Second)


getLeaseStartDate

public long getLeaseStartDate()
Gets the lease starting day number

Returns:
The lease starting day number

setLeaseStartDate

public void setLeaseStartDate(long v)
Sets the lease starting day number

Parameters:
v - The lease starting day number

setLeaseStartDate

public void setLeaseStartDate(int year,
                              int month,
                              int day)
Sets the lease starting date

Parameters:
year - The lease starting year
month - The lease starting month (1..12)
day - The lease starting day of month

setLeaseStartDate

public void setLeaseStartDate(DayNumber dn)
Sets the lease starting day number

Parameters:
dn - The lease starting day number

getLeaseEndDate

public long getLeaseEndDate()
Gets the lease ending day number

Returns:
The lease ending day number

setLeaseEndDate

public void setLeaseEndDate(long v)
Sets the lease ending day number

Parameters:
v - The lease ending day number

setLeaseEndDate

public void setLeaseEndDate(int year,
                            int month,
                            int day)
Sets the lease ending date

Parameters:
year - The lease ending year
month - The lease ending month (1..12)
day - The lease ending day of month

setLeaseEndDate

public void setLeaseEndDate(DayNumber dn)
Sets the lease ending day number

Parameters:
dn - The lease ending day number

getLeaseStartOdomKM

public double getLeaseStartOdomKM()
Gets the starting odometer at the beginning of the lease

Returns:
The starting odometer at the beginning of the lease

setLeaseStartOdomKM

public void setLeaseStartOdomKM(double v)
Sets the starting odometer at the beginning of the lease

Parameters:
v - The starting odometer at the beginning of the lease

getLeaseAllowedDistKM

public double getLeaseAllowedDistKM()
Gets the allowed distance over the term of the lease

Returns:
The allowed distance over the term of the lease

setLeaseAllowedDistKM

public void setLeaseAllowedDistKM(double v)
Sets the allowed distance over the term of the lease

Parameters:
v - The allowed distance over the term of the lease

getLeaseContractID

public java.lang.String getLeaseContractID()
Gets the lease contract id/number

Returns:
The lease contract id/number

setLeaseContractID

public void setLeaseContractID(java.lang.String v)
Sets the lease contract id/number

Parameters:
v - The lease contract id/number

getBrakeGForce

public double getBrakeGForce()
Gets the brake G-force

Returns:
The brake G-force

setBrakeGForce

public void setBrakeGForce(double v)
Sets the brake G-force

Parameters:
v - The brake G-force

getAcceleration

public double getAcceleration()
Gets the acceleration (meters-per-second-squared)

Returns:
The acceleration (m/s/s)

setAcceleration

public void setAcceleration(double v)
Sets the acceleration (meters-per-second-squared)

Parameters:
v - The acceleration (m/s/s)

getAccelerometerXYZ

public java.lang.String getAccelerometerXYZ()
Gets the accelerometer XYZ-axis values (meters-per-second-squared). String returned in the format "X,Y,Z"

Returns:
The accelerometer XYZ-axis values (m/s/s)

setAccelerometerXYZ

public 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".

Parameters:
v - The accelerometer XYZ-axis values (m/s/s)

getAccelerometer

public Accelerometer getAccelerometer()
Gets the accelerometer XYZ-axis values (meters-per-second-squared)

Returns:
The accelerometer XYZ-axis values (m/s/s)

setAccelerometer

public void setAccelerometer(Accelerometer xyz)
Gets the accelerometer XYZ-axis values (meters-per-second-squared)

Parameters:
xyz - The accelerometer XYZ-axis values (m/s/s)

getBrakePressure

public double getBrakePressure()
Gets the brake pressure

Returns:
The brake pressure

setBrakePressure

public void setBrakePressure(double v)
Sets the brake pressure

Parameters:
v - The brake pressure

getMassAirFlowRate

public double getMassAirFlowRate()
Gets the mass air flow rate (g/sec)

Returns:
The mass air flow rate (g/sec)

setMassAirFlowRate

public void setMassAirFlowRate(double v)
Sets the mass air flow rate (g/sec)

Parameters:
v - The mass air flow rate (g/sec)

getTirePressure

public java.lang.String getTirePressure()
Gets the tire pressure list as a comma separated String

Returns:
The tire pressure string

getTirePressure_kPa

public double[] getTirePressure_kPa()
Gets an array of tire pressures (kPa)

Returns:
An array of tire pressures (kPa)

getTirePressure_psi

public double[] getTirePressure_psi()
Gets an array of tire pressures (PSI)

Returns:
An array of tire pressures (PSI)

getTirePressure_units

public double[] getTirePressure_units(Account.PressureUnits pu)
Gets an array of tire pressures in the specified units

Returns:
An array of tire pressures in the specified units

setTirePressure

public void setTirePressure(java.lang.String v)
Sets the tire pressure list as a comma separated String

Parameters:
v - The tire pressure string

setTirePressure_kPa

public void setTirePressure_kPa(double[] v)
Sets an array of tire pressures (kPa)

Parameters:
v - An array of tire pressures (kPa)

setTirePressure_psi

public void setTirePressure_psi(double[] v)
Sets an array of tire pressures (PSI)

Parameters:
v - An array of tire pressures (PSI)

getTireTemp

public java.lang.String getTireTemp()
Gets the tire temperature list as a comma separated String

Returns:
The tire temperature string

getTireTemp_C

public double[] getTireTemp_C()
Gets an array of tire temperatures (C)

Returns:
An array of tire temperatures (C)

getTireTemp_units

public double[] getTireTemp_units(Account.TemperatureUnits tu)
Gets an array of tire temperatures in the specified units

Returns:
An array of tire temperatures in the specified units

setTireTemp

public void setTireTemp(java.lang.String v)
Sets the tire temperature list as a comma separated String

Parameters:
v - The tire temperature string

setTireTemp_C

public void setTireTemp_C(double[] v)
Sets an array of tire temperatures (C)

Parameters:
v - An array of tire temperatures (C)

getTankLevel

public double getTankLevel()
Gets the general tank level

Returns:
The general tank level

setTankLevel

public void setTankLevel(double v)
Sets the general tank level

Parameters:
v - The general tank level

getDataPush

public boolean getDataPush()
Gets the data-push flag

Returns:
The data-push flag

setDataPush

public void setDataPush(boolean v)
Sets the data-push flag

Parameters:
v - The data-push flag

getCostCenter

public long getCostCenter()
Gets the cost center

Returns:
The cost center

setCostCenter

public void setCostCenter(long v)
Sets the cost center

Parameters:
v - The cost center

getJobNumber

public java.lang.String getJobNumber()
Gets the job number

Returns:
The job number

setJobNumber

public void setJobNumber(java.lang.String v)
Sets the job number

Parameters:
v - The job number

hasJobNumber

public boolean hasJobNumber()
Returns true if Job number is defined

Returns:
True if Job number is defined

getRfidTag

public java.lang.String getRfidTag()
Gets the stored RFID tag

Returns:
The stored RFID tag

setRfidTag

public void setRfidTag(java.lang.String v)
Sets the stored RFID tag

Parameters:
v - The stored RFID tag

getAttachType

public java.lang.String getAttachType()
Gets the attachment MIME type (used with "attachData")

Returns:
The attachment MIME type

setAttachType

public void setAttachType(java.lang.String v)
Sets the attachment MIME type (used with "attachData")

Parameters:
v - The attachment MIME type

isAttachType

public boolean isAttachType(java.lang.String type)
Returns true if the attachment type matches the specified type

Parameters:
type - The target attachment type
Returns:
True if match, false otherwise

hasAttachData

public boolean hasAttachData()
Returns true if this event record has attached data

Returns:
True if this event record has attached data

getAttachData

public byte[] getAttachData()
Gets the attachment data

Returns:
The attachment data

setAttachData

public void setAttachData(byte[] v)
Sets the attachment data

Parameters:
v - The attachment data

setAttachment

public void setAttachment(java.lang.String mimeType,
                          byte[] data)
Sets the attachment data

Parameters:
mimeType - The MIME type
data - The attachment data

getAttachRTProperties

public RTProperties getAttachRTProperties()
Gets the attachment as an RTProperties instance.

Returns:
The attachment data converted to an RTProperties instance, or null if unable to convert attachment to an RTProperties instance.

getEtaTimestamp

public long getEtaTimestamp()
Gets the ETA timestamp in Unix/Epoch time

Returns:
The ETA timestamp of this event

setEtaTimestamp

public void setEtaTimestamp(long v)
Sets the ETA timestamp in Unix/Epoch time

Parameters:
v - The ETA timestamp

getEtaUniqueID

public long getEtaUniqueID()
Gets the ETA unique-id

Returns:
The ETA unique-id

setEtaUniqueID

public void setEtaUniqueID(long v)
Sets the ETA unique-id

Parameters:
v - The ETA unique-id

getEtaDistanceKM

public double getEtaDistanceKM()
Gets the ETA distance in kilometers

Returns:
The ETA distance in kilometers

setEtaDistanceKM

public void setEtaDistanceKM(double v)
Sets the ETA distance in kilometers

Parameters:
v - The ETA distance in kilometers

getEtaLatitude

public double getEtaLatitude()
Gets the ETA Latitude

Returns:
The ETA Latitude

setEtaLatitude

public void setEtaLatitude(double v)
Sets the ETA Latitude

Parameters:
v - The ETA Latitude

setEtaGeoPoint

public void setEtaGeoPoint(GeoPoint gp)
Sets the ETA GeoPoint

Parameters:
gp - The ETA GeoPoint

getEtaGeoPoint

public GeoPoint getEtaGeoPoint()
Gets the ETA GeoPoint

Returns:
The ETA GeoPoint

getEtaLongitude

public double getEtaLongitude()
Gets the ETA Longitude

Returns:
The ETA Longitude

setEtaLongitude

public void setEtaLongitude(double v)
Sets the ETA Longitude

Parameters:
v - The ETA Longitude

getStopID

public long getStopID()
Gets the STOP id

Returns:
The STOP id

setStopID

public void setStopID(long v)
Sets the STOP id

Parameters:
v - The STOP id

getStopStatus

public int getStopStatus()
Gets the STOP Status

Returns:
The STOP Status

setStopStatus

public void setStopStatus(int v)
Sets the STOP Status

Parameters:
v - The STOP Status

getStopIndex

public int getStopIndex()
Gets the STOP Index

Returns:
The STOP Index

setStopIndex

public void setStopIndex(int v)
Sets the STOP Index

Parameters:
v - The STOP Index

getMessageTimestamp

public long getMessageTimestamp()
Gets the MESSAGE time

Returns:
The MESSAGE time

setMessageTimestamp

public void setMessageTimestamp(long v)
Sets the MESSAGE time

Parameters:
v - The MESSAGE time

getMessageID

public long getMessageID()
Gets the MESSAGE id

Returns:
The MESSAGE id

setMessageID

public void setMessageID(long v)
Sets the MESSAGE id

Parameters:
v - The MESSAGE id

getMessageStatus

public int getMessageStatus()
Gets the MESSAGE Status

Returns:
The MESSAGE Status

setMessageStatus

public void setMessageStatus(int v)
Sets the MESSAGE Status

Parameters:
v - The MESSAGE Status

getFuelPressure

public double getFuelPressure()
Gets the fuel pressure

Returns:
The fuel pressure

setFuelPressure

public void setFuelPressure(double v)
Sets the fuel pressure

Parameters:
v - The fuel pressure

getFuelUsage

public double getFuelUsage()
Gets the fuel usage (rate of use) in Litres/Hour

Returns:
The fuel usage (rate of use)

setFuelUsage

public void setFuelUsage(double v)
Sets the fuel usage (rate of use) in Litres/Hour

Parameters:
v - The fuel usage (rate of use)

getFuelTemp

public double getFuelTemp()
Gets the fuel temperature

Returns:
The fuel temperature

setFuelTemp

public void setFuelTemp(double v)
Sets the fuel temperature

Parameters:
v - The fuel temperature

getFuelLevel

public double getFuelLevel()
Gets the fuel level

Returns:
The fuel level

setFuelLevel

public void setFuelLevel(double v)
Sets the fuel level

Parameters:
v - The fuel level

getFuelLevel

public double getFuelLevel(boolean estimate)
Gets the fuel-level

Parameters:
estimate - True to estimate the fuel level based on other criteria available to this event (ie. fuel-remaining, etc)
Returns:
The estimated fuel-level

getFuelLevelVolume_Liters

public double getFuelLevelVolume_Liters()
Gets the fuel volume in Liters, based on the level and estimated fuel capacity

Returns:
The fuel volume

getFuelLevelVolume_Units

public double getFuelLevelVolume_Units()
Gets the fuel volume in the Account preferred units, based on the level and estimated fuel capacity

Returns:
The fuel volume

getFuelLevel2

public double getFuelLevel2()
Gets the fuel level in the alternate/second tank

Returns:
The fuel level in the alternate/second tank

setFuelLevel2

public void setFuelLevel2(double v)
Sets the fuel level in the alternate/second tank

Parameters:
v - The fuel level in the alternate/second tank

getFuelEconomy

public double getFuelEconomy()
Gets the instantaneous fuel economy (km/Litre)

Returns:
The instantaneous fuel economy

setFuelEconomy

public void setFuelEconomy(double v)
Sets the instantaneous fuel economy

Parameters:
v - The instantaneous fuel economy

getFuelTotal

public double getFuelTotal()
Gets the total fuel used

Returns:
The total fuel used

setFuelTotal

public void setFuelTotal(double v)
Sets the total fuel used

Parameters:
v - The total fuel used

getFuelRemain

public double getFuelRemain()
Gets the fuel remaining in the tank (in Litres)

Returns:
The fuel remaining in Litres

setFuelRemain

public void setFuelRemain(double v)
Sets the fuel remaining in the tank (in Litres)

Parameters:
v - The fuel remaining in Litres

getFuelRemain

public double getFuelRemain(boolean estimate)
Gets the fuel remaining in the tank (in Litres)

Parameters:
estimate - True to estimate fuel remaining based on device tank capacity and fuel level
Returns:
The fuel remaining

getFuelTrip

public double getFuelTrip()
Gets the trip fuel used

Returns:
The trip fuel used

setFuelTrip

public void setFuelTrip(double v)
Sets the trip fuel used

Parameters:
v - The trip fuel used

getFuelIdle

public double getFuelIdle()
Gets the idle fuel used

Returns:
The idle fuel used

setFuelIdle

public void setFuelIdle(double v)
Sets the idle fuel used

Parameters:
v - The idle fuel used

getFuelPTO

public double getFuelPTO()
Gets the PTO fuel used

Returns:
The PTO fuel used

setFuelPTO

public void setFuelPTO(double v)
Sets the PTO fuel used

Parameters:
v - The PTO fuel used

getFuelEngineOn

public double getFuelEngineOn()
Gets the fuel used since last engine-on

Returns:
The fuel used since last engine-on

setFuelEngineOn

public void setFuelEngineOn(double v)
Sets the fuel used since last engine-on

Parameters:
v - The fuel used since last engine-on

getEngineRpm

public long getEngineRpm()
Gets the engine RPM

Returns:
The engine RPM

setEngineRpm

public void setEngineRpm(long v)
Sets the engine RPM

Parameters:
v - The engine RPM

getEngineHours

public double getEngineHours()
Gets the engine hours

Returns:
The engine hours

setEngineHours

public void setEngineHours(double v)
Sets the engine hours

Parameters:
v - The engine hours

getEngineOnHours

public double getEngineOnHours()
Gets the engine hours since last engine on

Returns:
The engine hours since last engine on

setEngineOnHours

public void setEngineOnHours(double v)
Sets the engine hours since last engine on

Parameters:
v - The engine hours since last engine on

getEngineLoad

public double getEngineLoad()
Gets the engine load (percent)

Returns:
The engine load (percent)

setEngineLoad

public void setEngineLoad(double v)
Sets the engine load (percent)

Parameters:
v - The engine load (percent)

getEngineTorque

public double getEngineTorque()
Gets the engine torque

Returns:
The engine torque

setEngineTorque

public void setEngineTorque(double v)
Sets the engine torque

Parameters:
v - The engine torque

getIdleHours

public double getIdleHours()
Gets the engine idle hours

Returns:
The engine idle hours

setIdleHours

public void setIdleHours(double v)
Sets the engine idle hours

Parameters:
v - The engine idle hours

getWorkHours

public double getWorkHours()
Gets the engine work hours

Returns:
The engine work hours

setWorkHours

public void setWorkHours(double v)
Sets the engine work hours

Parameters:
v - The engine work hours

getWorkDistanceKM

public double getWorkDistanceKM()
Gets the work distance tripometer value in kilometers.

Returns:
The work distance tripometer value in kilometers.

setWorkDistanceKM

public void setWorkDistanceKM(double v)
Sets the work distance tripometer value in kilometers.

Parameters:
v - The work distance tripometer value in kilometers.

getTransOilTemp

public double getTransOilTemp()
Gets the transmission oil temperature

Returns:
The transmission oil temperature

setTransOilTemp

public void setTransOilTemp(double v)
Sets the transmission oil temperature

Parameters:
v - The transmission oil temperature

getOilCoolerInTemp

public double getOilCoolerInTemp()
Gets the oil cooler inlet temperature

Returns:
The oil cooler inlet temperature

setOilCoolerInTemp

public void setOilCoolerInTemp(double v)
Sets the oil cooler inlet temperature

Parameters:
v - The oil cooler inlet temperature

getOilCoolerOutTemp

public double getOilCoolerOutTemp()
Gets the oil cooler outlet temperature

Returns:
The oil cooler outlet temperature

setOilCoolerOutTemp

public void setOilCoolerOutTemp(double v)
Sets the oil cooler outlet temperature

Parameters:
v - The oil cooler outlet temperature

getCoolantLevel

public double getCoolantLevel()
Gets the coolant level (percent)

Returns:
The coolant level (percent)

setCoolantLevel

public void setCoolantLevel(double v)
Sets the coolant level (percent)

Parameters:
v - The coolant level (percent)

getCoolantTemp

public double getCoolantTemp()
Gets the coolant temperature (C)

Returns:
The coolant temperature (C)

setCoolantTemp

public void setCoolantTemp(double v)
Sets the coolant temperature (C)

Parameters:
v - The coolant temperature (C)

getEngineTemp

public double getEngineTemp()
Gets the engine temperature (C)

Returns:
The engine temperature (C)

setEngineTemp

public void setEngineTemp(double v)
Sets the engine temperature (C)

Parameters:
v - The engine temperature (C)

getIntakeTemp

public double getIntakeTemp()
Gets the intake temperature (C)

Returns:
The intake temperature (C)

setIntakeTemp

public void setIntakeTemp(double v)
Sets the intake temperature (C)

Parameters:
v - The intake temperature (C)

getOilPressure

public double getOilPressure()
Gets the oil pressure

Returns:
The oil pressure

setOilPressure

public void setOilPressure(double v)
Sets the oil pressure

Parameters:
v - The oil pressure

getOilLevel

public double getOilLevel()
Gets the oil level (percent)

Returns:
The oil level (percent)

setOilLevel

public void setOilLevel(double v)
Sets the oil level (percent)

Parameters:
v - The oil level (percent)

getOilTemp

public double getOilTemp()
Gets the oil temperature (C)

Returns:
The oil temperature (C)

setOilTemp

public void setOilTemp(double v)
Sets the oil temperature (C)

Parameters:
v - The oil temperature (C)

getAirPressure

public double getAirPressure()
Gets the air pressure (kPa)

Returns:
The air pressure (kPa)

setAirPressure

public void setAirPressure(double v)
Sets the air pressure (kPa)

Parameters:
v - The air pressure (kPa)

getAirFilterPressure

public double getAirFilterPressure()
Gets the air filter pressure (kPa)

Returns:
The air filter pressure (kPa)

setAirFilterPressure

public void setAirFilterPressure(double v)
Sets the air filter pressure (kPa)

Parameters:
v - The air filter pressure (kPa)

getTurboPressure

public double getTurboPressure()
Gets the turbo pressure (kPa)

Returns:
The turbo pressure (kPa)

setTurboPressure

public void setTurboPressure(double v)
Sets the turbo pressure (kPa)

Parameters:
v - The turbo pressure (kPa)

getPtoEngaged

public boolean getPtoEngaged()
Gets the PTO engaged state

Returns:
The PTO engaged state

setPtoEngaged

public void setPtoEngaged(boolean v)
Sets the PTO engaged state

Parameters:
v - The PTO engaged state

getPtoHours

public double getPtoHours()
Gets the PTO hours

Returns:
The PTO hours

setPtoHours

public void setPtoHours(double v)
Sets the PTO hours

Parameters:
v - The PTO hours

getPtoDistanceKM

public double getPtoDistanceKM()
Gets the PTO distance tripometer value in kilometers.

Returns:
The PTO distance tripometer value in kilometers.

setPtoDistanceKM

public void setPtoDistanceKM(double v)
Sets the PTO distance tripometer value in kilometers.

Parameters:
v - The PTO distance tripometer value in kilometers.

getThrottlePos

public double getThrottlePos()
Gets the throttle position (percent)

Returns:
The throttle position (percent)

setThrottlePos

public void setThrottlePos(double v)
Sets the throttle position (percent)

Parameters:
v - The throttle position (percent)

getBrakePos

public double getBrakePos()
Gets the brake position (percent)

Returns:
The brake position (percent)

setBrakePos

public void setBrakePos(double v)
Sets the brake position (percent)

Parameters:
v - The brake position (percent)

getVBatteryVolts

public double getVBatteryVolts()
Gets the vehicle battery volts

Returns:
The vehicle battery volts

setVBatteryVolts

public void setVBatteryVolts(double v)
Sets the vehicle battery volts

Parameters:
v - The vehicle battery volts

getJ1708Fault

public long getJ1708Fault()
Gets the OBD(DTC)/J1708 fault code (encoded)

Returns:
The OBD(DTC)/J1708 fault code (encoded)

setJ1708Fault

public void setJ1708Fault(long v)
Sets the OBD(DTC)/J1708 fault code (encoded)

Parameters:
v - The OBD(DTC)/J1708 fault code (encoded)

getOBDFault

public long getOBDFault()
Gets the OBD(DTC)/J1708 fault code (encoded)

Returns:
The OBD(DTC)/J1708 fault code (encoded)
See Also:
getJ1708Fault()

setOBDFault

public void setOBDFault(long v)
Sets the OBD(DTC)/J1708 fault code (encoded)

Parameters:
v - The OBD(DTC)/J1708 fault code (encoded)
See Also:
setJ1708Fault(long)

supportsFaultCode

public static boolean supportsFaultCode()
Returns true if the fault code string is supported

Returns:
True if the fault code string is supported

getFaultCode

public java.lang.String getFaultCode()
Gets the fault code string

Returns:
The fault code string

setFaultCode

public void setFaultCode(java.lang.String v)
Sets the fault code string
IE. "OBDII: type=obdii mil=1 dtc=P0071"

Parameters:
v - The fault code string

hasFaultCode

public boolean hasFaultCode()
Returns true if this event contains a non-blank fault code string

Returns:
True if this event contains a non-blank fault code string

getFaultCodeRTProperties

public RTProperties getFaultCodeRTProperties()
Gets the fault code string value as an RTProperties instance

Returns:
The fault code string value as an RTProperties instance

setFaultCode_OBDII

public void setFaultCode_OBDII(java.lang.String[] dtc)
Sets the OBDII fault codes

Parameters:
dtc - An array of DTC value codes

getMalfunctionLamp

public boolean getMalfunctionLamp()
Returns true if the Malfunction-Indicator-Lamp is on

Returns:
True if the Malfunction-Indicator-Lamp is on

setMalfunctionLamp

public void setMalfunctionLamp(boolean v)
Sets the Malfunction-Indicator-Lamp state

Parameters:
v - The Malfunction-Indicator-Lamp state

hasMalfunctionLamp

public boolean hasMalfunctionLamp()
Returns true if the MalfunctionLamp was explicitly set (using "setMalfunctionLam(...)")

Returns:
True if the MalfunctionLamp was explicitly set

setCreationDefaultValues

public void setCreationDefaultValues()
Called at new record creation time to initialize default values

Overrides:
setCreationDefaultValues in class DBRecord<EventData>

setEventIndex

public void setEventIndex(int ndx)
Sets the Event index (used for reporting)

Specified by:
setEventIndex in interface EventDataProvider
Parameters:
ndx - The event index

getEventIndex

public int getEventIndex()
Gets the Event index (used for reporting)

Specified by:
getEventIndex in interface EventDataProvider
Returns:
The event index

getIsFirstEvent

public boolean getIsFirstEvent()
Returns true if this event is the first event

Specified by:
getIsFirstEvent in interface EventDataProvider
Returns:
True if this event is the first event

setIsLastEvent

public void setIsLastEvent(boolean isLast)
Sets the last event state for this event

Specified by:
setIsLastEvent in interface EventDataProvider
Parameters:
isLast - The last event state

getIsLastEvent

public boolean getIsLastEvent()
Returns true if this event is the last event

Specified by:
getIsLastEvent in interface EventDataProvider
Returns:
True if this event is the last event

showLastEventDevicePushpin

public boolean showLastEventDevicePushpin(boolean isFleet,
                                          BasicPrivateLabel bpl)
Returns true if the Device pushpin should be shown for the last event

Parameters:
isFleet - True for the group/fleet map
bpl - The BasicPrivateLabel instance
Returns:
True if the Device pushpin should be shown for the last event

getReportDistanceKM

public double getReportDistanceKM()
Gets the Report distance (kilometers)

Returns:
The Report distance (kilometers)

getReportDistanceGP

public GeoPoint getReportDistanceGP()
Gets the Report location (GeoPoint)

Returns:
The Report location (GeoPoint)

setReportDistanceKM

public void setReportDistanceKM(double km,
                                GeoPoint gp)
Sets the report distance and location (kilometers)

Parameters:
km - The report distance (kilometers)
gp - The report location

calculateReportDistance

public boolean calculateReportDistance(EventData lastEV)
Calculates the report distance for this EventData instance

Parameters:
lastEV - The prior event
Returns:
True if the report distance/location is set

calculateReportDistance

public static void calculateReportDistance(EventData[] evList)
Calculates the report distance for the specified array of EventData instances

Parameters:
evList - The EventData array

calculateReportDistance

public static void calculateReportDistance(java.util.Collection<EventData> evList)
Calculates the report distance for the specified list of EventData instances

Parameters:
evList - The EventData list

getStartStopSupported

public boolean getStartStopSupported(boolean dft)
Gets the "Start/Stop StatusCode supported" config

Parameters:
dft - The default "Start/Stop StatusCode supported" state
Returns:
The "Start/Stop StatusCode supported" state

getStartStopStatusCodes

public int[] getStartStopStatusCodes()
Returns the start/stop status codes defined in the Device record

Returns:
The start/stop status codes

isStartEvent

public boolean isStartEvent(boolean checkSpeed)
Returns true if this event represents a start event

Parameters:
checkSpeed - True to use the speed of the event in the start event determination
Returns:
True if this event represents a start event

isStartEvent

public boolean isStartEvent(int[] ssc,
                            boolean checkSpeed)
Returns true if this event represents a start event

Parameters:
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
Returns:
True if this event represents a start event

isStopEvent

public boolean isStopEvent(boolean checkSpeed)
Returns true if this event represents a stop event

Parameters:
checkSpeed - True to use the speed of the event in the stop event determination
Returns:
True if this event represents a stop event

isStopEvent

public boolean isStopEvent(int[] ssc,
                           boolean checkSpeed)
Returns true if this event represents a stop event

Parameters:
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
Returns:
True if this event represents a stop event

setStopped

public void setStopped(boolean stopped)
Sets the vehicle 'stopped' state

Parameters:
stopped - The current vehicle stopped state

isStopped

public boolean isStopped()
Gets the vehicle 'stopped' state

Returns:
true if stopped

setSynthesizedEvent

public void setSynthesizedEvent(boolean isSynthesized)
Sets the synthesized event state (ie. an event that was generated based on other analyzed criteria)

Parameters:
isSynthesized - True to indicate a synthesized event

getIsSynthesizedEvent

public boolean getIsSynthesizedEvent()
Returns the synthesized event state

Returns:
The synthesized event state

setPushpinIconIndexProvider

public void setPushpinIconIndexProvider(PushpinIconIndexProvider piip)
Sets the Pushpin Icon Index Provider

Parameters:
piip - The PushpinIconIndexProvider instance

setPushpinIconIndex

public void setPushpinIconIndex(int epii)
Sets the explicit Pushpin Icon Index

Parameters:
epii - The PushpinIconIndexProvider instance

setPushpinIconIndex

public void setPushpinIconIndex(java.lang.String iconName,
                                OrderedSet<java.lang.String> iconKeys)
Sets the explicit Pushpin Icon Index

Parameters:
iconName - The icon name
iconKeys - The list of icon keys from which the index is derived, based on the position of icon name in this list.

getPushpinIconIndex

public int getPushpinIconIndex(java.lang.String iconSelector,
                               OrderedSet<java.lang.String> iconKeys,
                               boolean isFleet,
                               BasicPrivateLabel bpl)
Gets the default map icon index

Specified by:
getPushpinIconIndex in interface EventDataProvider
Parameters:
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
Returns:
An icon index

formatAsCSVRecord

public java.lang.String formatAsCSVRecord(java.lang.String[] fields)
Format this events as a comma-separated-value list

Parameters:
fields - The array of EventData fields to include in the CSV format
Returns:
The event record in CSV format

setPreviousEventData

public void setPreviousEventData(EventData ev)
Sets the previous EventData record

Parameters:
ev - The previous EventData record

getPreviousEventData

public EventData getPreviousEventData(boolean validGPS)
                               throws DBException
Gets the previous EventData record

Parameters:
validGPS - True to check for previous events with a valid GPS location only
Returns:
The previous EventData record
Throws:
DBException

getPreviousEventData

public EventData getPreviousEventData(int[] statusCodes,
                                      boolean validGPS)
                               throws DBException
Gets the previous EventData record

Parameters:
statusCodes - A list of status codes to search for
validGPS - True to check for previous events with a valid GPS location only
Returns:
The previous EventData record
Throws:
DBException

getPreviousEventData

public static EventData getPreviousEventData(java.lang.String accountID,
                                             java.lang.String deviceID,
                                             long timestamp,
                                             int[] statusCodes,
                                             boolean validGPS)
                                      throws DBException
Gets the previous EventData record

Parameters:
accountID - The Account ID
deviceID - The Device ID
timestamp - The starting timestamp
statusCodes - The status codes to look for
validGPS - True to look for events with a valid GPS location only
Returns:
The previous EventData record
Throws:
DBException

getNextEventData

public EventData getNextEventData(boolean validGPS)
                           throws DBException
Gets the next EventData record

Parameters:
validGPS - True to check for next events with a valid GPS location only
Returns:
The next EventData record
Throws:
DBException

getNextEventData

public static EventData getNextEventData(java.lang.String accountID,
                                         java.lang.String deviceID,
                                         long timestamp,
                                         int[] statusCodes,
                                         boolean validGPS)
                                  throws DBException
Gets the next EventData record

Parameters:
accountID - The Account ID
deviceID - The Device ID
timestamp - The starting timestamp
statusCodes - The status codes to look for
validGPS - True to look for events with a valid GPS location only
Returns:
The next EventData record
Throws:
DBException

getFieldValue

public java.lang.Object getFieldValue(java.lang.String fldName)
Overrides DBRecord.getFieldValue(...)

Overrides:
getFieldValue in class DBRecord<EventData>
Parameters:
fldName - The EventData fieldname
Returns:
The field value

recordWillInsert

protected void recordWillInsert()
Callback when record is about to be inserted into the table

Overrides:
recordWillInsert in class DBRecord<EventData>

recordDidInsert

protected void recordDidInsert()
Callback after record has been be inserted into the table

Overrides:
recordDidInsert in class DBRecord<EventData>

recordWillUpdate

protected void recordWillUpdate()
Callback when record is about to be updated in the table

Overrides:
recordWillUpdate in class DBRecord<EventData>

recordDidUpdate

protected void recordDidUpdate()
Callback after record has been be updated in the table

Overrides:
recordDidUpdate in class DBRecord<EventData>

exists

public static boolean exists(java.lang.String acctID,
                             java.lang.String devID,
                             long time,
                             int stCode)
                      throws DBException
Returns true if the specified record exists

Parameters:
acctID - The Account ID
devID - The Device ID
Returns:
True if the record exists
Throws:
DBException

createEventDataRecord

public static EventData createEventDataRecord(GeoEvent gev)
Creates an EventData record from the specified GeoEvent

Parameters:
gev - The GeoEvent

getWhereClause

public static java.lang.String getWhereClause(long autoIndex)

getWhereClause

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)

getAutoIndexEvent

public static EventData getAutoIndexEvent(long autoIndex)
                                   throws DBException
Throws:
DBException

getSelectedEvents

public static EventData[] getSelectedEvents(DBSelect<EventData> dsel,
                                            DBRecordHandler<EventData> rcdHandler)
                                     throws DBException
Throws:
DBException

getEventData

public static EventData getEventData(Device dev,
                                     long timestamp,
                                     int statusCode)
                              throws DBException
Throws:
DBException

getEventData

public static EventData getEventData(java.lang.String acctId,
                                     java.lang.String devId,
                                     long timestamp,
                                     int statusCode)
                              throws DBException
Throws:
DBException

getRangeEvents

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
Throws:
DBException

getRangeEvents

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
Throws:
DBException

countRangeEvents

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
Throws:
DBException

getRecordCount

public static long getRecordCount(java.lang.String acctId,
                                  java.lang.String devId,
                                  long timeStart,
                                  long timeEnd)
                           throws DBException
Gets the number of EventData records for the specified Account/Device within the specified range.

Parameters:
acctId - The Account ID
devId - The Device ID
timeStart - The starting time range (inclusive)
timeEnd - The ending time range (inclusive)
Returns:
The number of records within the specified range
Throws:
DBException

getEventsByCreationMillis

public static EventData[] getEventsByCreationMillis(java.lang.String acctId,
                                                    java.lang.String devId,
                                                    long createStartMS,
                                                    long createEndMS,
                                                    long limit)
                                             throws DBException
Throws:
DBException

deleteFutureEvents

public static long deleteFutureEvents(Device device,
                                      long futureTime)
                               throws DBException
Delete events which are in the future

Parameters:
device - The Device record for which EventData records will be deleted
futureTime - 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.
Returns:
The number of events deleted.
Throws:
DBException

deleteFutureEvents

public static long deleteFutureEvents(java.lang.String acctID,
                                      java.lang.String devID,
                                      long futureTime)
                               throws DBException
Delete events which are in the future

Parameters:
acctID - The Account ID
devID - The Device ID
futureTime - 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.
Returns:
The number of events deleted.
Throws:
DBException

deleteEventsAfterTimestamp

public static long deleteEventsAfterTimestamp(java.lang.String acctID,
                                              java.lang.String devID,
                                              long timestamp,
                                              boolean inclusive)
                                       throws DBException
Delete events which are after the specified timestamp (exclusive)

Parameters:
acctID - The Account ID
devID - The Device ID
timestamp - The time after which all events will be deleted.
inclusive - True to include 'timestamp', false to exclude
Returns:
The number of events deleted.
Throws:
DBException

deleteOldEvents

public static long deleteOldEvents(Device device,
                                   long oldTimeSec,
                                   java.lang.StringBuffer msg)
                            throws DBException
Delete old events
Note: Will return -1 if EventData table is InnoDB. Old events will still be deleted, however it will still go through the motions of attempting to delete events, even if the range is empty.

Parameters:
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.
Returns:
The number of events deleted.
Throws:
DBException

getGPSDistanceTraveledKM

public static double getGPSDistanceTraveledKM(java.lang.String acctId,
                                              java.lang.String devId,
                                              long timeStart,
                                              long timeEnd,
                                              GeoPoint startingGP,
                                              double startingOdomKM)

parseDate

public static DateTime parseDate(java.lang.String dateStr,
                                 java.util.TimeZone tz)

_keyMatch

public static boolean _keyMatch(java.lang.String key,
                                java.lang.String keyMatch)
Returns true if the specified key matches the target key


_keyMatch

public 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


getKeyFieldTitle

public 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


getKeyFieldValue

public java.lang.String getKeyFieldValue(java.lang.String key,
                                         java.lang.String arg,
                                         BasicPrivateLabel bpl)
Gets the value string for the specified key. (was "getFieldValueString")


_getKeyFieldString

public 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.


getDeviceDescriptionComparator

public static java.util.Comparator<EventData> getDeviceDescriptionComparator()

main

public static void main(java.lang.String[] argv)