Classes | Public Member Functions | Protected Attributes

JAUS::ReportControl Class Reference

This message is used to report the current state of this service. If the service is in the Controlled state, this message reports the ID of the controlling component. The ID fields shall be set to zero (0) if this service is in the NotControlled state. More...

#include <reportcontrol.h>

Inheritance diagram for JAUS::ReportControl:
JAUS::Message

List of all members.

Classes

class  Limits
 Contains limits of specific fields in message. More...

Public Member Functions

 ReportControl (const Address &dest=Address(), const Address &src=Address())
 Constructor, initializes default values.
 ReportControl (const ReportControl &message)
 Copy constructor.
 ~ReportControl ()
 Destructor.
bool SetControllingComponent (const Address &controller)
 Sets the Address of controlling component.
Address GetControllingComponent () const
void SetAuthorityCode (const Byte code)
Byte GetAuthorityCode () const
virtual bool IsCommand () const
virtual int WriteMessageBody (Packet &packet) const
 Writes message payload to the packet.
virtual int ReadMessageBody (const Packet &packet)
 Reads message payload from the packet.
virtual MessageClone () const
virtual UInt GetPresenceVector () const
virtual UInt GetPresenceVectorSize () const
virtual UInt GetPresenceVectorMask () const
virtual UShort GetMessageCodeOfResponse () const
virtual std::string GetMessageName () const
virtual void ClearMessageBody ()
 Clears message payload data.
virtual bool IsLargeDataSet (const unsigned int maxPayloadSize=1437) const
virtual int RunTestCase () const
 Runs a test case to validate the message class.
ReportControloperator= (const ReportControl &message)
 Sets equal to.

Protected Attributes

Address mControllingComponent
 Address value of the current controlling component.
Byte mAuthorityCode
 Authority value of sending component [0,255].

Detailed Description

This message is used to report the current state of this service. If the service is in the Controlled state, this message reports the ID of the controlling component. The ID fields shall be set to zero (0) if this service is in the NotControlled state.

Definition at line 57 of file reportcontrol.h.


Constructor & Destructor Documentation

ReportControl::ReportControl ( const Address dest = Address(),
const Address src = Address() 
)

Constructor, initializes default values.

Parameters:
[in]srcSource ID of message sender.
[in]destDestination ID of message.

Definition at line 56 of file reportcontrol.cpp.

ReportControl::ReportControl ( const ReportControl message )

Copy constructor.

Definition at line 68 of file reportcontrol.cpp.

ReportControl::~ReportControl (  )

Destructor.

Definition at line 79 of file reportcontrol.cpp.


Member Function Documentation

void ReportControl::ClearMessageBody (  ) [virtual]

Clears message payload data.

Implements JAUS::Message.

Definition at line 153 of file reportcontrol.cpp.

virtual Message* JAUS::ReportControl::Clone (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 82 of file reportcontrol.h.

Byte JAUS::ReportControl::GetAuthorityCode (  ) const [inline]

Definition at line 78 of file reportcontrol.h.

Address JAUS::ReportControl::GetControllingComponent (  ) const [inline]

Definition at line 76 of file reportcontrol.h.

virtual UShort JAUS::ReportControl::GetMessageCodeOfResponse (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 86 of file reportcontrol.h.

virtual std::string JAUS::ReportControl::GetMessageName (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 87 of file reportcontrol.h.

virtual UInt JAUS::ReportControl::GetPresenceVector (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 83 of file reportcontrol.h.

virtual UInt JAUS::ReportControl::GetPresenceVectorMask (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 85 of file reportcontrol.h.

virtual UInt JAUS::ReportControl::GetPresenceVectorSize (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 84 of file reportcontrol.h.

virtual bool JAUS::ReportControl::IsCommand (  ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 79 of file reportcontrol.h.

virtual bool JAUS::ReportControl::IsLargeDataSet ( const unsigned int  maxPayloadSize = 1437 ) const [inline, virtual]

Implements JAUS::Message.

Definition at line 89 of file reportcontrol.h.

ReportControl & ReportControl::operator= ( const ReportControl message )

Sets equal to.

Definition at line 193 of file reportcontrol.cpp.

int ReportControl::ReadMessageBody ( const Packet packet ) [virtual]

Reads message payload from the packet.

Message contents are read from the packet following the JAUS standard.

Parameters:
[in]packetPacket containing message payload data to read.
Returns:
-1 on error, otherwise number of bytes written.

Implements JAUS::Message.

Definition at line 134 of file reportcontrol.cpp.

int ReportControl::RunTestCase (  ) const [virtual]

Runs a test case to validate the message class.

Returns:
1 on success, otherwise 0.

Reimplemented from JAUS::Message.

Definition at line 167 of file reportcontrol.cpp.

void JAUS::ReportControl::SetAuthorityCode ( const Byte  code ) [inline]

Definition at line 77 of file reportcontrol.h.

bool ReportControl::SetControllingComponent ( const Address controller )

Sets the Address of controlling component.

Returns:
-1 on error, otherwise number of bytes written.

Definition at line 91 of file reportcontrol.cpp.

int ReportControl::WriteMessageBody ( Packet packet ) const [virtual]

Writes message payload to the packet.

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

Parameters:
[out]packetPacket to write payload to.
Returns:
-1 on error, otherwise number of bytes written.

Implements JAUS::Message.

Definition at line 109 of file reportcontrol.cpp.


Member Data Documentation

Authority value of sending component [0,255].

Definition at line 94 of file reportcontrol.h.

Address value of the current controlling component.

Definition at line 93 of file reportcontrol.h.


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