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
           
 
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 EventData[] EMPTY_ARRAY
           
static DBField[] EndOfDaySummary
           
static java.lang.String FLD_acceleration
           
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_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_driverID
           
static java.lang.String FLD_driverMessage
           
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_engineRpm
           
static java.lang.String FLD_engineTorque
           
static java.lang.String FLD_entityID
           
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_fuelIdle
           
static java.lang.String FLD_fuelLevel
           
static java.lang.String FLD_fuelPressure
           
static java.lang.String FLD_fuelPTO
           
static java.lang.String FLD_fuelTemp
           
static java.lang.String FLD_fuelTotal
           
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_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_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_locationAreaCode
           
static java.lang.String FLD_longitude
           
static java.lang.String FLD_malfunctionLamp
           
static java.lang.String FLD_mobileCountryCode
           
static java.lang.String FLD_mobileNetworkCode
           
static java.lang.String FLD_odometerKM
           
static java.lang.String FLD_oilLevel
           
static java.lang.String FLD_oilPressure
           
static java.lang.String FLD_oilTemp
           
static java.lang.String FLD_postalCode
           
static java.lang.String FLD_ptoEngaged
           
static java.lang.String FLD_ptoHours
           
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_sensorHigh
           
static java.lang.String FLD_sensorLow
           
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_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_turboPressure
           
static java.lang.String FLD_vBatteryVolts
           
static java.lang.String FLD_vertAccuracy
           
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 double INVALID_TEMPERATURE
           
static java.lang.String[] KEY_ACCOUNT
           
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
           
static java.lang.String[] KEY_DRIVERID
           
static java.lang.String[] KEY_EVENT_COUNT24
           
static java.lang.String KEY_pushkey
           
static java.lang.String[] KEY_TIME
           
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_NeighborCellTowerData
           
static java.lang.String OPTCOLS_ServingCellTowerData
           
static java.lang.String OPTCOLS_ThermoFieldInfo
           
static java.lang.String OPTCOLS_WorkZoneGridData
           
static java.lang.String PFLD_deviceDesc
           
static DBField[] ServingCellTowerData
           
static int StateColumnLength
           
static int StreetColumnLength
           
static double TEMPERATURE_LIMIT
           
static DBField[] ThermoFieldInfo
           
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_lastUpdateTime, FLD_lastUpdateUser, hasError, ID_SIZE, isValidating, lastSQLException, NOTIFY_GROUP, PSEUDO_FIELD_CHAR
 
Constructor Summary
EventData()
           
EventData(EventData.Key key)
           
 
Method Summary
 EntityManager.EntityType _getEntityType()
           
static int _getPushpinIconIndex(java.lang.String val, OrderedSet<java.lang.String> iconKeys, int dft)
           
static boolean _keyMatch(java.lang.String key, java.lang.String[] keyList)
           
 boolean canUpdateCellTowerLocation()
           
 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 oldTime)
          Delete old events
static long deleteOldEvents(java.lang.String acctID, java.lang.String devID, long oldTime)
          Delete events which are in the future
static boolean ENABLE_DATA_PUSH()
           
 java.lang.String formatAsCSVRecord(java.lang.String[] fields)
           
 double getAcceleration()
           
 java.lang.String getAddress()
           
 java.lang.String getAddress(boolean lazyUpdate)
           
 double getAirFilterPressure()
           
 double getAirPressure()
           
 double getAltitude()
           
 java.lang.String getAltitudeString(boolean inclUnits, java.util.Locale locale)
           
 double getAmbientTemp()
           
 double getAnalog(int ndx)
           
 double getAnalog0()
           
 double getAnalog1()
           
 double getAnalog2()
           
 double getAnalog3()
           
 byte[] getAttachData()
           
 java.lang.String getAttachType()
           
