AGX Dynamics  2.37.3.2
Controller1D.h
Go to the documentation of this file.
1 /*
2 Copyright 2007-2024. Algoryx Simulation AB.
3 
4 All AGX source code, intellectual property, documentation, sample code,
5 tutorials, scene files and technical white papers, are copyrighted, proprietary
6 and confidential material of Algoryx Simulation AB. You may not download, read,
7 store, distribute, publish, copy or otherwise disseminate, use or expose this
8 material unless having a written signed agreement with Algoryx Simulation AB, or having been
9 advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10 valid commercial license from Algoryx Simulation AB.
11 
12 Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13 from using this software, unless otherwise stated in written agreements with
14 Algoryx Simulation AB.
15 */
16 
17 #pragma once
18 
19 
20 #include <agx/TimeStamp.h>
21 #include <agx/Real.h>
22 #include <agx/Referenced.h>
23 #include <agxModel/export.h>
24 
25 namespace agxModel
26 {
27 
29 
36  {
37  public:
38 
42  virtual void update(const agx::TimeStamp& /*time*/, agx::Real /*measuredProcessVariable*/) {};
43 
45  virtual void reset() {};
46 
48  virtual agx::Real getManipulatedVariable() const { return 0; };
49 
51  virtual void setSetPoint(agx::Real /*setPoint*/) { };
52 
54  virtual agx::Real getSetPoint() const { return 0; };
55 
56  };
57 }
virtual agx::Real getSetPoint() const
Get the current Set Point for the controller.
Definition: Controller1D.h:54
virtual agx::Real getManipulatedVariable() const
get the Manipulated Variable (MV)
Definition: Controller1D.h:48
virtual void setSetPoint(agx::Real)
Set the current Set Point for the controller.
Definition: Controller1D.h:51
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
agx::Real TimeStamp
Definition: TimeStamp.h:26
Base class providing referencing counted objects.
Definition: Referenced.h:119
Contain classes for higher level modeling primitives, such as Tree, Terrain etc.
Definition: FlowUnit.h:36
A simple base class for a controller with a set point and an out signal.
Definition: Controller1D.h:35
virtual void update(const agx::TimeStamp &, agx::Real)
Update the measured Process Variable and calculate a new Manipulated Variable.
Definition: Controller1D.h:42
virtual void reset()
Reset all calculated values to initial conditions. This will keep the Set Point.
Definition: Controller1D.h:45
#define AGXMODEL_EXPORT
double Real
Definition: Real.h:42