irafhy
Interval arithmetic based Reachability Analysis Framework for Hybrid Automaton
updateFunction.h
Go to the documentation of this file.
1 #ifndef REPRESENTATION_FORMAL_HYBRID_AUTOMATON_TRANSITIONS_JUMP_UPDATE_FUNCTION_H
2 #define REPRESENTATION_FORMAL_HYBRID_AUTOMATON_TRANSITIONS_JUMP_UPDATE_FUNCTION_H
3 
5 
6 namespace irafhy
7 {
9  {
10  private:
14  long index_ = -1;
19 
20 
21  public:
25  UpdateFunction() = default;
31  UpdateFunction(const Formula& formula, long index);
35  ~UpdateFunction() = default;
40  long index() const;
45  Formula formula() const;
53  void update(const capd::interval& time,
54  const std::vector<capd::interval>& oriConstraints,
55  const std::vector<capd::interval>& oriParams,
56  std::vector<capd::interval>& constraints) const;
57  };
58 
65  std::ostream& operator<<(std::ostream& out, const UpdateFunction& rhs);
66 } // namespace irafhy
67 #endif //REPRESENTATION_FORMAL_HYBRID_AUTOMATON_TRANSITIONS_JUMP_UPDATE_FUNCTION_H
std::ostream & operator<<(std::ostream &out, const Condition &rhs)
output the right hand side condition to the standard out stream
Definition: condition.cpp:246
void update(const capd::interval &time, const std::vector< capd::interval > &oriConstraints, const std::vector< capd::interval > &oriParams, std::vector< capd::interval > &constraints) const
update the target variable with given values
Definition: updateFunction.cpp:20
long index_
index of the variable which shall be updated
Definition: updateFunction.h:14
Definition: formula.h:8
Formula formula_
formula which used to calculate the value to update the target variable indicated by the index ...
Definition: updateFunction.h:18
UpdateFunction()=default
constructor
Definition: condition.cpp:3
long index() const
get the index of the target variable
Definition: updateFunction.cpp:12
Definition: updateFunction.h:8
Formula formula() const
get the updating expression
Definition: updateFunction.cpp:18
~UpdateFunction()=default
destructor