8 #ifndef _FIPAACL_CONVMONITOR_STATE_H_ 9 #define _FIPAACL_CONVMONITOR_STATE_H_ 14 #include <fipa_acl/message_generator/acl_message.h> 15 #include <fipa_acl/conversation_monitor/role.h> 20 struct EmbeddedStateMachine;
24 namespace default_transition {
66 std::vector<Transition> mTransitions;
74 std::vector<EmbeddedStateMachine> mEmbeddedStateMachines;
79 std::vector<fipa::acl::StateMachine> mSubStateMachines;
86 std::vector<Transition> mSubstateMachineProxiedTransitions;
88 static std::vector<StateId> msDefaultStates;
97 void setFinal(
bool final) { mIsFinal =
final; }
119 State(
const StateId&
id);
154 void generateDefaultTransitions();
163 bool isFinished()
const;
169 bool isDefaultState()
const;
176 void setId(
const StateId&
id) { mId = id; }
181 std::string
getId()
const {
return mId; }
203 std::string toString()
const;
208 std::string toXML()
const;
224 namespace default_state
ConversationCancelSuccess()
implements a state of the StateMachine class
static const StateId GENERAL_FAILURE_STATE
static const StateId CONVERSATION_CANCEL_FAILURE
static const StateId CONVERSATION_CANCELLING
void setId(const StateId &id)
setter method for the uid field of the state NOTE: maybe should be taken out and name only be allowed...
std::string getId() const
getter method for the uid field of the class
implements a XML parser that generates a state machine from a given spec. file; uses the tinyXML libr...
void setFinal(bool final)
setter method for the final field of the class When changing the final state flag make sure you eithe...
Mapping between roles and actual agent ids.
An embedded state machine with mappings.
ConversationCancelFailure()
const std::vector< Transition > & getTransitions() const
const std::vector< EmbeddedStateMachine > & getEmbeddedStatemachines() const
This class provides a representation of a message conforming to the FIPA specification SC00061...
static const StateId CONVERSATION_CANCEL_SUCCESS
static const StateId UNDEFINED_ID
static const StateId NOT_UNDERSTOOD
Foundation of Physical Intelligent Agents.