Browse Source

Code style for formula classes

tempestpy_adaptions
Lanchid 12 years ago
parent
commit
350f1a0990
  1. 6
      src/formula/AP.h
  2. 7
      src/formula/And.h
  3. 9
      src/formula/BoundedUntil.h
  4. 6
      src/formula/Next.h
  5. 6
      src/formula/Not.h
  6. 8
      src/formula/Or.h
  7. 1
      src/formula/PCTLPathFormula.h
  8. 1
      src/formula/PCTLStateFormula.h
  9. 1
      src/formula/PCTLformula.h
  10. 9
      src/formula/ProbabilisticOperator.h
  11. 7
      src/formula/Until.h

6
src/formula/AP.h

@ -25,8 +25,7 @@ namespace formula {
*/
template <class T>
class AP : public PCTLStateFormula<T> {
private:
std::string ap;
public:
/*!
* Constructor
@ -93,6 +92,9 @@ class AP : public PCTLStateFormula<T> {
virtual mrmc::storage::BitVector *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkAP(this);
}
private:
std::string ap;
};
} //namespace formula

7
src/formula/And.h

@ -32,9 +32,7 @@ namespace formula {
*/
template <class T>
class And : public PCTLStateFormula<T> {
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
public:
/*!
* Empty constructor.
@ -147,6 +145,9 @@ class And : public PCTLStateFormula<T> {
return modelChecker->checkAnd(this);
}
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
};
} //namespace formula

9
src/formula/BoundedUntil.h

@ -36,9 +36,7 @@ namespace formula {
*/
template <class T>
class BoundedUntil : public PCTLPathFormula<T> {
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
uint_fast64_t bound;
public:
/*!
* Empty constructor
@ -172,6 +170,11 @@ class BoundedUntil : public PCTLPathFormula<T> {
virtual std::vector<T> *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkBoundedUntil(this);
}
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
uint_fast64_t bound;
};
} //namespace formula

6
src/formula/Next.h

@ -32,8 +32,7 @@ namespace formula {
*/
template <class T>
class Next : public PCTLPathFormula<T> {
private:
PCTLStateFormula<T>* child;
public:
/*!
* Empty constructor
@ -116,6 +115,9 @@ class Next : public PCTLPathFormula<T> {
virtual std::vector<T> *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkNext(this);
}
private:
PCTLStateFormula<T>* child;
};
} //namespace formula

6
src/formula/Not.h

@ -28,8 +28,7 @@ namespace formula {
*/
template <class T>
class Not : public PCTLStateFormula<T> {
private:
PCTLStateFormula<T>* child;
public:
/*!
* Empty constructor
@ -109,6 +108,9 @@ class Not : public PCTLStateFormula<T> {
virtual mrmc::storage::BitVector *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkNot(this);
}
private:
PCTLStateFormula<T>* child;
};
} //namespace formula

8
src/formula/Or.h

@ -31,9 +31,7 @@ namespace formula {
*/
template <class T>
class Or : public PCTLStateFormula<T> {
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
public:
/*!
* Empty constructor.
@ -145,6 +143,10 @@ class Or : public PCTLStateFormula<T> {
virtual mrmc::storage::BitVector *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkOr(this);
}
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
};
} //namespace formula

1
src/formula/PCTLPathFormula.h

@ -27,6 +27,7 @@ namespace formula {
*/
template <class T>
class PCTLPathFormula : public PCTLFormula<T> {
public:
/*!
* empty destructor

1
src/formula/PCTLStateFormula.h

@ -27,6 +27,7 @@ namespace formula {
*/
template <class T>
class PCTLStateFormula : public PCTLFormula<T> {
public:
/*!
* empty destructor

1
src/formula/PCTLformula.h

@ -27,6 +27,7 @@ namespace formula {
*/
template <class T>
class PCTLFormula {
public:
/*!
* virtual destructor

9
src/formula/ProbabilisticOperator.h

@ -34,9 +34,7 @@ namespace formula {
*/
template<class T>
class ProbabilisticOperator : public PCTLStateFormula<T> {
T lower;
T upper;
PCTLPathFormula<T>* pathFormula;
public:
/*!
* Empty constructor
@ -156,6 +154,11 @@ class ProbabilisticOperator : public PCTLStateFormula<T> {
virtual mrmc::storage::BitVector *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkProbabilisticOperator(this);
}
private:
T lower;
T upper;
PCTLPathFormula<T>* pathFormula;
};
} //namespace formula

7
src/formula/Until.h

@ -33,8 +33,7 @@ namespace formula {
*/
template <class T>
class Until : public PCTLPathFormula<T> {
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
public:
/*!
* Empty constructor
@ -144,6 +143,10 @@ class Until : public PCTLPathFormula<T> {
virtual std::vector<T> *check(mrmc::modelChecker::DtmcPrctlModelChecker<T>* modelChecker) {
return modelChecker->checkUntil(this);
}
private:
PCTLStateFormula<T>* left;
PCTLStateFormula<T>* right;
};
} //namespace formula

Loading…
Cancel
Save