org.opengts.extra.war.report.antx
Class AntxChannel

java.lang.Object
  extended by org.opengts.extra.war.report.antx.AntxField
      extended by org.opengts.extra.war.report.antx.AntxChannel

public class AntxChannel
extends AntxField


Field Summary
static double C_GAIN
           
static double C_OFFSET
           
static int CHAN_ACCEL_PEDAL_POSITION
           
static int CHAN_AIR_FILTER_DIFF_PRESSUE
           
static int CHAN_AMBIENT_TEMPERATURE
           
static int CHAN_ANALOG_INPUT
           
static int CHAN_AVERAGE_FUEL_ECON
           
static int CHAN_BAROMETRIC_PRESSURE
           
static int CHAN_BATTERY_SWITCHED
           
static int CHAN_BATTERY_UNSWITCHED
           
static int CHAN_CABIN_TEMPERATURE
           
static int CHAN_CAN
           
static int CHAN_COMM
           
static int CHAN_COOLANT_LEVEL
           
static int CHAN_COOLANT_TEMPERATURE
           
static int CHAN_DIN1
           
static int CHAN_DIN2
           
static int CHAN_DIN4
           
static int CHAN_DISTANCE_BY_DAY
           
static int CHAN_DISTANCE_BY_RPM
           
static int CHAN_DISTANCE_BY_SPEED
           
static int CHAN_ENGINE_FUEL_TEMPERATURE
           
static int CHAN_ENGINE_LOAD
           
static int CHAN_ENGINE_RUN
           
static int CHAN_ENGINE_STARTS
           
static int CHAN_ENGINE_TORQUE
           
static int CHAN_ESTIMATED_FAN_SPEED
           
static int CHAN_FAN_DRIVE_STATE
           
static int CHAN_FUEL_BY_DAY
           
static int CHAN_FUEL_BY_LOAD
           
static int CHAN_FUEL_BY_RPM
           
static int CHAN_FUEL_BY_SPEED
           
static int CHAN_FUEL_BY_TORQUE
           
static int CHAN_FUEL_LEVEL
           
static int CHAN_FUEL_RATE
           
static int CHAN_GEN_AVG_AC_FREQUENCY
           
static int CHAN_GEN_AVG_AC_RMS_CURRENT
           
static int CHAN_GEN_AVG_LINE_LINE_AC_RMS
           
static int CHAN_GEN_AVG_LINE_NEUT_AC_RMS
           
static int CHAN_GEN_POWER_FACTOR
           
static int CHAN_GEN_TOTAL_KW_HOURS
           
static int CHAN_GEN_TOTAL_REACTIVE_POWER
           
static int CHAN_GEN_TOTAL_REAL_POWER
           
static int CHAN_GSM
           
static int CHAN_IDLE_FUEL_DAY
           
static int CHAN_IDLE_FUEL_START
           
static int CHAN_IDLE_TIME_DAY
           
static int CHAN_IDLE_TIME_START
           
static int CHAN_INSTANT_FUEL_ECON
           
static int CHAN_OIL_LEVEL
           
static int CHAN_OIL_PRESSURE
           
static int CHAN_OIL_TEMPERATURE
           
static int CHAN_PTO_ENABLED
           
static int CHAN_PTO_FUEL_BY_DAY
           
static int CHAN_PTO_STATE
           
static int CHAN_RPM
           
static int CHAN_SHUTDOWN
           
static int CHAN_THROTTLE_POSITION
           
static int CHAN_TOTAL_ENGINE_HOURS
           
static int CHAN_TRANS_OIL_TEMPERATURE
           
static int CHAN_UNDEFINED
           
static int CHAN_VEHICLE_DISTANCE
           
static int CHAN_VEHICLE_SPEED
           
static int CHAN_WARNING
           
static int CHAN_WORK_FUEL_DAY
           
static int CHAN_WORK_FUEL_START
           
static int CHAN_WORK_TIME_DAY
           
static int CHAN_WORK_TIME_START
           
static java.util.Map ChannelDescription
           
static double KILOMETERS_PER_MILE
           
static double KPA_PER_PSI
           
