Public Types | Public Member Functions | Protected Attributes

JAUS::Message Class Reference

Main class for creating implementations of specific JAUS messages. Each Message based class is capable of reading/writing a specific message. More...

#include <message.h>

Inheritance diagram for JAUS::Message:
JAUS::CancelEvent JAUS::ClearEmergency JAUS::ConfirmControl JAUS::ConfirmElementRequest JAUS::ConfirmEventRequest JAUS::CreateEvent JAUS::DeleteElement JAUS::Event JAUS::ExecuteList JAUS::QueryAccelerationLimit JAUS::QueryAccelerationState JAUS::QueryActiveElement JAUS::QueryAudio JAUS::QueryAuthority JAUS::QueryCameraCount JAUS::QueryConfiguration JAUS::QueryControl JAUS::QueryElement JAUS::QueryElementCount JAUS::QueryElementList JAUS::QueryEvents JAUS::QueryGeomagneticProperty JAUS::QueryGlobalPathSegment JAUS::QueryGlobalPose JAUS::QueryGlobalVector JAUS::QueryGlobalWaypoint JAUS::QueryHeartbeatPulse JAUS::QueryIdentification JAUS::QueryImage JAUS::QueryLocalPathSegment JAUS::QueryLocalPose JAUS::QueryLocalRangeScan JAUS::QueryLocalVector JAUS::QueryLocalWaypoint JAUS::QueryMicrocontrollerState JAUS::QueryRangeSensorConfiguration JAUS::QueryServices JAUS::QueryStatus JAUS::QuerySubsystemList JAUS::QueryTime JAUS::QueryTimeout JAUS::QueryTravelSpeed JAUS::QueryVelocityCommand JAUS::QueryVelocityState JAUS::QueryWrenchEffort JAUS::RegisterServices JAUS::RejectControl JAUS::RejectElementRequest JAUS::RejectEventRequest JAUS::ReleaseControl JAUS::ReportAccelerationLimit JAUS::ReportAccelerationState JAUS::ReportActiveElement JAUS::ReportAudio JAUS::ReportAuthority JAUS::ReportCameraCount JAUS::ReportConfiguration JAUS::ReportControl JAUS::ReportElement JAUS::ReportElementCount JAUS::ReportElementList JAUS::ReportEvents JAUS::ReportGeomagneticProperty JAUS::ReportGlobalPathSegment JAUS::ReportGlobalPose JAUS::ReportGlobalVector JAUS::ReportGlobalWaypoint JAUS::ReportHeartbeatPulse JAUS::ReportIdentification JAUS::ReportImage JAUS::ReportLocalPathSegment JAUS::ReportLocalPose JAUS::ReportLocalRangeScan JAUS::ReportLocalVector JAUS::ReportLocalWaypoint JAUS::ReportMicrocontrollerState JAUS::ReportRangeSensorConfiguration JAUS::ReportServices JAUS::ReportStatus JAUS::ReportSubsystemList JAUS::ReportTime JAUS::ReportTimeout JAUS::ReportTravelSpeed JAUS::ReportVelocityCommand JAUS::ReportVelocityState JAUS::ReportWrenchEffort JAUS::RequestControl JAUS::Reset JAUS::Resume JAUS::SetAccelerationLimit JAUS::SetAuthority JAUS::SetElement JAUS::SetEmergency JAUS::SetGeomagneticProperty JAUS::SetGlobalPathSegment JAUS::SetGlobalPose JAUS::SetGlobalVector JAUS::SetGlobalWaypoint JAUS::SetLocalPathSegment JAUS::SetLocalPose JAUS::SetLocalVector JAUS::SetLocalWaypoint JAUS::SetMicrocontrollerState JAUS::SetTime JAUS::SetTravelSpeed JAUS::SetVelocityCommand JAUS::SetWrenchEffort JAUS::Shutdown JAUS::Standby JAUS::UpdateEvent

List of all members.

Public Types

typedef Header::Priority Priority
typedef std::vector< Message * > List
typedef std::map< UShort,
Message * > 
Map

Public Member Functions

 Message (const UShort messageCode, const Address &dest=Address(), const Address &src=Address())
 Constructor, initializes default values.
