MultiAgentDecisionProcess  Release 0.2.1
DiscreteEntity.h
Go to the documentation of this file.
1 
28 /* Only include this header file once. */
29 #ifndef _DISCRETEENTITY_H_
30 #define _DISCRETEENTITY_H_ 1
31 
32 /* the include directives */
33 #include <iostream>
34 #include "Globals.h"
35 
37 
41 {
42 private:
43 
44 protected:
45 
48 
49 public:
50  // Constructor, destructor and copy assignment.
53 
55  virtual ~DiscreteEntity(){}
56 
58  Index GetIndex() const { return(_m_index); }
59 
61  void SetIndex(Index i) { _m_index=i; }
62 
64  bool operator< (const DiscreteEntity& a) const {
65  return( _m_index < a._m_index );}
66 
67 };
68 
69 
70 #endif /* !_DISCRETEENTITY_H_ */
71 
72 // Local Variables: ***
73 // mode:c++ ***
74 // End: ***