Minsky
minsky::Integral Class Reference

An integral is an additional stock variable, that integrates its flow variable. More...

#include <integral.h>

Collaboration diagram for minsky::Integral:
Collaboration graph

Public Member Functions

VariableValueinput ()
 
void setInput (const VariableValuePtr &input)
 

Public Attributes

VariableValuePtr stock
 
IntOpoperation
 

Private Attributes

VariableValuePtr m_input
 

Detailed Description

An integral is an additional stock variable, that integrates its flow variable.

Definition at line 28 of file integral.h.

Member Function Documentation

◆ input()

VariableValue& minsky::Integral::input ( )
inline

Definition at line 33 of file integral.h.

References m_input, and stock.

Referenced by setInput().

33 {assert(m_input->size()==stock->size()); return *m_input;}
VariableValuePtr m_input
Definition: integral.h:30
VariableValuePtr stock
Definition: integral.h:32
Here is the caller graph for this function:

◆ setInput()

void minsky::Integral::setInput ( const VariableValuePtr input)
inline

Definition at line 35 of file integral.h.

References input(), m_input, and stock.

35  {
36  m_input=input;
37  if (stock)
38  {
39  // redimension stock to that of the input
40  stock->index(m_input->index());
41  stock->hypercube(m_input->hypercube());
42  }
43  }
VariableValuePtr m_input
Definition: integral.h:30
VariableValue & input()
Definition: integral.h:33
VariableValuePtr stock
Definition: integral.h:32
Here is the call graph for this function:

Member Data Documentation

◆ m_input

VariableValuePtr minsky::Integral::m_input
private

Definition at line 30 of file integral.h.

Referenced by input(), and setInput().

◆ operation

IntOp* minsky::Integral::operation

Definition at line 34 of file integral.h.

◆ stock

VariableValuePtr minsky::Integral::stock

Definition at line 32 of file integral.h.

Referenced by input(), and setInput().


The documentation for this class was generated from the following file: