OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Protected Attributes | Friends | List of all members
openjaus::model::Connection Class Reference

#include <Connection.h>

Public Member Functions

 Connection ()
 
virtual ~Connection ()
 
uint8_t getEventId () const
 Accessor to get the value of eventId. More...
 
bool setEventId (uint8_t eventId)
 Accessor to set value of eventId. More...
 
uint32_t getLocalId () const
 Accessor to get the value of localId. More...
 
bool setLocalId (uint32_t localId)
 Accessor to set value of localId. More...
 
uint8_t getRequestId () const
 Accessor to get the value of requestId. More...
 
bool setRequestId (uint8_t requestId)
 Accessor to set value of requestId. More...
 
double getRate_Hz () const
 Accessor to get the value of rate_Hz. More...
 
bool setRate_Hz (double rate_Hz)
 Accessor to set value of rate_Hz. More...
 
ConnectionType getType () const
 Accessor to get the value of type. More...
 
bool setType (ConnectionType type)
 Accessor to set value of type. More...
 
uint8_t getSequenceNumber () const
 Accessor to get the value of sequenceNumber. More...
 
bool setSequenceNumber (uint8_t sequenceNumber)
 Accessor to set value of sequenceNumber. More...
 
bool isActive () const
 Accessor to get the value of active. More...
 
bool setActive (bool active)
 Accessor to set value of active. More...
 
uint16_t getResponseId () const
 Accessor to get the value of responseId. More...
 
bool setResponseId (uint16_t responseId)
 Accessor to set value of responseId. More...
 
ConnectionRequestType getLastRequestType () const
 Accessor to get the value of lastRequestType. More...
 
bool setLastRequestType (ConnectionRequestType lastRequestType)
 Accessor to set value of lastRequestType. More...
 
uint16_t getRequestedRate () const
 Accessor to get the value of requestedRate. More...
 
bool setRequestedRate (uint16_t requestedRate)
 Accessor to set value of requestedRate. More...
 
uint64_t getHash () const
 Accessor to get the value of hash. More...
 
bool setHash (uint64_t hash)
 Accessor to set value of hash. More...
 
const system::TimegetTimeout () const
 Accessor to get the value of timeout. More...
 
bool setTimeout (const system::Time &timeout)
 Accessor to set value of timeout. More...
 
const transport::AddressgetAddress () const
 Accessor to get the value of address. More...
 
bool setAddress (const transport::Address &address)
 Accessor to set value of address. More...
 
MessagegetQuery () const
 Accessor to get the value of query. More...
 
bool setQuery (Message *query)
 Accessor to set value of query. More...
 
system::TimergetTimer () const
 Accessor to get the value of timer. More...
 
bool setTimer (system::Timer *timer)
 Accessor to set value of timer. More...
 
virtual std::string toString () const
 
bool operator== (const Connection &object) const
 

Protected Attributes

uint8_t eventId
 
uint32_t localId
 
uint8_t requestId
 
double rate_Hz
 
ConnectionType type
 
uint8_t sequenceNumber
 
bool active
 
uint16_t responseId
 
ConnectionRequestType lastRequestType
 
uint16_t requestedRate
 
uint64_t hash
 
system::Time timeout
 
transport::Address address
 
Messagequery
 
system::Timertimer
 

Friends

OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Connection &object)
 
OPENJAUS_EXPORT friend std::ostream & operator<< (std::ostream &output, const Connection *object)
 

Constructor & Destructor Documentation

§ Connection()

openjaus::model::Connection::Connection ( )

§ ~Connection()

openjaus::model::Connection::~Connection ( )
virtual

Member Function Documentation

§ getAddress()

const transport::Address & openjaus::model::Connection::getAddress ( ) const

§ getEventId()

uint8_t openjaus::model::Connection::getEventId ( ) const

§ getHash()

uint64_t openjaus::model::Connection::getHash ( ) const

§ getLastRequestType()

ConnectionRequestType openjaus::model::Connection::getLastRequestType ( ) const

§ getLocalId()

uint32_t openjaus::model::Connection::getLocalId ( ) const

§ getQuery()

Message * openjaus::model::Connection::getQuery ( ) const

§ getRate_Hz()

double openjaus::model::Connection::getRate_Hz ( ) const

§ getRequestedRate()

uint16_t openjaus::model::Connection::getRequestedRate ( ) const

§ getRequestId()

