org.opengts.dbtypes
Class DTOBDFault

java.lang.Object
  extended by org.opengts.dbtools.DBFieldType
      extended by org.opengts.dbtypes.DTOBDFault

public class DTOBDFault
extends DBFieldType


Nested Class Summary
static interface DTOBDFault.J1587DescriptionProvider
           
 
Field Summary
static long ACTIVE_MASK
           
static int ACTIVE_SHIFT
           
static long COUNT_MASK
           
static int COUNT_SHIFT
           
static long FMI_MASK
           
static int FMI_SHIFT
           
static long MID_MASK
           
static int MID_SHIFT
           
static java.lang.String NAME_DTC
           
static java.lang.String NAME_FMI
           
static java.lang.String NAME_FMI_DESC
           
static java.lang.String NAME_J1708
           
static java.lang.String NAME_J1939
           
static java.lang.String NAME_MID
           
static java.lang.String NAME_MID_DESC
           
static java.lang.String NAME_OBDII
           
static java.lang.String NAME_PID
           
static java.lang.String NAME_PID_DESC
           
static java.lang.String NAME_SID
           
static java.lang.String NAME_SID_DESC
           
static java.lang.String NAME_SPN
           
static java.lang.String PACKAGE_EXTRA_
           
static java.lang.String PACKAGE_EXTRA_DBTOOLS_
           
static java.lang.String[] PROP_ACTIVE
           
static java.lang.String[] PROP_COUNT
           
static java.lang.String[] PROP_DTC
           
static java.lang.String[] PROP_FMI
           
static java.lang.String[] PROP_MID
           
static java.lang.String[] PROP_MIL
           
static java.lang.String[] PROP_PID
           
static java.lang.String[] PROP_SID
           
static java.lang.String[] PROP_SPN
           
static java.lang.String[] PROP_TYPE
           
static long SID_MASK
           
static long SPID_MASK
           
static int SPID_SHIFT
           
static long TYPE_J1708
           
static long TYPE_J1939
           
static long TYPE_MASK
           
static long TYPE_OBDII
           
static int TYPE_SHIFT
           
 
Constructor Summary
DTOBDFault(int mid, boolean isSid, int pidSid, int fmi, int count, boolean active)
           
DTOBDFault(int spn, int fmi, int count)
           
DTOBDFault(long faultCode)
           
DTOBDFault(java.sql.ResultSet rs, java.lang.String fldName)
           
DTOBDFault(java.lang.String dtc)
           
 
Method Summary
static boolean DecodeActive(long fault)
           
static int DecodeCount(long fault)
           
static int DecodeFMI(long fault)
           
static int DecodePidSid(long fault)
           
static int DecodeSPID(long fault)
           
static int DecodeSystem(long fault)
           
static long EncodeActive(boolean active)
           
static long EncodeCount(int count)
           
static long EncodeFault_J1708(int mid, boolean isSID, int pidSid, int fmi, int count, boolean active)
           
static long EncodeFault_J1939(int spn, int fmi, int count)
           
static long EncodeFault_OBDII(java.lang.String dtcStr)
           
static long EncodeFault(RTProperties rtp)
           
static long EncodeFault(java.lang.String faultProps)
           
static long EncodeFMI(int fmi)
           
static long EncodeSPID(int sub)
           
static long EncodeSystem(char sys)
           
static long EncodeSystem(int sys)
           
 boolean equals(java.lang.Object other)
          Returns true if the 'other' object is equivalent to this field type value
 java.lang.String getDescription()
           
static java.lang.String GetDTCGenericDescrption(java.lang.String dtc)
           
 long getFaultCode()
           
static java.lang.String GetFaultDescription(long fault, java.util.Locale locale)
           
static java.lang.String GetFaultHeader(long fault)
           
static java.lang.String GetFaultHeader(RTProperties fault)
           
static java.lang.String GetFaultString(long fault)
           
static java.lang.String GetFaultString(RTProperties fault)
           
 java.lang.Object getObject()
          Gets the current value
static java.lang.String GetPropertyString_OBDII(java.util.List<java.lang.String> dtc)
           
static java.lang.String GetPropertyString_OBDII(long[] dtcFault)
           
