Hermes
Simulation Orchestration Platform for Aerospace
Loading...
Searching...
No Matches
hermes.protocol.messages.ControlMessage Class Reference

Public Member Functions

bytes to_bytes (self)
ControlMessage from_bytes (cls, bytes data)

Static Public Attributes

dict payload = None

Detailed Description

Control message sent via named pipe.

Attributes:
    type: Message type
    payload: Optional JSON-serializable payload

Member Function Documentation

◆ from_bytes()

ControlMessage hermes.protocol.messages.ControlMessage.from_bytes ( cls,
bytes data )
Deserialize message from bytes.

Args:
    data: Raw bytes from pipe

Returns:
    Parsed message

Raises:
    ValueError: If message format invalid

◆ to_bytes()

bytes hermes.protocol.messages.ControlMessage.to_bytes ( self)
Serialize message to bytes for pipe transmission.

Format: JSON with newline terminator

Member Data Documentation

◆ payload

dict hermes.protocol.messages.ControlMessage.payload = None
static

The documentation for this class was generated from the following file: