Interface CanSignal.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<CanSignal.Builder,
,CanSignal> SdkBuilder<CanSignal.Builder,
,CanSignal> SdkPojo
- Enclosing class:
CanSignal
-
Method Summary
Modifier and TypeMethodDescriptionA multiplier used to decode the CAN message.isBigEndian
(Boolean isBigEndian) Whether the byte ordering of a CAN message is big-endian.Determines whether the message is signed (true
) or not (false
).How many bytes of data are in the message.The ID of the message.The name of the signal.The offset used to calculate the signal value.signalValueType
(String signalValueType) The value type of the signal.signalValueType
(SignalValueType signalValueType) The value type of the signal.Indicates the beginning of the CAN signal.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
messageId
The ID of the message.
- Parameters:
messageId
- The ID of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isBigEndian
Whether the byte ordering of a CAN message is big-endian.
- Parameters:
isBigEndian
- Whether the byte ordering of a CAN message is big-endian.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isSigned
Determines whether the message is signed (
true
) or not (false
). If it's signed, the message can represent both positive and negative numbers. TheisSigned
parameter only applies to theINTEGER
raw signal type, and it doesn't affect theFLOATING_POINT
raw signal type.- Parameters:
isSigned
- Determines whether the message is signed (true
) or not (false
). If it's signed, the message can represent both positive and negative numbers. TheisSigned
parameter only applies to theINTEGER
raw signal type, and it doesn't affect theFLOATING_POINT
raw signal type.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
startBit
Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).
This value might be different from the value in a DBC file. For little endian signals,
startBit
is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as thestartBit
.- Parameters:
startBit
- Indicates the beginning of the CAN signal. This should always be the least significant bit (LSB).This value might be different from the value in a DBC file. For little endian signals,
startBit
is the same value as in the DBC file. For big endian signals in a DBC file, the start bit is the most significant bit (MSB). You will have to calculate the LSB instead and pass it as thestartBit
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
offset
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.- Parameters:
offset
- The offset used to calculate the signal value. Combined with factor, the calculation isvalue = raw_value * factor + offset
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
factor
A multiplier used to decode the CAN message.
- Parameters:
factor
- A multiplier used to decode the CAN message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
length
How many bytes of data are in the message.
- Parameters:
length
- How many bytes of data are in the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the signal.
- Parameters:
name
- The name of the signal.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
signalValueType
The value type of the signal. The default value is
INTEGER
.- Parameters:
signalValueType
- The value type of the signal. The default value isINTEGER
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
signalValueType
The value type of the signal. The default value is
INTEGER
.- Parameters:
signalValueType
- The value type of the signal. The default value isINTEGER
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-