Class CreateMessagePayload
Represents an operator which creates a sequence of Harp messages with the specified payload.
public class CreateMessagePayload
- Inheritance
-
CreateMessagePayload
- Inherited Members
Properties
Address
Gets or sets the address of the register to which the Harp message refers to.
public int Address { get; set; }
Property Value
PayloadType
Gets or sets the type of data to include in the message payload.
public PayloadType PayloadType { get; set; }
Property Value
Value
Gets or sets the data to write in the message payload.
public double Value { get; set; }
Property Value
Methods
GetMessage(MessageType)
Creates a new Harp message with the specified payload value.
public HarpMessage GetMessage(MessageType messageType)
Parameters
messageType
MessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new message containing the value of the payload property.
GetMessage(double, MessageType)
Creates a new timestamped Harp message with the specified payload value.
public HarpMessage GetMessage(double timestamp, MessageType messageType)
Parameters
timestamp
doubleThe timestamp of the message payload, in seconds.
messageType
MessageTypeSpecifies the type of the created message.
Returns
- HarpMessage
A new timestamped message containing the value of the payload property.