virtual ~Message ()
 Destructor.
virtual bool IsCommand () const =0
virtual int WriteMessageBody (Packet &packet) const =0
virtual int ReadMessageBody (const Packet &packet)=0
virtual MessageClone () const =0
virtual UInt GetPresenceVector () const =0
virtual UInt GetPresenceVectorSize () const =0
virtual UInt GetPresenceVectorMask () const =0
virtual UShort GetMessageCodeOfResponse () const =0
virtual std::string GetMessageName () const =0
virtual void ClearMessageBody ()=0
virtual bool IsLargeDataSet (const unsigned int maxPayloadSize=1437) const =0
int SetPriority (const Byte p=Header::Priority::Standard)
 Sets message priority. Priority affects how messages are routed by the transport layer.
int SetSourceID (const Address &src)
 Sets the source ID of the message.
int SetDestinationID (const Address &dest)
 Sets the destination ID of the message.
int SwapSourceAndDestination ()
 Swaps source and destination ID's of message. Will fail if original destination ID was broadcast.
void CopyHeaderData (const Message *msg)
 Copies message header data (source/dest/priority).
void ClearMessageHeader ()
 Clears message header data.
void ClearMessage ()
 Clears all message content data (header and payload).
UShort GetMessageCode () const
Byte GetPriority () const
Address GetSourceID () const
Address GetDestinationID () const
bool IsFieldPresent (const UInt presenceVector) const
bool AreFieldsPresent (const UInt presenceVector) const
virtual void Print () const
 Prints message info to console window.
virtual void PrintMessageBody () const
virtual int RunTestCase () const
virtual bool IsResponseToMessage (const Message *requestingMessage) const
 Method used to verify if this Message is a response to a requesting Query or Command message.
virtual int Write (Packet &packet, Header &header, const Packet *transportHeader=NULL, const bool clearPacket=true, const UShort startingSequenceNumber=0, const Byte broadcastFlag=0) const
 Writes message contents to packet for the transport layer to send. Begins writing from current write position in packet.
virtual int WriteLargeDataSet (Packet::List &stream, Header::List &streamHeaders, const UShort maxPayloadSize=1437, const Packet *transportHeader=NULL, const UShort startingSequenceNumber=0, const Byte broadcastFlag=0) const
 If the IsLargeDataSet method returns true, then this method is used to convert message payload data into a multi-packet stream according to rules defined by the JAUS standards documents.
virtual int Read (const Packet &packet, const Packet *transportHeader=NULL)
 Reads transport header and payload data from packet, saving to data members of class.
virtual int ReadLargeDataSet (const Packet::List &stream, const Packet *transportHeader=NULL)
 If the Transport services of a component receive a multi-packet stream for a message, this method is used to read the contents.
virtual int ReadLargeDataSet (const std::map< UShort, Packet > &stream, const Packet *transportHeader=NULL)
 If the Transport services of a component receive a multi-packet stream for a message, this method is used to read the contents.

Protected Attributes

Byte mPriority
 Message priority.
UShort mMessageCode
 Message payload type (message code).
Address mSourceID
 Source ID of the message.
Address mDestinationID
 Destination ID of the message.

Detailed Description

Main class for creating implementations of specific JAUS messages. Each Message based class is capable of reading/writing a specific message.

All message classes inherit from this interface. It requies the child class to implement methods for serializing/writing and de-serializing/reading message data from a Packet structure. It also has methods for making message duplicates. Each message can read/write a whole message or just the message body.

Definition at line 67 of file message.h.


Member Typedef Documentation

typedef std::vector<Message*> JAUS::Message::List

Reimplemented in JAUS::QueryServices, JAUS::DeleteElement, and JAUS::ReportElementList.

Definition at line 71 of file message.h.

typedef std::map<UShort, Message*> JAUS::Message::Map

Definition at line 72 of file message.h.

Definition at line 70 of file message.h.


Constructor & Destructor Documentation

Message::Message ( const UShort  messageCode,
const Address dest = Address(),
const Address src = Address() 
)

Constructor, initializes default values.

