Program listing for file kernel/src/modelingTools/RelayNSL.hpp

Program listing for file kernel/src/modelingTools/RelayNSL.hpp#

 1#ifndef RELAYNSLAW_H
 2#define RELAYNSLAW_H
 3
 4#include "NonSmoothLaw.hpp"
 5
 6
 7class RelayNSL : public NonSmoothLaw {
 8
 9private:
10  ACCEPT_SERIALIZATION(RelayNSL);
11
12
13  double _lb;
14
15
16  double _ub;
17
18
19  RelayNSL();
20
21public:
22
23  RelayNSL(unsigned int size, double lb = -1.0, double ub = 1.0);
24
25  ~RelayNSL();
26
27
28  bool isVerified() const override;
29
30
31  inline double lb() const { return _lb; };
32
33
34  inline void setLb(double lb) { _lb = lb; };
35
36
37  inline double ub() const { return _ub; };
38
39
40  inline void setUb(double ub) { _ub = ub; };
41
42
43  void display() const override;
44
45  ACCEPT_STD_VISITORS();
46};
47
48#endif