Class ThirdPartyJ1939FaultRecord
- Namespace
- Geotab.StoreForward
- Assembly
- Geotab.Checkmate.ObjectModel.dll
public class ThirdPartyJ1939FaultRecord : ThirdPartyDataRecord
- Inheritance
-
ThirdPartyJ1939FaultRecord
- Inherited Members
Constructors
ThirdPartyJ1939FaultRecord()
Initializes a new instance of the ThirdPartyJ1939FaultRecord class. Creates a J1939 fault record for a third-party device.
public ThirdPartyJ1939FaultRecord()
ThirdPartyJ1939FaultRecord(string, in DateTime, int, byte, byte, byte, bool, bool, bool, bool, bool)
Initializes a new instance of the ThirdPartyJ1939FaultRecord class. Creates a J1939 fault record for a third-party device.
public ThirdPartyJ1939FaultRecord(string serialNo, in DateTime dateTime, int suspectParameterNumber, byte failureModeIdentifier, byte occurrenceCount, byte sourceAddress = 254, bool malfunctionLamp = false, bool redStopLamp = false, bool amberWarningLamp = false, bool protectWarningLamp = false, bool faultStateActive = true)
Parameters
serialNo
stringThe serial number.
dateTime
DateTimeThe date time.
suspectParameterNumber
intThe suspect parameter number.
failureModeIdentifier
byteThe fault mode indicator
occurrenceCount
byteThe occurence count.
sourceAddress
byteThe source address.
malfunctionLamp
boolThe malfunction lamp.
redStopLamp
boolThe red stop lamp.
amberWarningLamp
boolThe amber warning lamp.
protectWarningLamp
boolThe protect warning lamp.
faultStateActive
boolThe fault state.
Properties
AmberWarningLamp
Gets or sets a value indicating whether the amber warning lamp is on
public bool AmberWarningLamp { get; set; }
Property Value
- bool
A value indicating whether the amber warning lamp is on
FailureModeIdentifier
Gets or sets the failure mode identifier of the third party device.
public byte FailureModeIdentifier { get; set; }
Property Value
- byte
The failure mode identifier of the third party device.
FaultStateActive
Gets or sets a value indicating whether the fault state is active
public bool FaultStateActive { get; set; }
Property Value
- bool
A value indicating whether the fault state is active
MalfunctionLamp
Gets or sets a value indicating whether the malfunction lamp is on
public bool MalfunctionLamp { get; set; }
Property Value
- bool
A value indicating whether the malfunction lamp is on
OccurrenceCount
Gets or sets the occurence count of the third party device.
public byte OccurrenceCount { get; set; }
Property Value
- byte
The occurence count of the third party device.
ProtectWarningLamp
Gets or sets a value indicating whether the protect warning lamp is on
public bool ProtectWarningLamp { get; set; }
Property Value
- bool
A value indicating whether the protect warning lamp is on
RedStopLamp
Gets or sets a value indicating whether the red stop lamp is on
public bool RedStopLamp { get; set; }
Property Value
- bool
A value indicating whether the red stop lamp is on
SourceAddress
Gets or sets the source address.
public byte SourceAddress { get; set; }
Property Value
- byte
The source address.
SuspectParameterNumber
Gets or sets the suspect parameter number of the third party device.
public int SuspectParameterNumber { get; set; }
Property Value
- int
The suspect parameter number of the third party device.
Methods
CreateBinaryData()
Converts the record into binary data to be inserted into the database.
public override byte[] CreateBinaryData()
Returns
- byte[]
The binary data array.
SetLamps()
Combines the lamp flags into a single byte data
public byte SetLamps()
Returns
- byte
The single byte of the combined lamp flag bits
SetSpnAndFmi()
Combines Spn and Fmi into single a byte data
public byte SetSpnAndFmi()
Returns
- byte
The single byte of the combined Spn and Fmi