Hermes
Simulation Orchestration Platform for Aerospace
Loading...
Searching...
No Matches
hermes.server.protocol.Command Class Reference

Public Member Functions

Command from_json (cls, str data)
None validate (self)

Public Attributes

 action

Static Public Attributes

dict params = field(default_factory=dict)

Detailed Description

Command received from client.

Attributes:
    action: Command action (pause, resume, reset, step, set, subscribe, introspect)
    params: Action-specific parameters

Member Function Documentation

◆ from_json()

Command hermes.server.protocol.Command.from_json ( cls,
str data )
Parse command from JSON string.

Args:
    data: JSON string containing command

Returns:
    Parsed command

Raises:
    ProtocolError: If JSON is invalid or missing required fields

◆ validate()

None hermes.server.protocol.Command.validate ( self)
Validate command action and params.

Raises:
    ProtocolError: If action is unknown or params are invalid

Member Data Documentation

◆ action

hermes.server.protocol.Command.action

◆ params

dict hermes.server.protocol.Command.params = field(default_factory=dict)
static

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