fipa_acl  1.4
statemachine_reader.h
Go to the documentation of this file.
1 
8 #ifndef FIPAACL_CONVERSATIONMONITOR_STATEMACHINE_READER_H
9 #define FIPAACL_CONVERSATIONMONITOR_STATEMACHINE_READER_H
10 
11 #include <fipa_acl/conversation_monitor/statemachine.h>
12 #include <fipa_acl/conversation_monitor/state.h>
13 #include <vector>
14 
15 class TiXmlElement;
16 
17 namespace fipa {
18 namespace acl {
19 
25 
26 public:
27  // node attribute names used in the spec standard; most general ones such as "state", "transition" are hard-implement
28  static const std::string transition;
29  static const std::string from;
30  static const std::string to;
31  static const std::string target;
32  static const std::string id;
33  static const std::string final;
34  static const std::string performative;
35  static const std::string initial;
36  static const std::string subprotocol;
37  static const std::string mapping;
38  static const std::string name;
39  static const std::string proxiedTo;
40 
48  StateMachine parseStateMachineNode(TiXmlElement* statemachineElement);
49 
55  State parseStateNode(TiXmlElement* stateElement);
56 
62  Transition parseTransitionNode(TiXmlElement* transitionElement);
63 
64 public:
72  StateMachine loadSpecification(const std::string& file);
73 
74 };
75 
76 
77 } //end of acl
78 } //end of fipa
79 
80 #endif
State parseStateNode(TiXmlElement *stateElement)
method that parses the <state> element of the spec. file
static const std::string id
implements a state of the StateMachine class
Definition: state.h:41
static const std::string name
static const std::string target
implements a XML parser that generates a state machine from a given spec. file; uses the tinyXML libr...
static const std::string to
static const std::string transition
static const std::string performative
static const std::string subprotocol
static const std::string from
StateMachine parseStateMachineNode(TiXmlElement *statemachineElement)
static const std::string proxiedTo
static const std::string mapping
StateMachine loadSpecification(const std::string &file)
Transition parseTransitionNode(TiXmlElement *transitionElement)
method that parses <transition> element of the spec. file
static const std::string initial
Foundation of Physical Intelligent Agents.
Definition: conversation.cpp:6