| 
    Molecular Dynamics Simulation
    1.0
    
   | 
 
#include <ThermostatInterceptor.h>


Public Member Functions | |
| ThermostatInterceptor (std::shared_ptr< Thermostat > thermostat, size_t application_interval) | |
| Construct a new Thermostat Interceptor object.  More... | |
| void | onSimulationStart (Simulation &simulation) override | 
| This function is empty as the thermostat doesnt need initialization.  More... | |
| void | operator() (size_t iteration, Simulation &simulation) override | 
| This function is called on every nth iteration. It scales the temperature of the particles in accordance with the thermostat.  More... | |
| void | onSimulationEnd (size_t iteration, Simulation &simulation) override | 
| This function is empty as the thermostat doesnt need to do anything at the end of the simulation.  More... | |
| operator std::string () const override | |
| The string representation of this interceptor.  More... | |
| void | logSummary (int depth) const override | 
| Logs the summary of the thermostat.  More... | |
  Public Member Functions inherited from SimulationInterceptor | |
| virtual | ~SimulationInterceptor ()=default | 
| Destroy the Simulation Interceptor object.  More... | |
| void | notify (size_t iteration, Simulation &simulation) | 
| This function is called by the simulation loop on every iteration. Whenever the iteration is a multiple of every_nth_iteration, the operator() function is called.  More... | |
Private Attributes | |
| std::shared_ptr< Thermostat > | thermostat | 
| The thermostat that is used to scale the temperature.  More... | |
| size_t | application_interval | 
| The interval at which the thermostat is applied.  More... | |
Additional Inherited Members | |
  Protected Attributes inherited from SimulationInterceptor | |
| size_t | every_nth_iteration = 1 | 
Definition at line 9 of file ThermostatInterceptor.h.
      
  | 
  explicit | 
Construct a new Thermostat Interceptor object.
Definition at line 5 of file ThermostatInterceptor.cpp.
      
  | 
  overridevirtual | 
Logs the summary of the thermostat.
Implements SimulationInterceptor.
Definition at line 17 of file ThermostatInterceptor.cpp.
      
  | 
  overridevirtual | 
This function is empty as the thermostat doesnt need to do anything at the end of the simulation.
| iteration | The current iteration | 
| simulation | The simulation object | 
Implements SimulationInterceptor.
Definition at line 15 of file ThermostatInterceptor.cpp.
      
  | 
  overridevirtual | 
This function is empty as the thermostat doesnt need initialization.
| simulation | The simulation object | 
Implements SimulationInterceptor.
Definition at line 9 of file ThermostatInterceptor.cpp.
      
  | 
  explicitoverridevirtual | 
The string representation of this interceptor.
This is used to write the final summary of the Interceptors to the console.
Implements SimulationInterceptor.
Definition at line 26 of file ThermostatInterceptor.cpp.
      
  | 
  overridevirtual | 
This function is called on every nth iteration. It scales the temperature of the particles in accordance with the thermostat.
| iteration | The current iteration | 
| simulation | The simulation object | 
Implements SimulationInterceptor.
Definition at line 11 of file ThermostatInterceptor.cpp.
      
  | 
  private | 
The interval at which the thermostat is applied.
Definition at line 65 of file ThermostatInterceptor.h.
      
  | 
  private | 
The thermostat that is used to scale the temperature.
Definition at line 60 of file ThermostatInterceptor.h.