static double KPL_PER_MPG
           
static double LITERS_PER_GALLON
           
static double LPH_PER_GPS
           
static double MINUTES_PER_HOUR
           
static double PERCENT_FRAC
           
static double PSI_PER_KPA
           
static int UNITS_BOOLEAN
           
static int UNITS_DISTANCE
           
static int UNITS_ECON
           
static int UNITS_FUEL_USED
           
static int UNITS_HOURS
           
static int UNITS_NONE
           
static int UNITS_PERCENT
           
static int UNITS_PRESSURE
           
static int UNITS_SPEED
           
static int UNITS_TEMP
           
static int UNITS_VOLRATE
           
 
Fields inherited from class org.opengts.extra.war.report.antx.AntxField
EVCODE_ACCELERATION, EVCODE_ACTION_CMD_ERROR, EVCODE_ACTION_CMD_OK, EVCODE_COG_HEADING, EVCODE_CONFIG_CHANGE, EVCODE_CONFIG_GET_ERROR, EVCODE_CONFIG_GET_OK, EVCODE_CONFIG_SET_ERROR, EVCODE_CONFIG_SET_OK, EVCODE_DECELERATION, EVCODE_DEMAND_END_OF_DAY, EVCODE_DEMAND_STANDARD, EVCODE_DIAG_CODE_ACTIVE, EVCODE_DIAG_CODE_NORMAL, EVCODE_END_OF_DAY, EVCODE_ENGINE_START, EVCODE_ENGINE_STOP, EVCODE_GPS_ANT_NORMAL, EVCODE_GPS_ANT_OPEN, EVCODE_GPS_ANT_SHORT, EVCODE_GPS_ANT_UNAVAIL, EVCODE_IDLE_EXCEPTION, EVCODE_IDLE_TO_OFF, EVCODE_IDLE_TO_WORK, EVCODE_OFF_TO_IDLE, EVCODE_OFF_TO_WORK, EVCODE_OUTPUT_CTL_OFF, EVCODE_OUTPUT_CTL_ON, EVCODE_POWER_OFF, EVCODE_POWER_ON, EVCODE_RPM, EVCODE_SOG_SPEED, EVCODE_STANDARD_REPORT, EVCODE_WORK_TO_IDLE, EVCODE_WORK_TO_OFF, FIELD_ACK, FIELD_ACTION_COMMAND, FIELD_ANALOG_BIN_COUNT_DATA, FIELD_ANALOG_BIN_DURA_DATA, FIELD_ANALOG_CHAN_DATA, FIELD_ANALOG_DISTANCE, FIELD_ANALOG_FUEL, FIELD_ANALOG_MIN_MAX_VALUE, FIELD_DIGITAL_BIN_DATA, FIELD_DIGITAL_CHAN_DATA, FIELD_GPS_DATA, FIELD_IDLE_EXCEPTION, FIELD_J1708_DIAG, FIELD_J1939_DIAG, FIELD_OBD2_DIAG, FIELD_PING, FIELD_REQUEST_GET_CONFIG, FIELD_REQUEST_SET_CONFIG, FIELD_TEXT, FIELD_VEHICLE_ID, FieldDescription
 
Constructor Summary
AntxChannel(int id, java.lang.String desc)
           
AntxChannel(int id, java.lang.String desc, int units, double gain)
           
AntxChannel(int id, java.lang.String desc, int units, double gain, double offset)
           
 
Method Summary
 java.lang.String accountUnitsDescription(Account a, java.util.Locale locale)
           
static double ConvertChannelUnits(AntxChannel ac, double value)
           
static double ConvertChannelUnits(int ch, double value)
           
 double convertUnits(double value)
           
static double GetAccountUnitsValue(Account a, int fld, int ch, double value)
           
static AntxChannel GetAntxChannel(int ch)
           
static java.lang.String GetChannelDescription(int ch)
           
static java.lang.String GetChannelUnitsDescription(Account a, int fld, int ch)
           
 int getUnits()
           
 double toAccountUnits(Account a, double value)
           
 
