OpenJAUS Software Development Kit  4.3.1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
openjaus::core::services::Configuration Class Reference

Provides static methods for the Configuration service. More...

#include <Configuration.h>

Inherits openjaus::core::ConfigurationInterface, and openjaus::core::services::Events.

Inherited by openjaus::core::EventsBase [virtual].

Public Member Functions

 Configuration ()
 
virtual ~Configuration ()
 
virtual bool sendJausAddress (QueryJausAddress *queryJausAddress)
 SendJausAddress action with input QueryJausAddress. More...
 
virtual bool setThisJausAddress (ReportJausAddress *reportJausAddress)
 SetThisJausAddress action with input ReportJausAddress. More...
 
void setSystemTree (model::SystemTree *systemTree)
 
void configure (ConfigurationSettingsInterface *settings)
 
void startService ()
 
void stopService ()
 
- Public Member Functions inherited from openjaus::core::ConfigurationInterface
virtual ~ConfigurationInterface ()
 
- Public Member Functions inherited from openjaus::core::EventsInterface
virtual ~EventsInterface ()
 
- Public Member Functions inherited from openjaus::core::TransportInterface
virtual ~TransportInterface ()
 
- Public Member Functions inherited from openjaus::core::services::Events
 Events ()
 
virtual ~Events ()
 
virtual bool createEvent (CreateEvent *createEvent)
 CreateEvent action with input CreateEvent. More...
 
virtual bool processEvent (ProcessEventRequest *processEventRequest)
 ProcessEvent action with input ProcessEventRequest. More...
 
virtual bool resetEventTimer (CreateEvent *createEvent)
 ResetEventTimer action with input CreateEvent. More...
 
virtual bool resetEventTimer (UpdateEvent *updateEvent)
 ResetEventTimer action with input UpdateEvent. More...
 
virtual bool updateEvent (CreateEvent *createEvent)
 UpdateEvent action with input CreateEvent. More...
 
virtual bool updateEvent (UpdateEvent *updateEvent)
 UpdateEvent action with input UpdateEvent. More...
 
virtual bool cancelEvent (CancelEvent *cancelEvent)
 CancelEvent action with input CancelEvent. More...
 
virtual bool stopEventTimer (CancelEvent *cancelEvent)
 StopEventTimer action with input CancelEvent. More...
 
virtual RejectEventRequest getRejectEventRequest (CreateEvent *createEvent)
 Send action for RejectEventRequest with input message CreateEvent. More...
 
virtual RejectEventRequest getRejectEventRequest (UpdateEvent *updateEvent)
 Send action for RejectEventRequest with input message UpdateEvent. More...
 
virtual RejectEventRequest getRejectEventRequest (CancelEvent *cancelEvent)
 Send action for RejectEventRequest with input message CancelEvent. More...
 
virtual ConfirmEventRequest getConfirmEventRequest (CreateEvent *createEvent)
 Send action for ConfirmEventRequest with input message CreateEvent. More...
 
virtual ConfirmEventRequest getConfirmEventRequest (UpdateEvent *updateEvent)
 Send action for ConfirmEventRequest with input message UpdateEvent. More...
 
virtual ConfirmEventRequest getConfirmEventRequest (CancelEvent *cancelEvent)
 Send action for ConfirmEventRequest with input message CancelEvent. More...
 
virtual ReportEvents getReportEvents (QueryEvents *queryEvents)
 Send action for ReportEvents with input message QueryEvents. More...
 
virtual ReportEventTimeout getReportEventTimeout (QueryEventTimeout *queryEventTimeout)
 Send action for ReportEventTimeout with input message QueryEventTimeout. More...
 
virtual bool confirmEvent (ConfirmEventRequest *confirmEventRequest)
 ConfirmEvent action with input ConfirmEventRequest. More...
 
virtual bool rejectEvent (RejectEventRequest *rejectEventRequest)
 RejectEvent action with input RejectEventRequest. More...
 
