Class FullSensorRecord
java.lang.Object
org.sentrysoftware.ipmi.core.coding.commands.sdr.record.SensorRecord
org.sentrysoftware.ipmi.core.coding.commands.sdr.record.FullSensorRecord
Wrapper class for Full Sensor Record format
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalcFormula(int value) Converts to units-based value using the 'y=Mx+B' formula.doublebytebyteintdoubledoubledoublegetName()doubledoubledoubledoubledoublebytebytebytedoubledoubledoubledoubledoublebooleanbooleanbooleanvoidsetAccuracy(double bAccuracy) voidsetAddressType(AddressType addressType) voidsetChannelNumber(byte channelNumber) voidsetEntityId(EntityId entityId) voidsetEntityInstanceNumber(byte entityInstanceNumber) voidsetEntityPhysical(boolean entityPhysical) voidsetEventReadingType(int eventReadingType) voidsetHysteresisReadable(boolean hysteresisReadable) voidsetLowerCriticalThreshold(double lowerCriticalThreshold) voidsetLowerNonCriticalThreshold(double lowerNonCriticalThreshold) voidsetLowerNonRecoverableThreshold(double lowerNonRecoverableThreshold) voidsetModifierUnitUsage(ModifierUnitUsage modifierUnitUsage) voidvoidsetNominalReading(double nominalReading) voidsetNormalMaximum(double normalMaximum) voidsetNormalMinimum(double normalMinimum) voidsetRateUnit(RateUnit rateUnit) voidsetSensorBaseUnit(SensorUnit sensorBaseUnit) voidsetSensorDirection(SensorDirection sensorDirection) voidsetSensorMaximumReading(double sensorMaximumReading) voidsetSensorMinmumReading(double sensorMinmumReading) voidsetSensorModifierUnit(SensorUnit sensorModifierUnit) voidsetSensorNumber(byte sensorNumber) voidsetSensorOwnerId(byte sensorOwnerId) voidsetSensorOwnerLun(byte sensorOwnerLun) voidsetSensorType(SensorType sensorType) voidsetThresholdsReadable(boolean thresholdsReadable) voidsetTolerance(double mTolerance) voidsetUpperCriticalThreshold(double upperCriticalThreshold) voidsetUpperNonCriticalThreshold(double upperNonCriticalThreshold) voidsetUpperNonRecoverableThreshold(double upperNonRecoverableThreshold) Methods inherited from class org.sentrysoftware.ipmi.core.coding.commands.sdr.record.SensorRecord
getId, getRecordLength, getRecordType, getSdrVersion, populateSensorRecord, setId, setRecordLength, setRecordType, setSdrVersion
-
Constructor Details
-
FullSensorRecord
public FullSensorRecord()
-
-
Method Details
-
setSensorOwnerId
public void setSensorOwnerId(byte sensorOwnerId) -
getSensorOwnerId
public byte getSensorOwnerId() -
getAddressType
-
setAddressType
-
getChannelNumber
public byte getChannelNumber() -
setChannelNumber
public void setChannelNumber(byte channelNumber) -
getSensorOwnerLun
public byte getSensorOwnerLun() -
setSensorOwnerLun
public void setSensorOwnerLun(byte sensorOwnerLun) -
getSensorNumber
public byte getSensorNumber() -
setSensorNumber
public void setSensorNumber(byte sensorNumber) -
getEntityId
-
setEntityId
-
isEntityPhysical
public boolean isEntityPhysical() -
setEntityPhysical
public void setEntityPhysical(boolean entityPhysical) -
getEntityInstanceNumber
public byte getEntityInstanceNumber() -
setEntityInstanceNumber
public void setEntityInstanceNumber(byte entityInstanceNumber) -
isHysteresisReadable
public boolean isHysteresisReadable() -
setHysteresisReadable
public void setHysteresisReadable(boolean hysteresisReadable) -
isThresholdsReadable
public boolean isThresholdsReadable() -
setThresholdsReadable
public void setThresholdsReadable(boolean thresholdsReadable) -
getSensorType
-
setSensorType
-
getEventReadingType
public int getEventReadingType() -
setEventReadingType
public void setEventReadingType(int eventReadingType) -
getRateUnit
-
setRateUnit
-
getModifierUnitUsage
-
setModifierUnitUsage
-
getSensorBaseUnit
-
setSensorBaseUnit
-
getSensorModifierUnit
-
setSensorModifierUnit
-
getTolerance
public double getTolerance() -
setTolerance
public void setTolerance(double mTolerance) -
getAccuracy
public double getAccuracy() -
setAccuracy
public void setAccuracy(double bAccuracy) -
getSensorDirection
-
setSensorDirection
-
getNominalReading
public double getNominalReading() -
setNominalReading
public void setNominalReading(double nominalReading) -
getNormalMaximum
public double getNormalMaximum() -
setNormalMaximum
public void setNormalMaximum(double normalMaximum) -
getNormalMinimum
public double getNormalMinimum() -
setNormalMinimum
public void setNormalMinimum(double normalMinimum) -
getSensorMaximumReading
public double getSensorMaximumReading() -
setSensorMaximumReading
public void setSensorMaximumReading(double sensorMaximumReading) -
getSensorMinmumReading
public double getSensorMinmumReading() -
setSensorMinmumReading
public void setSensorMinmumReading(double sensorMinmumReading) -
getUpperNonRecoverableThreshold
public double getUpperNonRecoverableThreshold() -
setUpperNonRecoverableThreshold
public void setUpperNonRecoverableThreshold(double upperNonRecoverableThreshold) -
getLowerNonRecoverableThreshold
public double getLowerNonRecoverableThreshold() -
setLowerNonRecoverableThreshold
public void setLowerNonRecoverableThreshold(double lowerNonRecoverableThreshold) -
getUpperCriticalThreshold
public double getUpperCriticalThreshold() -
setUpperCriticalThreshold
public void setUpperCriticalThreshold(double upperCriticalThreshold) -
getLowerCriticalThreshold
public double getLowerCriticalThreshold() -
setLowerCriticalThreshold
public void setLowerCriticalThreshold(double lowerCriticalThreshold) -
getUpperNonCriticalThreshold
public double getUpperNonCriticalThreshold() -
setUpperNonCriticalThreshold
public void setUpperNonCriticalThreshold(double upperNonCriticalThreshold) -
getLowerNonCriticalThreshold
public double getLowerNonCriticalThreshold() -
setLowerNonCriticalThreshold
public void setLowerNonCriticalThreshold(double lowerNonCriticalThreshold) -
getName
-
setName
-
calcFormula
public double calcFormula(int value) Converts to units-based value using the 'y=Mx+B' formula. 1's or 2's complement signed or unsigned per flag bits in Sensor Units 1.- Parameters:
value- - Value to be converted. Length of 8 is assumed.- Returns:
- converted value
-
getSensorResolution
public double getSensorResolution()
-