/home/coin/SVN-release/OS-2.1.1/OS/src/OSParsers/OSrLParserData.h

Go to the documentation of this file.
00001 /* $Id: OSrLParserData.h 3068 2009-11-15 14:41:49Z Gassmann $ */
00016 #ifndef OSRLPARSERDATA_H
00017 #define OSRLPARSERDATA_H
00018 
00019 #include "OSnLNode.h"
00020 #include "OSDataStructures.h"
00021 
00022 #include <vector> 
00023 #include <sstream>
00024 
00025 
00026 
00031 struct OtherVariableResultStruct{
00035         std::string name;
00036 
00040         std::string description;
00041         
00045         std::string value;
00046         
00050         int numberOfVar;
00051 
00058         std::string *otherVarText;
00059         
00060 
00067         int *otherVarIndex;
00068                 
00069 };
00070 
00071 
00084 class OSrLParserData{
00085 public:
00086         
00088         OSrLParserData( );
00089         
00090         //** the OSrLParserData class destructor */
00091         ~OSrLParserData() ;
00092         
00093         
00095         std::string statusType;
00096         
00098         std::string statusDescription;
00099 
00102         double timeValue;
00103         std::string timeType;
00104         std::string timeCategory;
00105         std::string timeUnit;
00106         std::string timeDescription;
00107 
00110         int numberOfTimes;
00111 
00113         std::string tmpOtherValue;
00114         std::string tmpOtherName;
00115         std::string tmpOtherDescription;
00116 
00118         std::string itemContent;
00119 
00122         void* scanner;
00123         
00125         unsigned int numberOfSolutions;
00126         
00128         int numberOfVariables;
00129         
00131         int numberOfConstraints;
00132         
00134         int numberOfObjectives;
00135         
00139         int numberOfVar;
00140         
00144         int numberOfCon;
00145         
00149         int numberOfObj;
00150         
00152         int numberOf;
00153 
00155         int kounter;
00156 
00158         int iOther;
00159 
00161         int ivar;
00162 
00164         int idx;
00165 
00167         double tempVal;
00168         
00170         int tempInt;
00171         
00173         std::string tempStr;
00174         
00176         std::ostringstream outStr;
00177         
00181         int numberOfOtherVariableResults;
00182         
00186         int numberOfOtherObjectiveResults;
00187         
00191         int numberOfOtherConstraintResults;
00192         
00194         unsigned int solutionIdx;
00195 
00202         bool numberAttributePresent;
00203         bool idxAttributePresent;
00204         bool categoryAttributePresent;
00205         bool descriptionAttributePresent;
00206         bool nameAttributePresent;
00207         bool typeAttributePresent;
00208         bool unitAttributePresent;
00209         bool valueAttributePresent;
00210         bool weightedObjAttributePresent;
00211 
00217         std::string categoryAttribute;
00218         std::string descriptionAttribute;
00219         std::string nameAttribute;
00220         std::string typeAttribute;
00221         std::string unitAttribute;
00222         std::string valueAttribute;
00223 
00224 
00225         bool nVarPresent;
00226         bool nObjPresent;
00227         bool nConPresent;
00228 
00232         bool generalStatusPresent; 
00233         bool generalMessagePresent; 
00234         bool generalServiceURIPresent; 
00235         bool generalServiceNamePresent; 
00236         bool generalInstanceNamePresent; 
00237         bool generalJobIDPresent; 
00238         bool generalSolverInvokedPresent; 
00239         bool generalTimeStampPresent; 
00240         bool generalOtherResultsPresent; 
00241 
00245         bool systemInformationPresent; 
00246         bool systemAvailableDiskSpacePresent; 
00247         bool systemAvailableMemoryPresent; 
00248         bool systemAvailableCPUSpeedPresent; 
00249         bool systemAvailableCPUNumberPresent; 
00250         bool systemOtherResultsPresent;
00251 
00255         bool serviceCurrentStatePresent;
00256         bool serviceCurrentJobCountPresent;
00257         bool serviceTotalJobsSoFarPresent;
00258         bool timeServiceStartedPresent;
00259         bool serviceUtilizationPresent;
00260         bool serviceOtherResultsPresent;
00261 
00265         bool jobStatusPresent;
00266         bool jobSubmitTimePresent;
00267         bool scheduledStartTimePresent;
00268         bool actualStartTimePresent;
00269         bool jobEndTimePresent;
00270         bool jobTimingInformationPresent;
00271         bool jobUsedDiskSpacePresent;
00272         bool jobUsedMemoryPresent;
00273         bool jobUsedCPUSpeedPresent;
00274         bool jobUsedCPUNumberPresent;
00275         bool jobOtherResultsPresent;
00276 
00277         bool numberOfItemsPresent;
00278         int  numberOfItems;
00279 
00280         
00283         struct IndexValuePair *primalValPair;
00284         std::vector<IndexValuePair*> primalVals;
00285         
00286         
00289         struct IndexValuePair *objValPair;
00290         std::vector<IndexValuePair*> objVals;
00291         
00292 
00295         struct IndexValuePair *dualValPair;
00296         std::vector<IndexValuePair*> dualVals;
00297         
00298 
00300         struct OtherVariableResultStruct *otherVarStruct;
00301         
00303         std::vector<OtherVariableResultStruct*> otherVarVec;
00304         
00308         char *errorText;
00309 };
00310 
00311 #endif /*OSRLPARSERDATA_H_*/

Generated on Mon May 3 03:05:30 2010 by  doxygen 1.4.7