Methods inherited from class org.opengts.extra.war.report.antx.AntxField
GetAntxField, getDescription, GetFieldDescription, getID, getStatusCodeFromEventCode, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNITS_NONE

public static final int UNITS_NONE
See Also:
Constant Field Values

UNITS_BOOLEAN

public static final int UNITS_BOOLEAN
See Also:
Constant Field Values

UNITS_PERCENT

public static final int UNITS_PERCENT
See Also:
Constant Field Values

UNITS_HOURS

public static final int UNITS_HOURS
See Also:
Constant Field Values

UNITS_TEMP

public static final int UNITS_TEMP
See Also:
Constant Field Values

UNITS_DISTANCE

public static final int UNITS_DISTANCE
See Also:
Constant Field Values

UNITS_SPEED

public static final int UNITS_SPEED
See Also:
Constant Field Values

UNITS_PRESSURE

public static final int UNITS_PRESSURE
See Also:
Constant Field Values

UNITS_FUEL_USED

public static final int UNITS_FUEL_USED
See Also:
Constant Field Values

UNITS_ECON

public static final int UNITS_ECON
See Also:
Constant Field Values

UNITS_VOLRATE

public static final int UNITS_VOLRATE
See Also:
Constant Field Values

KILOMETERS_PER_MILE

public static final double KILOMETERS_PER_MILE
See Also:
Constant Field Values

LITERS_PER_GALLON

public static final double LITERS_PER_GALLON
See Also:
Constant Field Values

LPH_PER_GPS

public static final double LPH_PER_GPS
See Also:
Constant Field Values

PSI_PER_KPA

public static final double PSI_PER_KPA
See Also:
Constant Field Values

KPA_PER_PSI

public static final double KPA_PER_PSI
See Also:
Constant Field Values

KPL_PER_MPG

public static final double KPL_PER_MPG
See Also:
Constant Field Values

MINUTES_PER_HOUR

public static final double MINUTES_PER_HOUR
See Also:
Constant Field Values

PERCENT_FRAC

public static final double PERCENT_FRAC
See Also:
Constant Field Values

C_GAIN

public static final double C_GAIN
See Also:
Constant Field Values

C_OFFSET

public static final double C_OFFSET
See Also:
Constant Field Values

CHAN_UNDEFINED

public static final int CHAN_UNDEFINED
See Also:
Constant Field Values

CHAN_GSM

public static final int CHAN_GSM
See Also:
Constant Field Values

CHAN_COMM

public static final int CHAN_COMM
See Also:
Constant Field Values

CHAN_CAN

public static final int CHAN_CAN
See Also:
Constant Field Values

CHAN_DIN1

public static final int CHAN_DIN1
See Also:
Constant Field Values

CHAN_DIN2

public static final int CHAN_DIN2
See Also:
Constant Field Values

CHAN_DIN4

public static final int CHAN_DIN4
See Also:
Constant Field Values

CHAN_ENGINE_RUN

public static final int CHAN_ENGINE_RUN
See Also:
Constant Field Values

CHAN_SHUTDOWN

public static final int CHAN_SHUTDOWN
See Also:
Constant Field Values

CHAN_WARNING

public static final int CHAN_WARNING
See Also:
Constant Field Values

CHAN_PTO_STATE

public static final int CHAN_PTO_STATE
See Also:
Constant Field Values

CHAN_FAN_DRIVE_STATE

public static final int CHAN_FAN_DRIVE_STATE
See Also:
Constant Field Values

CHAN_PTO_ENABLED

public static final int CHAN_PTO_ENABLED
See Also:
Constant Field Values

CHAN_FUEL_LEVEL

public static final int CHAN_FUEL_LEVEL
See Also:
Constant Field Values

CHAN_RPM

public static final int CHAN_RPM
See Also:
Constant Field Values

CHAN_TOTAL_ENGINE_HOURS

public static final int CHAN_TOTAL_ENGINE_HOURS
See Also:
Constant Field Values

CHAN_COOLANT_TEMPERATURE

public static final int CHAN_COOLANT_TEMPERATURE
See Also:
Constant Field Values

CHAN_BATTERY_SWITCHED