Parameters:
[in]messageCodeThe type of message being defined.
[in]srcSource ID of message sender.
[in]destDestination ID of message.

Definition at line 62 of file message.cpp.

Message::~Message (  ) [virtual]

Destructor.

Definition at line 77 of file message.cpp.


Member Function Documentation

bool JAUS::Message::AreFieldsPresent ( const UInt  presenceVector ) const [inline]

Definition at line 124 of file message.h.

void Message::ClearMessage (  )

Clears all message content data (header and payload).

Definition at line 200 of file message.cpp.

virtual void JAUS::Message::ClearMessageBody (  ) [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

void Message::ClearMessageHeader (  )

Clears message header data.

Definition at line 187 of file message.cpp.

virtual Message* JAUS::Message::Clone (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

void Message::CopyHeaderData ( const Message msg )

Copies message header data (source/dest/priority).

Parameters:
[in]msgMessage to copy data from.

Definition at line 171 of file message.cpp.

Address JAUS::Message::GetDestinationID (  ) const [inline]

Definition at line 120 of file message.h.

UShort JAUS::Message::GetMessageCode (  ) const [inline]

Definition at line 114 of file message.h.

virtual UShort JAUS::Message::GetMessageCodeOfResponse (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

virtual std::string JAUS::Message::GetMessageName (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

virtual UInt JAUS::Message::GetPresenceVector (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

virtual UInt JAUS::Message::GetPresenceVectorMask (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

virtual UInt JAUS::Message::GetPresenceVectorSize (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

Byte JAUS::Message::GetPriority (  ) const [inline]

Definition at line 116 of file message.h.

Address JAUS::Message::GetSourceID (  ) const [inline]

Definition at line 118 of file message.h.

virtual bool JAUS::Message::IsCommand (  ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

bool JAUS::Message::IsFieldPresent ( const UInt  presenceVector ) const [inline]

Definition at line 122 of file message.h.

virtual bool JAUS::Message::IsLargeDataSet ( const unsigned int  maxPayloadSize = 1437 ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

bool Message::IsResponseToMessage ( const Message requestingMessage ) const [virtual]

Method used to verify if this Message is a response to a requesting Query or Command message.

This method verifies that the destination ID of the requestingMessage matches the source ID of this message and that the result of GetMessageCodeOfResponse for the requestingMessage matchings the message code of this method. Overload this method to check other parameters.

Parameters:
[in]requestingMessageOriginal query or command message that you want to see if this message is a response to.
Returns:
True if this message is a response, otherwise false.

Reimplemented in JAUS::CancelEvent, JAUS::CreateEvent, and JAUS::UpdateEvent.

Definition at line 239 of file message.cpp.

void Message::Print (  ) const [virtual]

Prints message info to console window.

Definition at line 214 of file message.cpp.

virtual void JAUS::Message::PrintMessageBody (  ) const [inline, virtual]
int Message::Read ( const Packet packet,
const Packet transportHeader = NULL 
) [virtual]

Reads transport header and payload data from packet, saving to data members of class.

Parameters:
[in]packetSerialized JAUS packet data to read.
[in]transportHeaderTransport header data in front of general transport header.
Returns:
Number of bytes read on success, FAILURE on error.

Definition at line 419 of file message.cpp.

int Message::ReadLargeDataSet ( const Packet::List &  stream,
const Packet transportHeader = NULL 
) [virtual]

If the Transport services of a component receive a multi-packet stream for a message, this method is used to read the contents.

This method should only be overloaded if you wish to optimize the de-serialization of mutli-packet streams for your message (e.g. video data). By default, this method converts the stream to a larger continuous packet to be used by the ReadMessageBody method.

Parameters:
[in]streamMulti-packet stream containing serialized message following rules of large data sets.
[in]transportHeaderAdditional transport header data that precedes the general transport header of each packet.
Returns:
FAILURE on error, otherwise number of packets read.

Definition at line 479 of file message.cpp.

int Message::ReadLargeDataSet ( const std::map< UShort, Packet > &  stream,
const Packet transportHeader = NULL 
) [virtual]

If the Transport services of a component receive a multi-packet stream for a message, this method is used to read the contents.

This method should only be overloaded if you wish to optimize the de-serialization of mutli-packet streams for your message (e.g. video data). By default, this method converts the stream to a larger continuous packet to be used by the ReadMessageBody method.

Parameters:
[in]streamMulti-packet stream containing serialized message following rules of large data sets.
[in]transportHeaderAdditional transport header data that precedes the general transport header of each packet.
Returns:
FAILURE on error, otherwise number of packets read.

Definition at line 516 of file message.cpp.

virtual int JAUS::Message::ReadMessageBody ( const Packet packet ) [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

virtual int JAUS::Message::RunTestCase (  ) const [inline, virtual]

Reimplemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.

Definition at line 130 of file message.h.

int Message::SetDestinationID ( const Address dest )

Sets the destination ID of the message.

Parameters:
[in]destDestination ID. Must be a valid ID.
Returns:
OK on success, FAILURE on error.

Definition at line 132 of file message.cpp.

int Message::SetPriority ( const Byte  priority = Header::Priority::Standard )

Sets message priority. Priority affects how messages are routed by the transport layer.

Parameters:
[in]priorityThe priority value to set (see Header::Priority).
Returns:
OK on success, FAILURE on error.

Definition at line 92 of file message.cpp.

int Message::SetSourceID ( const Address src )

Sets the source ID of the message.

Parameters:
[in]srcSource ID. Must be valid and non-broadcast.
Returns:
OK on success, FAILURE on error.

Definition at line 112 of file message.cpp.

int Message::SwapSourceAndDestination (  )

Swaps source and destination ID's of message. Will fail if original destination ID was broadcast.

Returns:
OK on success, FAILURE on error.

Definition at line 151 of file message.cpp.

int Message::Write ( Packet packet,
Header header,
const Packet transportHeader = NULL,
const bool  clearPacket = true,
const UShort  startingSequenceNumber = 0,
const Byte  broadcastFlag = 0 
) const [virtual]

Writes message contents to packet for the transport layer to send. Begins writing from current write position in packet.

Message contents are written to the packet following the JAUS standard.

Parameters:
[out]packetPacket to write header and payload data to.
[out]headerPacket transport header data.
[in]transportHeaderOptional parameter for transport header data to write before the general transport header.
[in]clearPacketIf true, packet contents are cleared before writing takes place.
[in]startingSequenceNumberSequence number to use for packets.
[in]broadcastFlagValues to use to signify if message should be sent using any broadcast options (e.g. multicast). 0 = no options, 1 = local broadcast, 2 = global broadcast.
Returns:
FAILURE on error, otherwise number of bytes written.

Definition at line 272 of file message.cpp.

int Message::WriteLargeDataSet ( Packet::List &  stream,
Header::List streamHeaders,
const UShort  maxPayloadSize = 1437,
const Packet transportHeader = NULL,
const UShort  startingSequenceNumber = 0,
const Byte  broadcastFlags = 0 
) const [virtual]

If the IsLargeDataSet method returns true, then this method is used to convert message payload data into a multi-packet stream according to rules defined by the JAUS standards documents.

This method should only be overloaded if your message contains data larger than Header::MaxSize - Header::MinSize (e.g. image data) and you wish to optimize how data is written. By default, this method calls the WriteMessageBody method to generate a single large byte array, which is then broken up into a Packet::List for the transport layer.

Parameters:
[out]streamMulti-packet stream containing serialized message following rules of large data sets.
[out]streamHeadersHeaders for packet in the stream.
[in]maxPayloadSizeThis is the maximum packet size including payload, does not include transport, General Transport Header, or Message Code (USHORT).
[in]transportHeaderAdditional transport header data to precede the general transport header of each packet.
[in]startingSequenceNumberSequence number to use for packets.
[in]broadcastFlagsValues to use to signify if message should be sent using any broadcast options (e.g. multicast). 0 = no options, 1 = local broadcast, 2 = global broadcast.
Returns:
FAILURE on error, otherwise number of packets written.

Definition at line 374 of file message.cpp.

virtual int JAUS::Message::WriteMessageBody ( Packet packet ) const [pure virtual]

Implemented in JAUS::ConfirmControl, JAUS::QueryAuthority, JAUS::QueryControl, JAUS::QueryTimeout, JAUS::RejectControl, JAUS::ReleaseControl, JAUS::ReportAuthority, JAUS::ReportControl, JAUS::ReportTimeout, JAUS::RequestControl, JAUS::SetAuthority, JAUS::QueryConfiguration, JAUS::QueryIdentification, JAUS::QueryServices, JAUS::QuerySubsystemList, JAUS::RegisterServices, JAUS::ReportConfiguration, JAUS::ReportIdentification, JAUS::ReportServices, JAUS::ReportSubsystemList, JAUS::CancelEvent, JAUS::ConfirmEventRequest, JAUS::CreateEvent, JAUS::Event, JAUS::QueryEvents, JAUS::RejectEventRequest, JAUS::ReportEvents, JAUS::UpdateEvent, JAUS::QueryHeartbeatPulse, JAUS::ReportHeartbeatPulse, JAUS::ClearEmergency, JAUS::QueryStatus, JAUS::ReportStatus, JAUS::Reset, JAUS::Resume, JAUS::SetEmergency, JAUS::Shutdown, JAUS::Standby, JAUS::QueryTime, JAUS::ReportTime, JAUS::SetTime, JAUS::QueryAudio, JAUS::ReportAudio, JAUS::QueryMicrocontrollerState, JAUS::ReportMicrocontrollerState, JAUS::SetMicrocontrollerState, JAUS::QueryLocalRangeScan, JAUS::QueryRangeSensorConfiguration, JAUS::ReportLocalRangeScan, JAUS::ReportRangeSensorConfiguration, JAUS::QueryCameraCount, JAUS::QueryImage, JAUS::ReportCameraCount, JAUS::ReportImage, JAUS::QueryAccelerationLimit, JAUS::QueryGlobalPathSegment, JAUS::QueryGlobalVector, JAUS::QueryGlobalWaypoint, JAUS::QueryLocalPathSegment, JAUS::QueryLocalVector, JAUS::QueryLocalWaypoint, JAUS::QueryTravelSpeed, JAUS::QueryVelocityCommand, JAUS::QueryWrenchEffort, JAUS::ReportAccelerationLimit, JAUS::ReportGlobalPathSegment, JAUS::ReportGlobalVector, JAUS::ReportGlobalWaypoint, JAUS::ReportLocalPathSegment, JAUS::ReportLocalVector, JAUS::ReportLocalWaypoint, JAUS::ReportTravelSpeed, JAUS::ReportVelocityCommand, JAUS::ReportWrenchEffort, JAUS::SetAccelerationLimit, JAUS::SetGlobalPathSegment, JAUS::SetGlobalVector, JAUS::SetGlobalWaypoint, JAUS::SetLocalPathSegment, JAUS::SetLocalVector, JAUS::SetLocalWaypoint, JAUS::SetTravelSpeed, JAUS::SetVelocityCommand, JAUS::SetWrenchEffort, JAUS::ConfirmElementRequest, JAUS::DeleteElement, JAUS::ExecuteList, JAUS::QueryActiveElement, JAUS::QueryElement, JAUS::QueryElementCount, JAUS::QueryElementList, JAUS::RejectElementRequest, JAUS::ReportActiveElement, JAUS::ReportElement, JAUS::ReportElementCount, JAUS::ReportElementList, JAUS::SetElement, JAUS::QueryAccelerationState, JAUS::QueryGeomagneticProperty, JAUS::QueryGlobalPose, JAUS::QueryLocalPose, JAUS::QueryVelocityState, JAUS::ReportAccelerationState, JAUS::ReportGeomagneticProperty, JAUS::ReportGlobalPose, JAUS::ReportLocalPose, JAUS::ReportVelocityState, JAUS::SetGeomagneticProperty, JAUS::SetGlobalPose, and JAUS::SetLocalPose.


Member Data Documentation

Destination ID of the message.

Definition at line 159 of file message.h.

Message payload type (message code).

Definition at line 157 of file message.h.

Message priority.

Definition at line 156 of file message.h.

Source ID of the message.

Definition at line 158 of file message.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines