Record Class MedibusParam
java.lang.Object
java.lang.Record
com.framed.communicator.driver.protocol.medibus.utils.MedibusParam
- Record Components:
code- the raw Medibus data code (the map key this parameter is stored under)id- stable short channel identifier used aschannelID(e.g."etCO2")label- human-readable description (e.g."End-tidal CO2 concentration")unit- best-effort unit where the protocol description makes it explicit (e.g."mmHg"); may be empty
A single Medibus(.X) protocol parameter: the mapping from a one-byte protocol code to a stable,
address-safe channel identifier plus human-readable metadata.
The id() is what flows downstream as the channelID (and therefore into bus
addresses "<className>.<deviceID>.<channelID>.parsed"), so it is kept short and stable
(e.g. "etCO2") rather than the verbose description it is derived from.
-
Constructor Summary
ConstructorsConstructorDescriptionMedibusParam(byte code, String id, String label, String unit) Creates an instance of aMedibusParamrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbytecode()Returns the value of thecoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.label()Returns the value of thelabelrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.
-
Constructor Details
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
code
public byte code()Returns the value of thecoderecord component.- Returns:
- the value of the
coderecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