public static final int CHAN_BATTERY_SWITCHED
See Also:
Constant Field Values

CHAN_BATTERY_UNSWITCHED

public static final int CHAN_BATTERY_UNSWITCHED
See Also:
Constant Field Values

CHAN_OIL_PRESSURE

public static final int CHAN_OIL_PRESSURE
See Also:
Constant Field Values

CHAN_FUEL_RATE

public static final int CHAN_FUEL_RATE
See Also:
Constant Field Values

CHAN_ANALOG_INPUT

public static final int CHAN_ANALOG_INPUT
See Also:
Constant Field Values

CHAN_VEHICLE_DISTANCE

public static final int CHAN_VEHICLE_DISTANCE
See Also:
Constant Field Values

CHAN_ENGINE_STARTS

public static final int CHAN_ENGINE_STARTS
See Also:
Constant Field Values

CHAN_IDLE_TIME_START

public static final int CHAN_IDLE_TIME_START
See Also:
Constant Field Values

CHAN_IDLE_FUEL_START

public static final int CHAN_IDLE_FUEL_START
See Also:
Constant Field Values

CHAN_WORK_TIME_START

public static final int CHAN_WORK_TIME_START
See Also:
Constant Field Values

CHAN_WORK_FUEL_START

public static final int CHAN_WORK_FUEL_START
See Also:
Constant Field Values

CHAN_IDLE_TIME_DAY

public static final int CHAN_IDLE_TIME_DAY
See Also:
Constant Field Values

CHAN_IDLE_FUEL_DAY

public static final int CHAN_IDLE_FUEL_DAY
See Also:
Constant Field Values

CHAN_WORK_TIME_DAY

public static final int CHAN_WORK_TIME_DAY
See Also:
Constant Field Values

CHAN_WORK_FUEL_DAY

public static final int CHAN_WORK_FUEL_DAY
See Also:
Constant Field Values

CHAN_OIL_LEVEL

public static final int CHAN_OIL_LEVEL
See Also:
Constant Field Values

CHAN_OIL_TEMPERATURE

public static final int CHAN_OIL_TEMPERATURE
See Also:
Constant Field Values

CHAN_COOLANT_LEVEL

public static final int CHAN_COOLANT_LEVEL
See Also:
Constant Field Values

CHAN_AVERAGE_FUEL_ECON

public static final int CHAN_AVERAGE_FUEL_ECON
See Also:
Constant Field Values

CHAN_INSTANT_FUEL_ECON

public static final int CHAN_INSTANT_FUEL_ECON
See Also:
Constant Field Values

CHAN_THROTTLE_POSITION

public static final int CHAN_THROTTLE_POSITION
See Also:
Constant Field Values

CHAN_VEHICLE_SPEED

public static final int CHAN_VEHICLE_SPEED
See Also:
Constant Field Values

CHAN_BAROMETRIC_PRESSURE

public static final int CHAN_BAROMETRIC_PRESSURE
See Also:
Constant Field Values

CHAN_CABIN_TEMPERATURE

public static final int CHAN_CABIN_TEMPERATURE
See Also:
Constant Field Values

CHAN_AMBIENT_TEMPERATURE

public static final int CHAN_AMBIENT_TEMPERATURE
See Also:
Constant Field Values

CHAN_ACCEL_PEDAL_POSITION

public static final int CHAN_ACCEL_PEDAL_POSITION
See Also:
Constant Field Values

CHAN_AIR_FILTER_DIFF_PRESSUE

public static final int CHAN_AIR_FILTER_DIFF_PRESSUE
See Also:
Constant Field Values

CHAN_ENGINE_LOAD

public static final int CHAN_ENGINE_LOAD
See Also:
Constant Field Values

CHAN_ENGINE_TORQUE

public static final int CHAN_ENGINE_TORQUE
See Also:
Constant Field Values

CHAN_FUEL_BY_RPM

public static final int CHAN_FUEL_BY_RPM
See Also:
Constant Field Values

CHAN_DISTANCE_BY_RPM

public static final int CHAN_DISTANCE_BY_RPM
See Also:
Constant Field Values