static java.lang.String GetPropertyString_OBDII(java.lang.String dtcStr)
           
static java.lang.String GetPropertyString_OBDII(java.lang.String[] dtc)
           
static java.lang.String GetPropertyString(long fault)
           
static boolean HasDescriptionProvider(long fault)
           
static boolean InitJ1587DescriptionProvider()
           
static boolean IsJ1708_PID(long fault)
           
static boolean IsJ1708_PID(RTProperties rtpFault)
           
static boolean IsJ1708_SID(long fault)
           
static boolean IsJ1708_SID(RTProperties rtpFault)
           
 boolean isJ1708()
           
static boolean IsJ1708(long fault)
           
static boolean IsJ1708(RTProperties rtpFault)
           
 boolean isJ1939()
           
static boolean IsJ1939(long fault)
           
static boolean IsJ1939(RTProperties rtpFault)
           
 boolean isOBDII()
           
static boolean IsOBDII(long fault)
           
static boolean IsOBDII(RTProperties rtpFault)
           
static void main(java.lang.String[] argv)
           
 java.lang.String toString()
          Gets the String representation of the current value
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PACKAGE_EXTRA_

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

PACKAGE_EXTRA_DBTOOLS_

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

PROP_MIL

public static final java.lang.String[] PROP_MIL

PROP_TYPE

public static final java.lang.String[] PROP_TYPE

PROP_MID

public static final java.lang.String[] PROP_MID

PROP_SID

public static final java.lang.String[] PROP_SID

PROP_PID

public static final java.lang.String[] PROP_PID

PROP_FMI

public static final java.lang.String[] PROP_FMI

PROP_SPN

public static final java.lang.String[] PROP_SPN

PROP_DTC

public static final java.lang.String[] PROP_DTC

PROP_COUNT

public static final java.lang.String[] PROP_COUNT

PROP_ACTIVE

public static final java.lang.String[] PROP_ACTIVE

NAME_J1708

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

NAME_J1939

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

NAME_OBDII

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

NAME_MID

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

NAME_MID_DESC

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

NAME_PID

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

NAME_PID_DESC

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

NAME_SID

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

NAME_SID_DESC

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

NAME_SPN

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

NAME_FMI

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

NAME_FMI_DESC

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

NAME_DTC

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

TYPE_MASK

public static final long TYPE_MASK
See Also:
Constant Field Values

TYPE_SHIFT

public static final int TYPE_SHIFT
See Also:
Constant Field Values

TYPE_J1708

public static final long TYPE_J1708
See Also:
Constant Field Values

TYPE_J1939

public static final long TYPE_J1939
See Also:
Constant Field Values

TYPE_OBDII

public static final long TYPE_OBDII
See Also:
Constant Field Values

ACTIVE_MASK

public static final long ACTIVE_MASK
See Also:
Constant Field Values

ACTIVE_SHIFT

public static final int ACTIVE_SHIFT
See Also:
Constant Field Values

MID_MASK

public static final long MID_MASK
See Also:
Constant Field Values

MID_SHIFT

public static final int MID_SHIFT
See Also:
Constant Field Values

SPID_MASK

public static final long SPID_MASK
See Also:
Constant Field Values

SPID_SHIFT

public static final int SPID_SHIFT
See Also:
Constant Field Values

SID_MASK

public static final long SID_MASK
See Also:
Constant Field Values

FMI_MASK

public static final long FMI_MASK
See Also:
Constant Field Values

FMI_SHIFT

public static final int FMI_SHIFT
See Also:
Constant Field Values

COUNT_MASK

public static final long COUNT_MASK
See Also:
Constant Field Values

COUNT_SHIFT

public static final int COUNT_SHIFT
See Also:
Constant Field Values
Constructor Detail

DTOBDFault

public DTOBDFault(int mid,
                  boolean isSid,
                  int pidSid,
                  int fmi,
                  int count,
                  boolean active)

DTOBDFault

public DTOBDFault(int spn,
                  int fmi,
                  int count)

DTOBDFault

public DTOBDFault(java.lang.String dtc)

DTOBDFault

public DTOBDFault(long faultCode)

DTOBDFault

public DTOBDFault(java.sql.ResultSet rs,
                  java.lang.String fldName)
           throws java.sql.SQLException
