OS  2.9.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OSiLParserData.h
Go to the documentation of this file.
1 /* $Id: OSiLParserData.h 4891 2014-12-03 03:05:50Z Gassmann $ */
14 #ifndef OSILPARSERDATA_H
15 #define OSILPARSERDATA_H
16 
17 #include "OSnLNode.h"
18 #include <vector>
19 
35 {
36 public:
38  OSiLParserData( );
39 
41  ~OSiLParserData() ;
42 
45  void* scanner;
46 
51 
56 
60 
64 
68 
70  bool qtermidattON ;
71 
76 
77 
78 
84 
87 
90 
92  std::string stagename;
93 
99 
105 
110 
115 
120 
125 
130 
135 
139 
142 
146 
149 
160 
162  int numberOf;
164 
166  std::string name;
167 
170 
182  std::string semidefiniteness;
183 
184  /* some elements to hold <matrixProgramming> constructs */
190 
192 
205 
217  char varType;
218 
220  std::string shape;
221 
223 
224  int kounter;
225  int kount2;
226  double tempVal;
227 
233  char *errorText;
234 
238  std::string parser_errors;
239 };
240 
241 #endif /*OSILPARSERDATA_H_*/
int stagecount
store the number of stages
bool secondAxisDirectionPresent
bool stageVariablesON
for each stage we need to track whether the &lt;variables&gt;, &lt;constraints&gt;, &lt;objectives&gt; elements are pre...
bool numberOfColumnsPresent
int osillineno
if there is a parser error, osillineno holds the line number in the OSiL file where the error occured...
double intervalhorizon
intervalhorizon holds the value of the end of the planning horizon
~OSiLParserData()
the OSiLParserData class destructor
bool stageConstraintsOrdered
int stagevarcount
...and we need to track the number of variables we have seen
The OSiLParserData Class, used to store parser data.
bool intervalhorizonON
intervalhorizonON is true if we have found a horizon for the time interval
int * m_miConStageInfo
m_miConStageInfo is an array that for each constraint gives the stage to which it belongs...
bool stageObjectivesOrdered
bool stageVariablesOrdered
...we need to track whether the variables, constraints, objectives are given in temporal order...
bool stagenameON
stagenameON is true if the current stage was given a name
int nvarcovered
these two integers track how many variables and constraints have been assigned to a stage; this is us...
bool firstAxisDirectionPresent
bool normScaleFactorPresent
bool constantMatrixIdxPresent
std::string semidefiniteness
bool numberOfMatricesPresent
some elements to hold matrices and cones
int stageVariableStartIdx
...we need to track the first variable, constraint, objective...
double intervalstart
intervalstart holds the value for the start of the planning horizon
bool referenceMatrixIdxPresent
std::string stagename
store the name of the current stage
int qtermcount
These variables are used for processing the &lt;quadraticCoefficients&gt; element.
bool conReferenceMatrixIdxPresent
bool ignoreDataAfterErrors
if the parser finds invalid text it is held here and we delete if the file was not valid ...
std::string parser_errors
used to accumulate error message so the parser does not die on the first error encountered ...
bool varReferenceMatrixIdxPresent
int * m_miVarStageInfo
m_miVarStageInfo is an array that for each variable gives the stage to which it belongs.
bool objReferenceMatrixIdxPresent
bool qtermcoefattON
qtermcoefattON is true if we have found the coefficient of the quadratic term
bool qtermidxOneattON
qtermidxOneattON is true if we have found the first index of the quadratic term
bool templateMatrixIdxPresent
int * m_miObjStageInfo
m_miObjStageInfo is an array that for each objective gives the stage to which it belongs.
bool qtermidattON
qtermidattON is true if we have found the id of the quadratic term
double normScaleFactor
bool timeDomainStages
These variables are used to parse the &lt;timeDomain&gt; element.
This file defines the OSnLNode class along with its derived classes.
bool qtermidxTwoattON
qtermidxTwoattON is true if we have found the second index of the quadratic term
bool suppressFurtherErrorMessages
bool intervalstartON
intervalstartON is true if we have found a start time for the time interval
std::string shape
std::string name
OSiLParserData()
the OSiLParserData class constructor
bool qtermidxattON
qtermidxattON is true if we have found the row index of the of a quadratic term
bool distortionMatrixPresent
void * scanner
scanner is used to store data in a reentrant lexer we use this to pass an OSiLParserData object to th...
bool semidefinitenessPresent
bool numberOfMatrixTermsPresent