virtual bool handleIncomingEvent (Event *event)
 HandleIncomingEvent action with input Event. More...
 
virtual bool handleReportEvents (ReportEvents *reportEvents)
 HandleReportEvents action with input ReportEvents. More...
 
virtual bool isSupported (CreateEvent *createEvent)
 isSupported condition. More...
 
virtual bool isSupported (UpdateEvent *updateEvent)
 isSupported condition. More...
 
virtual bool eventExists (CreateEvent *createEvent)
 eventExists condition. More...
 
virtual bool eventExists (UpdateEvent *updateEvent)
 eventExists condition. More...
 
virtual bool eventExists (CancelEvent *cancelEvent)
 eventExists condition. More...
 
bool createOutgoingPeriodicEvent (uint8_t eventId, double rateHz, model::Message *query)
 
bool createOutgoingOnChangeEvent (uint8_t eventId, model::Message *query)
 
OPENJAUS_DEPRECATED bool publish (model::Message *message)
 
OPENJAUS_DEPRECATED bool unpublish (model::Message *message)
 
OPENJAUS_DEPRECATED bool publish (uint16 messageId)
 
bool publish (uint16 messageId, double maximumRate_Hz, model::ConnectionType type)
 
bool unpublish (uint16 messageId)
 
bool notifyChanged (uint16 messageId)
 
uint32_t subscribePeriodic (transport::Address &address, model::Message *query, double rate_Hz)
 
uint32_t subscribePeriodic (transport::Address &address, model::Message *query, double rate_Hz, void(*subscribeCallback)(const model::EventRequestResponseArgs &args))
 
uint32_t subscribePeriodic (transport::Address &address, model::Message *query, double rate_Hz, void(*subscribeCallback)(void *object, const model::EventRequestResponseArgs &args), void *object)
 
uint32_t subscribeOnChange (transport::Address &address, model::Message *query)
 
uint32_t subscribeOnChange (transport::Address &address, model::Message *query, void(*subscribeCallback)(const model::EventRequestResponseArgs &args))
 
uint32_t subscribeOnChange (transport::Address &address, model::Message *query, void(*subscribeCallback)(void *object, const model::EventRequestResponseArgs &args), void *object)
 
bool unsubscribe (uint32_t subscriptionId)
 
bool unsubscribe (uint32_t subscriptionId, void(*callback)(const model::EventRequestResponseArgs &args))
 
bool unsubscribe (uint32_t subscriptionId, void(*callback)(void *object, const model::EventRequestResponseArgs &args), void *object)
 
bool isActive (uint32 subscriptionId)
 
uint8 getEventId (uint32 subscriptionId)
 
double getConfirmedRate_Hz (uint32 subscriptionId)
 
bool updatePeriodic (uint32 subscriptionId, double rate_Hz)
 
- Public Member Functions inherited from openjaus::core::services::Transport
 Transport ()
 
virtual ~Transport ()
 
virtual bool enqueue (model::Trigger *trigger)
 Convert the destination address into an unsigned integer such that the ComponentID maps to the least significant byte, NodeID to the next least significant byte and SubsystemID maps onto the remaining two bytes of the integer. More...
 
virtual bool broadcastLocalEnqueue (model::Trigger *trigger)
 Package the message as specified by the transport layer specification and send it to all endpoints in the local subsystem. More...
 
virtual bool broadcastGlobalEnqueue (model::Trigger *trigger)
 Package the message as specified by the transport layer specification and send it to all endpoints on all subsystems. More...
 
virtual bool sendMessage (model::Trigger *trigger)
 SendMessage action with input SendMessage. More...
 
virtual bool broadcastToNode (model::Trigger *trigger)
 Broadcasts message to all components within the local node Broadcasts message to all components within the local node. More...
 
virtual bool broadcastToSubsystem (model::Trigger *trigger)
 Broadcasts a given message to all nodes in the local subsystem (equivalent to broadcast local enqueue) Broadcasts a given message to all nodes in the local subsystem (equivalent to broadcast local enqueue) More...
 
