Class AuditStatus
java.lang.Object
com.inductiveautomation.ignition.common.util.AuditStatus
- All Implemented Interfaces:
Serializable
Some stuff used to rely on StatusCode#getRawValue() and StatusCode#toString(), but now StatusCode
isn't available for use. This is basically a copy of StatusCode so we don't fuck up backwards
compatibility somehow.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AuditStatusstatic final AuditStatusstatic final AuditStatusstatic final AuditStatusstatic final AuditStatusstatic final intstatic final intstatic final AuditStatusprotected int -
Constructor Summary
ConstructorsConstructorDescriptionAuditStatus(int value) AuditStatus(AuditStatus.SubCode subcode) Creates a new status code with the given SubCode and false for the datavalue flag.AuditStatus(AuditStatus.SubCode subcode, boolean datavalue) Creates a new status code based on the given SubCodeAuditStatus(AuditStatus.SubCode subCode, AuditStatus.Severity severity) AuditStatus(AuditStatus.SubCode subCode, AuditStatus.Severity severity, boolean dataValue) -
Method Summary
Modifier and TypeMethodDescriptionbooleanshortReturns the InfoBits of the StatusCode (bits 0:9).getName()shortintinthashCode()booleanisGood()booleanbooleantoString()static AuditStatusworstOf(AuditStatus q1, AuditStatus q2) Returns the 'worst' or 'most severe' of the two qualities.static AuditStatusworstOfAll(AuditStatus... q)
-
Field Details
-
GOOD
-
UNCERTAIN
-
BAD
-
BAD_SECURITY_CHECKS_FAILED
-
BAD_INTERNAL_ERROR
-
BAD_DEMO_EXPIRED
-
STRUCTURE_CHANGED_MASK
public static final int STRUCTURE_CHANGED_MASK- See Also:
-
SEMANTICS_CHANGED_MASK
public static final int SEMANTICS_CHANGED_MASK- See Also:
-
value
protected int value
-
-
Constructor Details
-
AuditStatus
public AuditStatus(int value) -
AuditStatus
-
AuditStatus
-
AuditStatus
Creates a new status code with the given SubCode and false for the datavalue flag. -
AuditStatus
Creates a new status code based on the given SubCode
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getSeverity
-
isGood
public boolean isGood() -
getRawSubCode
public short getRawSubCode() -
getSubCode
-
isStructureChanged
public boolean isStructureChanged() -
isSemanticsChanged
public boolean isSemanticsChanged() -
getInfoType
-
getInfoBits
public short getInfoBits()Returns the InfoBits of the StatusCode (bits 0:9). The structure of these bits depends on the InfoType -
getRawValue
public int getRawValue() -
worstOf
Returns the 'worst' or 'most severe' of the two qualities. -
worstOfAll
-
toString
-
getName
-