CHAN_FUEL_BY_SPEED

public static final int CHAN_FUEL_BY_SPEED
See Also:
Constant Field Values

CHAN_DISTANCE_BY_SPEED

public static final int CHAN_DISTANCE_BY_SPEED
See Also:
Constant Field Values

CHAN_FUEL_BY_LOAD

public static final int CHAN_FUEL_BY_LOAD
See Also:
Constant Field Values

CHAN_FUEL_BY_TORQUE

public static final int CHAN_FUEL_BY_TORQUE
See Also:
Constant Field Values

CHAN_DISTANCE_BY_DAY

public static final int CHAN_DISTANCE_BY_DAY
See Also:
Constant Field Values

CHAN_FUEL_BY_DAY

public static final int CHAN_FUEL_BY_DAY
See Also:
Constant Field Values

CHAN_PTO_FUEL_BY_DAY

public static final int CHAN_PTO_FUEL_BY_DAY
See Also:
Constant Field Values

CHAN_ENGINE_FUEL_TEMPERATURE

public static final int CHAN_ENGINE_FUEL_TEMPERATURE
See Also:
Constant Field Values

CHAN_ESTIMATED_FAN_SPEED

public static final int CHAN_ESTIMATED_FAN_SPEED
See Also:
Constant Field Values

CHAN_TRANS_OIL_TEMPERATURE

public static final int CHAN_TRANS_OIL_TEMPERATURE
See Also:
Constant Field Values

CHAN_GEN_TOTAL_KW_HOURS

public static final int CHAN_GEN_TOTAL_KW_HOURS
See Also:
Constant Field Values

CHAN_GEN_TOTAL_REACTIVE_POWER

public static final int CHAN_GEN_TOTAL_REACTIVE_POWER
See Also:
Constant Field Values

CHAN_GEN_POWER_FACTOR

public static final int CHAN_GEN_POWER_FACTOR
See Also:
Constant Field Values

CHAN_GEN_TOTAL_REAL_POWER

public static final int CHAN_GEN_TOTAL_REAL_POWER
See Also:
Constant Field Values

CHAN_GEN_AVG_LINE_LINE_AC_RMS

public static final int CHAN_GEN_AVG_LINE_LINE_AC_RMS
See Also:
Constant Field Values

CHAN_GEN_AVG_LINE_NEUT_AC_RMS

public static final int CHAN_GEN_AVG_LINE_NEUT_AC_RMS
See Also:
Constant Field Values

CHAN_GEN_AVG_AC_FREQUENCY

public static final int CHAN_GEN_AVG_AC_FREQUENCY
See Also:
Constant Field Values

CHAN_GEN_AVG_AC_RMS_CURRENT

public static final int CHAN_GEN_AVG_AC_RMS_CURRENT
See Also:
Constant Field Values

ChannelDescription

public static final java.util.Map ChannelDescription
Constructor Detail

AntxChannel

public AntxChannel(int id,
                   java.lang.String desc,
                   int units,
                   double gain,
                   double offset)

AntxChannel

public AntxChannel(int id,
                   java.lang.String desc,
                   int units,
                   double gain)

AntxChannel

public AntxChannel(int id,
                   java.lang.String desc)
Method Detail

GetAntxChannel

public static AntxChannel GetAntxChannel(int ch)

GetChannelDescription

public static java.lang.String GetChannelDescription(int ch)

ConvertChannelUnits

public static double ConvertChannelUnits(int ch,
                                         double value)

ConvertChannelUnits

public static double ConvertChannelUnits(AntxChannel ac,
                                         double value)

GetChannelUnitsDescription

public static java.lang.String GetChannelUnitsDescription(Account a,
                                                          int fld,
                                                          int ch)

GetAccountUnitsValue

public static double GetAccountUnitsValue(Account a,
                                          int fld,
                                          int ch,
                                          double value)

getUnits

public int getUnits()

accountUnitsDescription

public java.lang.String accountUnitsDescription(Account a,
                                                java.util.Locale locale)

toAccountUnits

public double toAccountUnits(Account a,
                             double value)

convertUnits

public double convertUnits(double value)