virtual bool broadcastToSystem (model::Trigger *trigger)
 Broadcasts the message to all subsystems on the JAUS network (equivalent to broadcast global enqueue) Broadcasts the message to all subsystems on the JAUS network (equivalent to broadcast global enqueue) More...
 
virtual bool checkTransportPolicy (model::Trigger *trigger)
 CheckTransportPolicy action with input CheckTransportPolicy. More...
 
virtual ReportTransportPolicy getReportTransportPolicy (QueryTransportPolicy *queryTransportPolicy)
 Send action for ReportTransportPolicy with input message QueryTransportPolicy. More...
 
virtual bool storeTransportPolicy (ReportTransportPolicy *reportTransportPolicy)
 StoreTransportPolicy action with input ReportTransportPolicy. More...
 
model::StategetCurrentState ()
 
void addAckNakCallback (void(*callback)(const transport::AckNakEventArgs &args))
 Adds a static callback that will execute when an ACK/NAK events occurs on the JUDP Interface. More...
 
void addAckNakCallback (void(*callback)(void *object, const transport::AckNakEventArgs &args), void *object)
 Adds a class callback that will execute when an ACK/NAK events occurs on the JUDP Interface. More...
 
template<class MessageType , class CallbackClass >
void addMessageCallback (bool(CallbackClass::*callback)(MessageType &messageRef), CallbackClass *object)
 
template<class CallbackClass >
void addMessageCallback (bool(CallbackClass::*callback)(model::Trigger *trigger), CallbackClass *object)
 
template<class MessageType >
void addMessageCallback (bool(*callback)(MessageType &messageRef))
 

Static Public Member Functions

static const char * uri ()
 The URI for the Service. More...
 
static model::Servicecreate ()
 Builds a default instance of the Configuration Service and populates the URI and Version numbers. More...
 
- Static Public Member Functions inherited from openjaus::core::ConfigurationInterface
static OPENJAUS_DEPRECATED model::Service ConfigurationService ()
 Builds a default instance of the Configuration Service and populates the URI and Version numbers. More...
 
static OPENJAUS_DEPRECATED std::string ConfigurationUri ()
 Static accessor for Service URI. More...
 
- Static Public Member Functions inherited from openjaus::core::EventsInterface
static OPENJAUS_DEPRECATED model::Service EventsService ()
 Builds a default instance of the Events Service and populates the URI and Version numbers. More...
 
static OPENJAUS_DEPRECATED std::string EventsUri ()
 Static accessor for Service URI. More...
 
- Static Public Member Functions inherited from openjaus::core::TransportInterface
static OPENJAUS_DEPRECATED model::Service TransportService ()
 Builds a default instance of the Transport Service and populates the URI and Version numbers. More...
 
static OPENJAUS_DEPRECATED std::string TransportUri ()
 Static accessor for Service URI. More...
 
- Static Public Member Functions inherited from openjaus::core::services::Events
static const char * uri ()
 The URI for the Service. More...
 
static model::Servicecreate ()
 Builds a default instance of the Events Service and populates the URI and Version numbers. More...
 
- Static Public Member Functions inherited from openjaus::core::services::Transport
static const char * uri ()
 The URI for the Service. More...
 
static model::Servicecreate ()
 Builds a default instance of the Transport Service and populates the URI and Version numbers. More...
 

Protected Member Functions

void setAddress (uint16_t subsystemId, uint8_t nodeId, uint8_t componentId)
 
- Protected Member Functions inherited from openjaus::core::services::Events
void configure (EventsSettingsInterface *settings)
 
void startService ()
 
void stopService ()
 
- Protected Member Functions inherited from openjaus::core::services::Transport
void configure (services::TransportSettingsInterface *settings)
 
void setComponentAddress (transport::Address *address)
 
void setReceiveQueue (system::PriorityQueue *queue)
 
void setSubsInterface (transport::Interface *interface)
 