Throws:
java.sql.SQLException
Method Detail

GetDTCGenericDescrption

public static java.lang.String GetDTCGenericDescrption(java.lang.String dtc)

EncodeActive

public static long EncodeActive(boolean active)

DecodeActive

public static boolean DecodeActive(long fault)

EncodeSystem

public static long EncodeSystem(int sys)

EncodeSystem

public static long EncodeSystem(char sys)

DecodeSystem

public static int DecodeSystem(long fault)

EncodeSPID

public static long EncodeSPID(int sub)

DecodeSPID

public static int DecodeSPID(long fault)

DecodePidSid

public static int DecodePidSid(long fault)

EncodeFMI

public static long EncodeFMI(int fmi)

DecodeFMI

public static int DecodeFMI(long fault)

EncodeCount

public static long EncodeCount(int count)

DecodeCount

public static int DecodeCount(long fault)

GetPropertyString_OBDII

public static java.lang.String GetPropertyString_OBDII(java.lang.String dtcStr)

GetPropertyString_OBDII

public static java.lang.String GetPropertyString_OBDII(java.lang.String[] dtc)

GetPropertyString_OBDII

public static java.lang.String GetPropertyString_OBDII(java.util.List<java.lang.String> dtc)

GetPropertyString_OBDII

public static java.lang.String GetPropertyString_OBDII(long[] dtcFault)

GetPropertyString

public static java.lang.String GetPropertyString(long fault)

GetFaultString

public static java.lang.String GetFaultString(RTProperties fault)

GetFaultHeader

public static java.lang.String GetFaultHeader(RTProperties fault)

GetFaultString

public static java.lang.String GetFaultString(long fault)

GetFaultHeader

public static java.lang.String GetFaultHeader(long fault)

EncodeFault

public static long EncodeFault(java.lang.String faultProps)

EncodeFault

public static long EncodeFault(RTProperties rtp)

EncodeFault_J1708

public static long EncodeFault_J1708(int mid,
                                     boolean isSID,
                                     int pidSid,
                                     int fmi,
                                     int count,
                                     boolean active)

IsJ1708

public static boolean IsJ1708(long fault)

IsJ1708

public static boolean IsJ1708(RTProperties rtpFault)

IsJ1708_SID

public static boolean IsJ1708_SID(long fault)

IsJ1708_SID

public static boolean IsJ1708_SID(RTProperties rtpFault)

IsJ1708_PID

public static boolean IsJ1708_PID(long fault)

IsJ1708_PID

public static boolean IsJ1708_PID(RTProperties rtpFault)

EncodeFault_J1939

public static long EncodeFault_J1939(int spn,
                                     int fmi,
                                     int count)

IsJ1939

public static boolean IsJ1939(long fault)

IsJ1939

public static boolean IsJ1939(RTProperties rtpFault)

EncodeFault_OBDII

public static long EncodeFault_OBDII(java.lang.String dtcStr)

IsOBDII

public static boolean IsOBDII(long fault)

IsOBDII

public static boolean IsOBDII(RTProperties rtpFault)

InitJ1587DescriptionProvider

public static boolean InitJ1587DescriptionProvider()

HasDescriptionProvider

public static boolean HasDescriptionProvider(long fault)

GetFaultDescription

public static java.lang.String GetFaultDescription(long fault,
                                                   java.util.Locale locale)

getFaultCode

public long getFaultCode()

getDescription

public java.lang.String getDescription()

isJ1708

public boolean isJ1708()

isJ1939

public boolean isJ1939()

isOBDII

public boolean isOBDII()

getObject

public java.lang.Object getObject()
Description copied from class: DBFieldType
Gets the current value

Specified by:
getObject in class DBFieldType
Returns:
The current value

toString

public java.lang.String toString()
Description copied from class: DBFieldType
Gets the String representation of the current value

Specified by:
toString in class DBFieldType
Returns:
The String representation of the current value

equals

public boolean equals(java.lang.Object other)
Description copied from class: DBFieldType
Returns true if the 'other' object is equivalent to this field type value

Overrides:
equals in class DBFieldType
Parameters:
other - The 'other' object
Returns:
True if the 'other' object is equivalent to this field type value

main

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