7 #ifndef _FIPAACL_CONVMONITOR_TRANSITION_H_
8 #define _FIPAACL_CONVMONITOR_TRANSITION_H_
10 #include <fipa_acl/bitefficient_message.h>
12 #include <fipa_acl/conversation_monitor/role.h>
13 #include <fipa_acl/conversation_monitor/state.h>
18 namespace validation {
36 std::string mPerformativeRegExp;
148 std::string
toXML()
const;
164 namespace default_transition
void setPerformativeRegExp(const std::string &performativeRegExp)
setter methods for various fields of the class
ConversationCancelFailure()
void setSenderRole(const Role &role)
void setReceiverRole(const Role &role)
GeneralFailure(const StateId &sourceState)
bool operator==(const Transition &t) const
void setSourceState(const StateId &stateId)
std::string toString() const
StateId getSourceStateId() const
std::string toXML() const
Role getReceiverRole() const
bool triggers(const ACLMessage &msg, const ACLMessage &initiatingMsg, const RoleMapping &roleMapping) const
check whether a certain message trigger the execution of the transition
Performative
an enum of all the predefined fipa message performatives so far, presented in the order used in the m...
Mapping between roles and actual agent ids.
ConversationCancelSuccess()
Role getSenderRole() const
std::map< ACLMessage::Performative, std::string > PerformativeTxt
void setPerformative(const fipa::acl::ACLMessage::Performative &performative)
setter methods for various fields of the class
This class provides a representation of a message conforming to the FIPA specification SC00061...
bool validateMessage(const ACLMessage &msg, const ACLMessage &validatorMsg, const RoleMapping &roleMapping, validation::Flags flags=validation::ALL) const
method that validates all parameters of a message
NotUnderstood(const Role &senderRole, const Role &receiverRole, const StateId &stateId)
void setTargetState(const StateId &stateId)
ConversationCancelling(const Role &senderRole, const Role &receiverRole, const StateId &stateId)
Transition()
empty constructor for the transition class; initializes fields
StateId getTargetStateId() const
std::string getPerformativeRegExp() const
getter methods for various fields of the class