static EventData getAutoIndexEvent(long autoIndex)
           
 double getBarometer()
           
 double getBatteryLevel()
          Gets the current battery level
 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()
           
 double getBrakePos()
           
 double getBrakePressure()
           
 double getCabinTemp()
           
 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()
           
 double getCoolantTemp()
           
 long getCostCenter()
           
 java.lang.String getCountry()
           
 boolean getDataPush()
           
 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()
           
 java.lang.String getDriverID()
           
 java.lang.String getDriverMessage()
           
 long getDriverStatus()
           
 java.lang.String getEmailRecipient()
           
 double getEngineHours()
           
 double getEngineLoad()
           
 long getEngineRpm()
           
 double getEngineTorque()
           
 java.lang.String getEntityID()
           
 int getEntityType()
           
 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(java.lang.String acctId, java.lang.String devId, long timestamp, int statusCode)
           
 int getEventIndex()
           
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()
           
 java.lang.Object getFieldValue(java.lang.String fldName)
          Gets the value for the specified field.
Note: This function bypasses the normal 'getter' methods for the specific DBRecord subclass, and thus may not perform some of the bounds checking for the specific field.
 java.lang.String getFieldValueString(java.lang.String key, java.lang.String arg, BasicPrivateLabel bpl)
           
 double getFuelEconomy()
           
 double getFuelIdle()
           
 double getFuelLevel()
           
 double getFuelLevelVolume_Liters()
           
 double getFuelLevelVolume_Units()
           
 double getFuelPressure()
           
 double getFuelPTO()
           
 double getFuelTemp()
           
 double getFuelTotal()
           
 double getFuelUsage()
           
 GeoPoint getGeoPoint()
          Gets the GeoPoint for this event
 Geozone getGeozone()
           
 java.lang.String getGeozoneDescription()
           
 java.lang.String getGeozoneDisplayName()
           
 java.lang.String getGeozoneID()
           
 long getGeozoneIndex()
           
 long getGpsAge()
           
static double getGPSDistanceTraveledKM(java.lang.String acctId, java.lang.String devId, long timeStart, long timeEnd, GeoPoint startingGP, double startingOdomKM)
           
 int getGpsFixType()
          Gets the GPS fix type
static EventData.GPSFixType getGPSFixType(EventData e)
           
 java.lang.String getGpsFixTypeDescription(java.util.Locale loc)
           
 double getHDOP()
           
 double getHeading()
           
 double getHorzAccuracy()
           
 double getIdleHours()
           
 long getInputMask()
           
 boolean getInputMaskBitState(int bit)
           
 double getIntakeTemp()
           
 boolean getIsFirstEvent()
           
 boolean getIsLastEvent()
           
 boolean getIsSynthesizedEvent()
           
 boolean getIsTollRoad()
           
 long getJ1708Fault()
           
 java.lang.String getJobNumber()
           
 double getLatitude()
           
 int getLocationAreaCode()
           
 double getLongitude()
           
 boolean getMalfunctionLamp()
           
 int getMobileCountryCode()
           
 int getMobileNetworkCode()
           
 org.opengts.cellid.CellTower getNeighborCellTower(int ndx)
           
 org.opengts.cellid.CellTower[] getNeighborCellTowers()
           
 EventData getNextEventData(boolean validGPS)
           
 long getOBDFault()
           
 double getOdometerKM()
           
 double getOilLevel()
           
 double getOilPressure()
           
 double getOilTemp()
           
 java.lang.String getPostalCode()
           
 EventData getPreviousEventData(boolean validGPS)
           
 EventData getPreviousEventData(int[] statusCodes, boolean validGPS)
           
static EventData getPreviousEventData(java.lang.String accountID, java.lang.String deviceID, long timestamp, int[] statusCodes, boolean validGPS)
           
 boolean getPtoEngaged()
           
 double getPtoHours()
           
 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()
           
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.
 java.lang.String getRfidTag()
           
 java.lang.String getSampleID()
           
 int getSampleIndex()
           
 int getSatelliteCount()
          Gets the Satellite count