void setNodeInterface (transport::Interface *interface)
 
void setComponentInterface (transport::Interface *interface)
 
void setJtcpInterface (transport::AS5669::JtcpInterface *interface)
 
void fireEvent (model::InternalEvent *event)
 
void sendToSelf (transport::Wrapper *wrapper)
 
transport::Address *& getComponentAddress ()
 

Private Types

enum  QueryLevel { COMPONENT, NODE, SUBSYSTEM }
 

Private Member Functions

void handleDynamicAddressingTimeout (system::Timer *timer)
 
void setMyComponentId ()
 
void setMyNodeId ()
 
void setMySubsystemId ()
 
void configureStaticAddress ()
 
void configureNode1Heartbeat ()
 
void configureDynamicAddress ()
 
void addSelfToSystemTree ()
 
void handleSystemTreeAddUnsolicitedSender (const transport::Address &source, const transport::Address &destination)
 
void addJausToUdpMappingToAddressMap (core::AddressBitField &addressField, transport::TransportData *transportData)
 
void addReportedAddressToSystemTree (core::AddressBitField &addressField)
 
void queryAllComponentsOnThisNodeForTheirAddress ()
 
void queryAllComponentsOnThisSubsystemForTheirAddress ()
 
void queryAllComponentsInThisSystemForTheirAddress ()
 
bool myNodeIdIsUnknown ()
 
bool myComponentIdIsUnknown ()
 
bool mySubsystemIsUnknown ()
 
uint16 lookupSubsystemId ()
 
uint8 lookupNodeId ()
 
uint8 lookupComponentId ()
 
void setMySubsystemToReportedSubsystem (uint16 subsystemId)
 
void setMyNodeToReportedNode (uint8 nodeId)
 

Private Attributes

DefaultConfigurationLoop defaultConfigurationLoop
 
ConfigurationSettingsInterfacesettings
 
int dynamicAddressingInterval_ms
 
system::TimerdynamicAddressingTimer
 
QueryLevel queryLevel
 
model::SystemTreesystemTree
 
bool node1HeartbeatEnabled
 

Additional Inherited Members

- Protected Attributes inherited from openjaus::core::services::Transport
model::StateMachine receive
 
model::State receivingState
 

Detailed Description

Member Enumeration Documentation

§ QueryLevel

Enumerator
COMPONENT 
NODE 
SUBSYSTEM 

Constructor & Destructor Documentation

§ Configuration()

openjaus::core::services::Configuration::Configuration ( )

§ ~Configuration()

openjaus::core::services::Configuration::~Configuration ( )
virtual

Member Function Documentation

§ addJausToUdpMappingToAddressMap()

void openjaus::core::services::Configuration::addJausToUdpMappingToAddressMap ( core::AddressBitField addressField,
transport::TransportData transportData 
)
private

§ addReportedAddressToSystemTree()

void openjaus::core::services::Configuration::addReportedAddressToSystemTree ( core::AddressBitField addressField)
private

§ addSelfToSystemTree()

void openjaus::core::services::Configuration::addSelfToSystemTree ( )
private

§ configure()

void openjaus::core::services::Configuration::configure ( ConfigurationSettingsInterface settings)

§ configureDynamicAddress()

void openjaus::core::services::Configuration::configureDynamicAddress ( )
private

§ configureNode1Heartbeat()

void openjaus::core::services::Configuration::configureNode1Heartbeat ( )
private

§ configureStaticAddress()

void openjaus::core::services::Configuration::configureStaticAddress ( )
private

§ create()

model::Service * openjaus::core::services::Configuration::create ( )
static
Returns
model::Service - The populated service.

§ handleDynamicAddressingTimeout()

void openjaus::core::services::Configuration::handleDynamicAddressingTimeout ( system::Timer timer)
private

§ handleSystemTreeAddUnsolicitedSender()

void openjaus::core::services::Configuration::handleSystemTreeAddUnsolicitedSender ( const transport::Address source,
const transport::Address destination 
)
private

