00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00057 #ifndef CriteriaProperties_h 00058 #define CriteriaProperties_h 00059 #include "Base/Base.h" 00060 00062 namespace OSCAR { 00063 00064 class CriteriaProperties: public virtual Base //This class holds all necessary data for the RRT 00065 { 00066 public: 00072 CriteriaProperties(); 00073 00074 double GetCriteriaValue() const; 00075 00076 double GetNormalizedValue() const; 00077 00078 bool GetValidity() const; 00079 00080 void SetCriteriaValue(const double& value); 00081 00082 void SetNormalizedValue(const double& value); 00083 00084 void SetValidity(const bool& value); 00085 00086 virtual ~CriteriaProperties() {} 00087 00088 bool Copy(const CriteriaProperties& critVal); 00089 00090 00091 protected: 00092 00093 double criteriaValue; // Unnormalized criteria value 00094 double normalizedCriteriaValue; //Normalized criteria value - Probably between 0 and 1 00095 bool validity; //Is solution valid - Less than criticalLimit defined in criteria 00096 00097 00098 }; 00099 00100 #include "CriteriaProperties.ipp" 00101 00102 } 00103 00104 #endif /*CriteriaProperties_h*/ 00105 00106 00107
| RRG Homepage | OSCAR Overview | OSCAR Tutorials | Simulations |