|
Hermes
Simulation Orchestration Platform for Aerospace
|
Public Member Functions | |
| bytes | to_bytes (self) |
| ControlMessage | from_bytes (cls, bytes data) |
Static Public Attributes | |
| dict | payload = None |
Control message sent via named pipe.
Attributes:
type: Message type
payload: Optional JSON-serializable payload
| 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
| bytes hermes.protocol.messages.ControlMessage.to_bytes | ( | self | ) |
Serialize message to bytes for pipe transmission. Format: JSON with newline terminator
|
static |