GAMS  1.4.0
Region.h
Go to the documentation of this file.
1 
54 #ifndef _GAMS_VARIABLES_REGION_H_
55 #define _GAMS_VARIABLES_REGION_H_
56 
57 #include <string>
58 #include <vector>
59 
60 #include "gams/GamsExport.h"
61 #include "madara/knowledge/containers/Integer.h"
62 #include "madara/knowledge/containers/NativeDoubleVector.h"
63 #include "madara/knowledge/KnowledgeBase.h"
64 
65 namespace gams
66 {
67  namespace variables
68  {
73  {
74  public:
78  Region();
79 
84 
89  void operator=(const Region & rhs);
90 
96  void init_vars(madara::knowledge::KnowledgeBase & knowledge,
97  const std::string & region_name = "0");
98 
104  void init_vars(madara::knowledge::Variables & knowledge,
105  const std::string & region_name = "0");
106 
108  madara::knowledge::containers::Integer type;
109 
111  std::vector<madara::knowledge::containers::NativeDoubleVector> vertices;
112 
114  std::string name;
115  };
116 
123  GAMS_EXPORT void init_vars(Region & variables,
124  madara::knowledge::KnowledgeBase & knowledge,
125  const std::string & region_name = "0");
126  }
127 }
128 
129 #endif // _GAMS_VARIABLES_REGION_H_
#define GAMS_EXPORT
Definition: GamsExport.h:20
A container for region information.
Definition: Region.h:73
std::vector< madara::knowledge::containers::NativeDoubleVector > vertices
vertices of the convex polygon
Definition: Region.h:111
void init_vars(madara::knowledge::KnowledgeBase &knowledge, const std::string &region_name="0")
Initializes variable containers.
std::string name
region identifier
Definition: Region.h:114
void init_vars(madara::knowledge::Variables &knowledge, const std::string &region_name="0")
Initializes variable containers.
void operator=(const Region &rhs)
Assignment operator.
madara::knowledge::containers::Integer type
the type of region(0 for arbitary convex polygon)
Definition: Region.h:108
GAMS_EXPORT void init_vars(AccentStatuses &variables, madara::knowledge::KnowledgeBase &knowledge, const std::string &prefix)
Initializes accent status containers.
Contains all GAMS-related tools, classes and code.