@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CanSignal extends Object implements Serializable, Cloneable, StructuredPojo
Information about a single controller area network (CAN) signal and the messages it receives and transmits.
Constructor and Description |
---|
CanSignal() |
Modifier and Type | Method and Description |
---|---|
CanSignal |
clone() |
boolean |
equals(Object obj) |
Double |
getFactor()
A multiplier used to decode the CAN message.
|
Boolean |
getIsBigEndian()
Whether the byte ordering of a CAN message is big-endian.
|
Boolean |
getIsSigned()
Whether the message data is specified as a signed value.
|
Integer |
getLength()
How many bytes of data are in the message.
|
Integer |
getMessageId()
The ID of the message.
|
String |
getName()
The name of the signal.
|
Double |
getOffset()
The offset used to calculate the signal value.
|
Integer |
getStartBit()
Indicates the beginning of the CAN signal.
|
int |
hashCode() |
Boolean |
isBigEndian()
Whether the byte ordering of a CAN message is big-endian.
|
Boolean |
isSigned()
Whether the message data is specified as a signed value.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFactor(Double factor)
A multiplier used to decode the CAN message.
|
void |
setIsBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
|
void |
setIsSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
|
void |
setLength(Integer length)
How many bytes of data are in the message.
|
void |
setMessageId(Integer messageId)
The ID of the message.
|
void |
setName(String name)
The name of the signal.
|
void |
setOffset(Double offset)
The offset used to calculate the signal value.
|
void |
setStartBit(Integer startBit)
Indicates the beginning of the CAN signal.
|
String |
toString()
Returns a string representation of this object.
|
CanSignal |
withFactor(Double factor)
A multiplier used to decode the CAN message.
|
CanSignal |
withIsBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
|
CanSignal |
withIsSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
|
CanSignal |
withLength(Integer length)
How many bytes of data are in the message.
|
CanSignal |
withMessageId(Integer messageId)
The ID of the message.
|
CanSignal |
withName(String name)
The name of the signal.
|
CanSignal |
withOffset(Double offset)
The offset used to calculate the signal value.
|
CanSignal |
withStartBit(Integer startBit)
Indicates the beginning of the CAN signal.
|
public void setMessageId(Integer messageId)
The ID of the message.
messageId
- The ID of the message.public Integer getMessageId()
The ID of the message.
public CanSignal withMessageId(Integer messageId)
The ID of the message.
messageId
- The ID of the message.public void setIsBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
isBigEndian
- Whether the byte ordering of a CAN message is big-endian.public Boolean getIsBigEndian()
Whether the byte ordering of a CAN message is big-endian.
public CanSignal withIsBigEndian(Boolean isBigEndian)
Whether the byte ordering of a CAN message is big-endian.
isBigEndian
- Whether the byte ordering of a CAN message is big-endian.public Boolean isBigEndian()
Whether the byte ordering of a CAN message is big-endian.
public void setIsSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
isSigned
- Whether the message data is specified as a signed value.public Boolean getIsSigned()
Whether the message data is specified as a signed value.
public CanSignal withIsSigned(Boolean isSigned)
Whether the message data is specified as a signed value.
isSigned
- Whether the message data is specified as a signed value.public Boolean isSigned()
Whether the message data is specified as a signed value.
public void setStartBit(Integer 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 the startBit
.
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 the
startBit
.
public Integer getStartBit()
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 the startBit
.
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
the startBit
.
public CanSignal withStartBit(Integer 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 the startBit
.
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 the
startBit
.
public void setOffset(Double offset)
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.
offset
- The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.public Double getOffset()
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.
value = raw_value * factor + offset
.public CanSignal withOffset(Double offset)
The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.
offset
- The offset used to calculate the signal value. Combined with factor, the calculation is
value = raw_value * factor + offset
.public void setFactor(Double factor)
A multiplier used to decode the CAN message.
factor
- A multiplier used to decode the CAN message.public Double getFactor()
A multiplier used to decode the CAN message.
public CanSignal withFactor(Double factor)
A multiplier used to decode the CAN message.
factor
- A multiplier used to decode the CAN message.public void setLength(Integer length)
How many bytes of data are in the message.
length
- How many bytes of data are in the message.public Integer getLength()
How many bytes of data are in the message.
public CanSignal withLength(Integer length)
How many bytes of data are in the message.
length
- How many bytes of data are in the message.public void setName(String name)
The name of the signal.
name
- The name of the signal.public String getName()
The name of the signal.
public CanSignal withName(String name)
The name of the signal.
name
- The name of the signal.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.