static EventData[] getSelectedEvents(DBSelect<EventData> dsel, DBRecordHandler<EventData> rcdHandler)
           
 long getSensorHigh()
           
 long getSensorLow()
           
 org.opengts.cellid.CellTower getServingCellTower()
           
 double getSignalStrength()
          Gets the current signal strength
 double getSpeedKPH()
           
 double getSpeedLimitKPH()
           
 double getSpeedMPH()
           
 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 getThermoAverage(int ndx)
           
 double getThermoAverage0()
           
 double getThermoAverage1()
           
 double getThermoAverage2()
           
 double getThermoAverage3()
           
 double getThermoAverage4()
           
 double getThermoAverage5()
           
 double getThermoAverage6()
           
 double getThermoAverage7()
           
 double getThrottlePos()
           
 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, Account account)
          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, Account account, 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, Account account, java.util.Locale locale)
          Gets the String representation of the timestamp month 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, 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, 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, Account account)
          Gets the String representation of the timestamp year of this event
 double[] getTirePressure_kPa()
           
 double[] getTirePressure_psi()
           
 double[] getTirePressure_units(Account.PressureUnits pu)
           
 java.lang.String getTirePressure()
           
 double[] getTireTemp_C()
           
 double[] getTireTemp_units(Account.TemperatureUnits tu)
           
 java.lang.String getTireTemp()
           
 double getTransOilTemp()
           
 java.lang.String getTransportID()
          Sets the transport-id for this event.
 double getTurboPressure()
           
 double getVBatteryVolts()
           
 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 getWorkHours()
           
 boolean hasAddress()
          Returns true if an address has been defined
 boolean hasAttachData()
           
 boolean hasCellLocation()
           
 boolean hasGeozone()
           
 boolean isActualOdometer()
           
 boolean isTollRoad()
           
 boolean isValidGeoPoint()
          Returns true if the GeoPoint represented by this event is valid