uint8_t openjaus::model::Connection::getRequestId ( ) const

§ getResponseId()

uint16_t openjaus::model::Connection::getResponseId ( ) const

§ getSequenceNumber()

uint8_t openjaus::model::Connection::getSequenceNumber ( ) const

§ getTimeout()

const system::Time & openjaus::model::Connection::getTimeout ( ) const

§ getTimer()

system::Timer * openjaus::model::Connection::getTimer ( ) const

§ getType()

ConnectionType openjaus::model::Connection::getType ( ) const

§ isActive()

bool openjaus::model::Connection::isActive ( ) const

§ operator==()

bool openjaus::model::Connection::operator== ( const Connection object) const

§ setActive()

bool openjaus::model::Connection::setActive ( bool  active)
Parameters
activeThe value of the new active.

§ setAddress()

bool openjaus::model::Connection::setAddress ( const transport::Address address)
Parameters
addressThe value of the new address.

§ setEventId()

bool openjaus::model::Connection::setEventId ( uint8_t  eventId)
Parameters
eventIdThe value of the new eventId.

§ setHash()

bool openjaus::model::Connection::setHash ( uint64_t  hash)
Parameters
hashThe value of the new hash.

§ setLastRequestType()

bool openjaus::model::Connection::setLastRequestType ( ConnectionRequestType  lastRequestType)
Parameters
lastRequestTypeThe value of the new lastRequestType.

§ setLocalId()

bool openjaus::model::Connection::setLocalId ( uint32_t  localId)
Parameters
localIdThe value of the new localId.

§ setQuery()

bool openjaus::model::Connection::setQuery ( Message query)
Parameters
queryThe value of the new query.

§ setRate_Hz()

bool openjaus::model::Connection::setRate_Hz ( double  rate_Hz)
Parameters
rate_HzThe value of the new rate_Hz.

§ setRequestedRate()

bool openjaus::model::Connection::setRequestedRate ( uint16_t  requestedRate)
Parameters
requestedRateThe value of the new requestedRate.

§ setRequestId()

bool openjaus::model::Connection::setRequestId ( uint8_t  requestId)
Parameters
requestIdThe value of the new requestId.

§ setResponseId()

bool openjaus::model::Connection::setResponseId ( uint16_t  responseId)
Parameters
responseIdThe value of the new responseId.

§ setSequenceNumber()

bool openjaus::model::Connection::setSequenceNumber ( uint8_t  sequenceNumber)
Parameters
sequenceNumberThe value of the new sequenceNumber.

§ setTimeout()

bool openjaus::model::Connection::setTimeout ( const system::Time timeout)
Parameters
timeoutThe value of the new timeout.

§ setTimer()

bool openjaus::model::Connection::setTimer ( system::Timer timer)
Parameters
timerThe value of the new timer.

§ setType()

bool openjaus::model::Connection::setType ( ConnectionType  type)
Parameters
typeThe value of the new type.

§ toString()

std::string openjaus::model::Connection::toString ( ) const
virtual

Friends And Related Function Documentation

§ operator<< [1/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Connection object 
)
friend

§ operator<< [2/2]

OPENJAUS_EXPORT friend std::ostream& operator<< ( std::ostream &  output,
const Connection object 
)
friend

Member Data Documentation

§ active

bool openjaus::model::Connection::active
protected

§ address

transport::Address openjaus::model::Connection::address
protected

§ eventId

uint8_t openjaus::model::Connection::eventId
protected

§ hash

uint64_t openjaus::model::Connection::hash
protected

§ lastRequestType

ConnectionRequestType openjaus::model::Connection::lastRequestType
protected

§ localId

uint32_t openjaus::model::Connection::localId
protected

§ query

Message* openjaus::model::Connection::query
protected

§ rate_Hz

double openjaus::model::Connection::rate_Hz
protected

§ requestedRate

uint16_t openjaus::model::Connection::requestedRate
protected

§ requestId

uint8_t openjaus::model::Connection::requestId
protected

§ responseId

uint16_t openjaus::model::Connection::responseId
protected

§ sequenceNumber

uint8_t openjaus::model::Connection::sequenceNumber
protected

§ timeout

system::Time openjaus::model::Connection::timeout
protected

§ timer

system::Timer* openjaus::model::Connection::timer
protected

§ type

ConnectionType openjaus::model::Connection::type
protected

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