MultiAgentDecisionProcess  Release 0.2.1
MultiAgentDecisionProcess.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _MULTIAGENTDECISIONPROCESS_H_
30 #define _MULTIAGENTDECISIONPROCESS_H_ 1
31 
32 /* the include directives */
33 #include <string>
34 #include <vector>
35 
36 #include "NamedDescribedEntity.h"
38 #include "Agent.h"
39 #include "Globals.h"
40 
52  virtual public MultiAgentDecisionProcessInterface,
54 {
55  private:
56 
57  void InitializeUnixName();
58 
59  protected:
61  size_t _m_nrAgents;
63  std::vector<Agent> _m_agents;
64 
67  std::string _m_problemFile;
69  std::string _m_unixName;
70 
71  public:
72  // Constructor, destructor and copy assignment.
75  size_t nrAgents,
76  std::string name="received unspec. by MultiAgentDecisionProcess",
77  std::string description="received unspec. by MultiAgentDecisionProcess",
78  std::string pf="received unspec. by MultiAgentDecisionProcess");
79 
82  std::string name="received unspec. by MultiAgentDecisionProcess",
83  std::string description="received unspec. by MultiAgentDecisionProcess",
84  std::string pf="received unspec. by MultiAgentDecisionProcess");
85 
88 
90  void SetNrAgents(size_t nrAgents);
93  void AddAgent(std::string name);
94 
96  size_t GetNrAgents() const;
98  std::string GetProblemFile() const;
99 
102  std::string GetUnixName() const { return(_m_unixName); }
103 
105  void SetUnixName(std::string unixName) { _m_unixName=unixName; }
106 
108  std::string SoftPrint() const;
109  void Print() const
110  {std::cout << SoftPrint();}
111 };
112 
113 #endif /* !_MULTIAGENTDECISIONPROCESS_H_ */
114 
115 
116 // Local Variables: ***
117 // mode:c++ ***
118 // End: ***