static boolean isValidTemperature(double t)
           
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)
           
 void setAddress(java.lang.String v)
           
 void setAirFilterPressure(double v)
           
 void setAirPressure(double v)
           
 void setAltitude(double v)
           
 void setAmbientTemp(double v)
           
 void setAnalog(int ndx, double v)
           
 void setAnalog0(double v)
           
 void setAnalog1(double v)
           
 void setAnalog2(double v)
           
 void setAnalog3(double v)
           
 void setAttachData(byte[] v)
           
 void setAttachment(java.lang.String type, byte[] data)
           
 void setAttachType(java.lang.String v)
           
 void setBarometer(double v)
           
 void setBatteryLevel(double v)
          Sets the current battery level
 void setBatteryVolts(double v)
          Sets the current battery voltage
 void setBrakeGForce(double v)
           
 void setBrakePos(double v)
           
 void setBrakePressure(double v)
           
 void setCabinTemp(double v)
           
 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)
           
 void setCoolantTemp(double v)
           
 void setCostCenter(long v)
           
 void setCountry(java.lang.String v)
           
 void setCreationDefaultValues()
          Override to set default values
 void setDataPush(boolean v)
           
 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)
           
 void setDriverID(java.lang.String v)
           
 void setDriverMessage(java.lang.String v)
           
 void setDriverStatus(long v)
           
 void setEmailRecipient(java.lang.String v)
           
 void setEngineHours(double v)
           
 void setEngineLoad(double v)
           
 void setEngineRpm(long v)
           
 void setEngineTorque(double v)
           
 void setEntityID(java.lang.String v)
           
 void setEntityType(int v)
           
 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)
           
 void setFaultCode(java.lang.String v)
           
 void setFuelEconomy(double v)
           
 void setFuelIdle(double v)
           
 void setFuelLevel(double v)
           
 void setFuelPressure(double v)
           
 void setFuelPTO(double v)
           
 void setFuelTemp(double v)
           
 void setFuelTotal(double v)
           
 void setFuelUsage(double v)
           
 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)
           
 void setGeozoneID(java.lang.String v)
           
 void setGeozoneIndex(long v)
           
 void setGpsAge(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)
           
 void setInputMask(long v)
           
 void setIntakeTemp(double v)
           
 void setIsLastEvent(boolean isLast)
           
 void setIsTollRoad(boolean v)
           
 void setJ1708Fault(long v)
           
 void setJobNumber(java.lang.String v)
           
 void setLatitude(double v)
           
 void setLocationAreaCode(int v)
           
 void setLongitude(double v)
           
 void setMalfunctionLamp(boolean v)
           
 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)
           
 void setOdometerKM(double v)
           
 void setOdometerKM(double v, boolean actualOdom)
           
 void setOilLevel(double v)
           
 void setOilPressure(double v)
           
 void setOilTemp(double v)
           
 void setPostalCode(java.lang.String v)
           
 void setPreviousEventData(EventData ev)
           
 void setPtoEngaged(boolean v)
           
 void setPtoHours(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)
           
 void setRfidTag(java.lang.String v)
           
 void setSampleID(java.lang.String v)
           
 void setSampleIndex(int v)
           
 void setSatelliteCount(int v)
          Sets the Satellite count
 void setSensorHigh(long v)
           
 void setSensorLow(long v)
           
 void setServingCellTower(org.opengts.cellid.CellTower cti)
           
 void setSignalStrength(double v)
          Sets the current signal strength
 void setSpeedKPH(double v)
           
 void setSpeedLimitKPH(double v)
           
 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 setStopStatus(int v)
          Sets the STOP Status
 void setStreetAddress(java.lang.String v)
           
 void setSubdivision(java.lang.String v)
           
 void setSynthesizedEvent(boolean isSynthesized)
           
 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)
           
 void setTimestamp(long v)
          Sets the timestamp of this event in Unix/Epoch time
 void setTirePressure_kPa(double[] v)
           
 void setTirePressure_psi(double[] v)
           
 void setTirePressure(java.lang.String v)
           
 void setTireTemp_C(double[] v)
           
 void setTireTemp(java.lang.String v)
           
 void setTransOilTemp(double v)
           
 void setTransportID(java.lang.String v)
          Sets the transport-id for this event.
 void setTurboPressure(double v)
           
 void setVBatteryVolts(double v)
           
 void setVertAccuracy(double v)
           
 void setWorkHours(double v)
           
 boolean showLastEventDevicePushpin(boolean isFleet, BasicPrivateLabel bpl)
           
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> 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, 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, appendFieldValues, clearChanged, clearError, clearExcludedUpdateFields, clearLastCaughtSQLException, equals, excludeFieldFromUpdate, excludeFieldFromUpdate, fireChangeNotification, getCreationDateTime, getCreationMillis, getCreationTime, GetCurrentUser, getDefaultFieldValueKey, getDescription, getErrorDescription, getFactory, getFactory, getField, getFieldBoolean, getFieldDateTime, getFieldDouble, getFieldFloat, getFieldInt, getFieldLong, getFieldName, getFieldString, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getLastCaughtSQLException, getLastUpdateTime, getLastUpdateTime, getLastUpdateUser, getNextGroup, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getOptionalFieldValue, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordCount, getRecordKey, getRecords, getRecords, getValue, getVirtual, hasChanged, hasError, hasField, hasFieldValue, insert, isLastCaughtSQLExceptionErrorCode, isOkToReload, isOkToSave, isValidating, isVirtual, lock, lockRead, lockWrite, newField_creationMillis, newField_creationTime, newField_creationTime, newField_description, newField_description, newField_lastUpdateTime, newField_lastUpdateUser, printXML, printXML, printXML, printXML, printXML, printXML, reload, reload, removeChangedNotification, save, select, select, select, setAllFieldValues, setAllFieldValues, setAllFieldValues, setAllFieldValues, setChanged, setChanged, setCreationMillis, setCreationTime, SetCurrentUser, setDescription, setError, setError, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setIgnoreInvalidFields, setLastCaughtSQLException, 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

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_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_CreationTimeMillisecond

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

KEY_pushkey

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

ALTKEY_eq_pushkey

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

INVALID_TEMPERATURE

public static final double INVALID_TEMPERATURE
See Also:
Constant Field Values

TEMPERATURE_LIMIT

public static final double TEMPERATURE_LIMIT
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

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

_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

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_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_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_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_signalStrength

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

GPSFieldInfo

public static final DBField[] GPSFieldInfo

FLD_entityID

public static final java.lang.String FLD_entityID
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_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_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

GarminFieldInfo

public static final DBField[] GarminFieldInfo

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_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_transOilTemp

public static final java.lang.String FLD_transOilTemp
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_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_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_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_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_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_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

CANBUSFieldInfo

public static final DBField[] CANBUSFieldInfo

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

AnalogFieldInfo

public static final DBField[] AnalogFieldInfo

FLD_autoIndex

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

AutoIncrementIndex

public static final DBField[] AutoIncrementIndex

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_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_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_dataPush

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

CreationTimeMillisecond

public static final DBField[] CreationTimeMillisecond

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_TIME

public static final java.lang.String[] KEY_TIME

KEY_DRIVERID

