Public Member Functions | Static Public Attributes
clearpath.horizon.messages.Message Class Reference

Horizon Message. More...

Inheritance diagram for clearpath.horizon.messages.Message:
Inheritance graph
[legend]

List of all members.

Public Member Functions

def __init__
def __str__
def command
def copy
def data
def parse
def request
def validate

Static Public Attributes

int SOH = 0xAA
int STX = 0x55

Detailed Description

Horizon Message.

Represents a message to be transmitted to / received from the hardware.

Horizon Protocol Message

Definition at line 72 of file messages.py.


Constructor & Destructor Documentation

def clearpath.horizon.messages.Message.__init__ (   self,
  kwargs 
)

Definition at line 128 of file messages.py.


Member Function Documentation

Definition at line 133 of file messages.py.

def clearpath.horizon.messages.Message.command (   cls,
  name,
  args = {},
  timestamp = 0,
  no_ack = False 
)

Definition at line 80 of file messages.py.

def clearpath.horizon.messages.Message.copy (   self,
  timestamp = None 
)
Return a copy of this message, with a new timestamp. This is for
resending messages.

Definition at line 142 of file messages.py.

Definition at line 155 of file messages.py.

def clearpath.horizon.messages.Message.parse (   cls,
  raw 
)

Definition at line 92 of file messages.py.

def clearpath.horizon.messages.Message.request (   cls,
  name,
  args = {},
  timestamp = 0 
)

Definition at line 86 of file messages.py.

Definition at line 150 of file messages.py.


Member Data Documentation

Definition at line 76 of file messages.py.

Definition at line 77 of file messages.py.


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


clearpath_base
Author(s): Mike Purvis
autogenerated on Sun Oct 5 2014 22:52:08