§ lookupComponentId()

uint8 openjaus::core::services::Configuration::lookupComponentId ( )
private

§ lookupNodeId()

uint8 openjaus::core::services::Configuration::lookupNodeId ( )
private

§ lookupSubsystemId()

uint16 openjaus::core::services::Configuration::lookupSubsystemId ( )
private

§ myComponentIdIsUnknown()

bool openjaus::core::services::Configuration::myComponentIdIsUnknown ( )
private

§ myNodeIdIsUnknown()

bool openjaus::core::services::Configuration::myNodeIdIsUnknown ( )
private

§ mySubsystemIsUnknown()

bool openjaus::core::services::Configuration::mySubsystemIsUnknown ( )
private

§ queryAllComponentsInThisSystemForTheirAddress()

void openjaus::core::services::Configuration::queryAllComponentsInThisSystemForTheirAddress ( )
private

§ queryAllComponentsOnThisNodeForTheirAddress()

void openjaus::core::services::Configuration::queryAllComponentsOnThisNodeForTheirAddress ( )
private

§ queryAllComponentsOnThisSubsystemForTheirAddress()

void openjaus::core::services::Configuration::queryAllComponentsOnThisSubsystemForTheirAddress ( )
private

§ sendJausAddress()

bool openjaus::core::services::Configuration::sendJausAddress ( QueryJausAddress queryJausAddress)
virtual

SendJausAddress action with input QueryJausAddress.

Parameters
[in]queryJausAddress- Input Trigger.
Returns
Whether the message was properly processed by this action.

Implements openjaus::core::ConfigurationInterface.

§ setAddress()

void openjaus::core::services::Configuration::setAddress ( uint16_t  subsystemId,
uint8_t  nodeId,
uint8_t  componentId 
)
protected

§ setMyComponentId()

void openjaus::core::services::Configuration::setMyComponentId ( )
private

§ setMyNodeId()

void openjaus::core::services::Configuration::setMyNodeId ( )
private

§ setMyNodeToReportedNode()

void openjaus::core::services::Configuration::setMyNodeToReportedNode ( uint8  nodeId)
private

§ setMySubsystemId()

void openjaus::core::services::Configuration::setMySubsystemId ( )
private

§ setMySubsystemToReportedSubsystem()

void openjaus::core::services::Configuration::setMySubsystemToReportedSubsystem ( uint16  subsystemId)
private

§ setSystemTree()

void openjaus::core::services::Configuration::setSystemTree ( model::SystemTree systemTree)

§ setThisJausAddress()

bool openjaus::core::services::Configuration::setThisJausAddress ( ReportJausAddress reportJausAddress)
virtual

SetThisJausAddress action with input ReportJausAddress.

Parameters
[in]reportJausAddress- Input Trigger.
Returns
Whether the message was properly processed by this action.

Implements openjaus::core::ConfigurationInterface.

§ startService()

void openjaus::core::services::Configuration::startService ( )

§ stopService()

void openjaus::core::services::Configuration::stopService ( )

§ uri()

const char * openjaus::core::services::Configuration::uri ( )
static
Returns
const char* - The URI.

Member Data Documentation

§ defaultConfigurationLoop

DefaultConfigurationLoop openjaus::core::services::Configuration::defaultConfigurationLoop
private

§ dynamicAddressingInterval_ms

int openjaus::core::services::Configuration::dynamicAddressingInterval_ms
private

§ dynamicAddressingTimer

system::Timer* openjaus::core::services::Configuration::dynamicAddressingTimer
private

§ node1HeartbeatEnabled

bool openjaus::core::services::Configuration::node1HeartbeatEnabled
private

§ queryLevel

QueryLevel openjaus::core::services::Configuration::queryLevel
private

§ settings

ConfigurationSettingsInterface* openjaus::core::services::Configuration::settings
private

§ systemTree

model::SystemTree* openjaus::core::services::Configuration::systemTree
private

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