public static final java.lang.String[] KEY_DRIVERID

KEY_DRIVER

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

EventData

public EventData()

EventData

public EventData(EventData.Key key)
Method Detail

ENABLE_DATA_PUSH

public static boolean ENABLE_DATA_PUSH()

_getPushpinIconIndex

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

getGPSFixType

public static EventData.GPSFixType getGPSFixType(EventData e)

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

getTimestampString

public static java.lang.String getTimestampString(long timestamp,
                                                  Account account,
                                                  BasicPrivateLabel bpl)
Gets the String representation of the timestamp of this event

Parameters:
timestamp - The timestamp
account - The account
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,
                                                BasicPrivateLabel bpl)
Gets the String representation of the timestamp time-of-day of this event

Parameters:
timestamp - The timestamp
account - The account
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,
                                                Account account)
Gets the String representation of the timestamp year of this event

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

getTimestampMonth

public static java.lang.String getTimestampMonth(long timestamp,
                                                 boolean abbrev,
                                                 Account account,
                                                 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
account - The account
locale - The locale
Returns:
The String representation of the timestamp month of this event

getTimestampDayOfMonth

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

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

getTimestampDayOfWeek

public static java.lang.String getTimestampDayOfWeek(long timestamp,
                                                     boolean abbrev,
                                                     Account account,
                                                     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
account - The account
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

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

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

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()

setRawData

public void setRawData(java.lang.String v)

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()
Specified by:
getLatitude in interface EventDataProvider

setLatitude

public void setLatitude(double v)

getLongitude

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

setLongitude

public void setLongitude(double v)

getGpsAge

public long getGpsAge()

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)

getDistanceKM

public double getDistanceKM()

setDistanceKM

public void setDistanceKM(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()

getGeozoneIndex

public long getGeozoneIndex()

setGeozoneIndex

public void setGeozoneIndex(long v)

getGeozoneID

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

setGeozoneID

public void setGeozoneID(java.lang.String v)

setGeozone

public void setGeozone(Geozone zone)

hasGeozone

public boolean hasGeozone()

getGeozone

public Geozone getGeozone()

getGeozoneDescription

public java.lang.String getGeozoneDescription()

getGeozoneDisplayName

public java.lang.String getGeozoneDisplayName()

getEntityID

public java.lang.String getEntityID()

setEntityID

public void setEntityID(java.lang.String v)

getEntityType

public int getEntityType()

setEntityType

public void setEntityType(int v)

_getEntityType

public EntityManager.EntityType _getEntityType()

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)

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

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

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

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

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)

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()

setSpeedLimitKPH

public void setSpeedLimitKPH(double v)

getIsTollRoad

public boolean getIsTollRoad()

setIsTollRoad

public void setIsTollRoad(boolean v)

isTollRoad

public boolean isTollRoad()

getInputMask

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

getInputMaskBitState

public boolean getInputMaskBitState(int bit)

setInputMask

public void setInputMask(long v)

getBarometer

public double getBarometer()

setBarometer

public void setBarometer(double v)

getAmbientTemp

public double getAmbientTemp()

setAmbientTemp

public void setAmbientTemp(double v)

getCabinTemp

public double getCabinTemp()

setCabinTemp

public void setCabinTemp(double v)

isValidTemperature

public static boolean isValidTemperature(double t)

getThermoAverage

public double getThermoAverage(int ndx)

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)

getAnalog

public double getAnalog(int ndx)

setAnalog

public void setAnalog(int ndx,
                      double v)

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)

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)

getDriverID

public java.lang.String getDriverID()

setDriverID

public void setDriverID(java.lang.String v)

getDriverStatus

public long getDriverStatus()

setDriverStatus

public void setDriverStatus(long v)

getDriverMessage

public java.lang.String getDriverMessage()

setDriverMessage

public void setDriverMessage(java.lang.String v)

getEmailRecipient

public java.lang.String getEmailRecipient()

setEmailRecipient

public void setEmailRecipient(java.lang.String v)

getSensorLow

public long getSensorLow()

setSensorLow

public void setSensorLow(long v)

getSensorHigh

public long getSensorHigh()

setSensorHigh

public void setSensorHigh(long v)

getSampleIndex

public int getSampleIndex()

setSampleIndex

