org.opengts.dbtypes
Class DTOBDFault
java.lang.Object
org.opengts.dbtools.DBFieldType
org.opengts.dbtypes.DTOBDFault
public class DTOBDFault
- extends DBFieldType
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)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
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
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)