public void setSampleIndex(int v)

getSampleID

public java.lang.String getSampleID()

setSampleID

public void setSampleID(java.lang.String v)

getBrakeGForce

public double getBrakeGForce()

setBrakeGForce

public void setBrakeGForce(double v)

getAcceleration

public double getAcceleration()

setAcceleration

public void setAcceleration(double v)

getBrakePressure

public double getBrakePressure()

setBrakePressure

public void setBrakePressure(double v)

getTirePressure

public java.lang.String getTirePressure()

getTirePressure_kPa

public double[] getTirePressure_kPa()

getTirePressure_psi

public double[] getTirePressure_psi()

getTirePressure_units

public double[] getTirePressure_units(Account.PressureUnits pu)

setTirePressure

public void setTirePressure(java.lang.String v)

setTirePressure_kPa

public void setTirePressure_kPa(double[] v)

setTirePressure_psi

public void setTirePressure_psi(double[] v)

getTireTemp

public java.lang.String getTireTemp()

getTireTemp_C

public double[] getTireTemp_C()

getTireTemp_units

public double[] getTireTemp_units(Account.TemperatureUnits tu)

setTireTemp

public void setTireTemp(java.lang.String v)

setTireTemp_C

public void setTireTemp_C(double[] v)

getDataPush

public boolean getDataPush()

setDataPush

public void setDataPush(boolean v)

getCostCenter

public long getCostCenter()

setCostCenter

public void setCostCenter(long v)

getJobNumber

public java.lang.String getJobNumber()

setJobNumber

public void setJobNumber(java.lang.String v)

getRfidTag

public java.lang.String getRfidTag()

setRfidTag

public void setRfidTag(java.lang.String v)

getAttachType

public java.lang.String getAttachType()

setAttachType

public void setAttachType(java.lang.String v)

hasAttachData

public boolean hasAttachData()

getAttachData

public byte[] getAttachData()

setAttachData

public void setAttachData(byte[] v)

setAttachment

public void setAttachment(java.lang.String type,
                          byte[] data)

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

getFuelPressure

public double getFuelPressure()

setFuelPressure

public void setFuelPressure(double v)

getFuelUsage

public double getFuelUsage()

setFuelUsage

public void setFuelUsage(double v)

getFuelTemp

public double getFuelTemp()

setFuelTemp

public void setFuelTemp(double v)

getFuelLevel

public double getFuelLevel()

setFuelLevel

public void setFuelLevel(double v)

getFuelLevelVolume_Liters

public double getFuelLevelVolume_Liters()

getFuelLevelVolume_Units

public double getFuelLevelVolume_Units()

getFuelEconomy

public double getFuelEconomy()

setFuelEconomy

public void setFuelEconomy(double v)

getFuelTotal

public double getFuelTotal()

setFuelTotal

public void setFuelTotal(double v)

getFuelIdle

public double getFuelIdle()

setFuelIdle

public void setFuelIdle(double v)

getFuelPTO

public double getFuelPTO()

setFuelPTO

public void setFuelPTO(double v)

getEngineRpm

public long getEngineRpm()

setEngineRpm

public void setEngineRpm(long v)

getEngineHours

public double getEngineHours()

setEngineHours

public void setEngineHours(double v)

getEngineLoad

public double getEngineLoad()

setEngineLoad

public void setEngineLoad(double v)

getEngineTorque

public double getEngineTorque()

setEngineTorque

public void setEngineTorque(double v)

getIdleHours

public double getIdleHours()

setIdleHours

public void setIdleHours(double v)

getWorkHours

public double getWorkHours()

setWorkHours

public void setWorkHours(double v)

getTransOilTemp

public double getTransOilTemp()

setTransOilTemp

public void setTransOilTemp(double v)

getCoolantLevel

public double getCoolantLevel()

setCoolantLevel

public void setCoolantLevel(double v)

getCoolantTemp

public double getCoolantTemp()

setCoolantTemp

public void setCoolantTemp(double v)

getIntakeTemp

public double getIntakeTemp()

setIntakeTemp

public void setIntakeTemp(double v)

getOilPressure

public double getOilPressure()

setOilPressure

public void setOilPressure(double v)

getOilLevel

public double getOilLevel()

setOilLevel

public void setOilLevel(double v)

getOilTemp

public double getOilTemp()

setOilTemp

public void setOilTemp(double v)

getAirPressure

public double getAirPressure()

setAirPressure

public void setAirPressure(double v)

getAirFilterPressure

public double getAirFilterPressure()

setAirFilterPressure

public void setAirFilterPressure(double v)

getTurboPressure

public double getTurboPressure()

setTurboPressure

public void setTurboPressure(double v)

getPtoEngaged

public boolean getPtoEngaged()

setPtoEngaged

public void setPtoEngaged(boolean v)

getPtoHours

public double getPtoHours()

setPtoHours

public void setPtoHours(double v)

getThrottlePos

public double getThrottlePos()

setThrottlePos

public void setThrottlePos(double v)

getBrakePos

public double getBrakePos()

setBrakePos

public void setBrakePos(double v)

getVBatteryVolts

public double getVBatteryVolts()

setVBatteryVolts

public void setVBatteryVolts(double v)

getJ1708Fault

public long getJ1708Fault()

setJ1708Fault

public void setJ1708Fault(long v)

getOBDFault

public long getOBDFault()

setOBDFault

public void setOBDFault(long v)

getFaultCode

public java.lang.String getFaultCode()

setFaultCode

public void setFaultCode(java.lang.String v)

getMalfunctionLamp

public boolean getMalfunctionLamp()

setMalfunctionLamp

public void setMalfunctionLamp(boolean v)

setCreationDefaultValues

public void setCreationDefaultValues()
Description copied from class: DBRecord
Override to set default values

Overrides:
setCreationDefaultValues in class DBRecord<EventData>

setEventIndex

public void setEventIndex(int ndx)
Specified by:
setEventIndex in interface EventDataProvider

getEventIndex

public int getEventIndex()
Specified by:
getEventIndex in interface EventDataProvider

getIsFirstEvent

public boolean getIsFirstEvent()
Specified by:
getIsFirstEvent in interface EventDataProvider

setIsLastEvent

public void setIsLastEvent(boolean isLast)
Specified by:
setIsLastEvent in interface EventDataProvider

getIsLastEvent

public boolean getIsLastEvent()
Specified by:
getIsLastEvent in interface EventDataProvider

showLastEventDevicePushpin

public boolean showLastEventDevicePushpin(boolean isFleet,
                                          BasicPrivateLabel bpl)

setSynthesizedEvent

public void setSynthesizedEvent(boolean isSynthesized)

getIsSynthesizedEvent

public boolean getIsSynthesizedEvent()

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. (may be blank/null)
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)

setPreviousEventData

public void setPreviousEventData(EventData ev)

getPreviousEventData

public EventData getPreviousEventData(boolean validGPS)
                               throws DBException
Throws:
DBException

getPreviousEventData

public EventData getPreviousEventData(int[] statusCodes,
                                      boolean validGPS)
                               throws DBException
Throws:
DBException

getPreviousEventData

public static EventData getPreviousEventData(java.lang.String accountID,
                                             java.lang.String deviceID,
                                             long timestamp,
                                             int[] statusCodes,
                                             boolean validGPS)
                                      throws DBException
Throws:
DBException

getNextEventData

public EventData getNextEventData(boolean validGPS)
                           throws DBException
Throws:
DBException

getFieldValue

public java.lang.Object getFieldValue(java.lang.String fldName)
Description copied from class: DBRecord
Gets the value for the specified field.
Note: This function bypasses the normal 'getter' methods for the specific DBRecord subclass, and thus may not perform some of the bounds checking for the specific field.

Overrides:
getFieldValue in class DBRecord<EventData>
Parameters:
fldName - The field name to retrieve
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>

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(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 oldTime)
                            throws DBException
Delete old events

Parameters:
device - The Device record for which EventData records will be deleted
oldTime - The time in the past before which events will be deleted.
Returns:
The number of events deleted.
Throws:
DBException

deleteOldEvents

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

Parameters:
acctID - The Account ID
devID - The Device ID
oldTime - The time in the past before which events will be 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[] keyList)

getFieldValueString

public java.lang.String getFieldValueString(java.lang.String key,
                                            java.lang.String arg,
                                            BasicPrivateLabel bpl)

getDeviceDescriptionComparator

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

main

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