10 #ifndef CORAL_SLAVE_LOGGING_HPP_INCLUDED 11 #define CORAL_SLAVE_LOGGING_HPP_INCLUDED 54 bool adaptiveStepSize,
55 double relativeTolerance)
override;
76 #endif // header guard std::string GetStringVariable(coral::model::VariableID variable) const override
Returns the value of a string variable.
bool SetStringVariable(coral::model::VariableID variable, const std::string &value) override
Sets the value of a string variable.
bool SetRealVariable(coral::model::VariableID variable, double value) override
Sets the value of a real variable.
bool SetBooleanVariable(coral::model::VariableID variable, bool value) override
Sets the value of a boolean variable.
int GetIntegerVariable(coral::model::VariableID variable) const override
Returns the value of an integer variable.
void Setup(const std::string &slaveName, const std::string &executionName, coral::model::TimePoint startTime, coral::model::TimePoint stopTime, bool adaptiveStepSize, double relativeTolerance) override
Instructs the slave to perform pre-simulation setup and enter initialisation mode.
LoggingInstance(std::shared_ptr< Instance > instance, const std::string &outputFilePrefix=std::string{})
Constructs a LoggingInstance that wraps the given slave instance and adds logging to it...
A description of a slave type.
Definition: model.hpp:148
Definition: variable_io.hpp:28
double TimeDuration
The type used to specify (simulation) time durations.
Definition: model.hpp:56
coral::model::SlaveTypeDescription TypeDescription() const override
Returns an object that describes the slave type.
bool DoStep(coral::model::TimePoint currentT, coral::model::TimeDuration deltaT) override
Performs model calculations for the time step which starts at the time point currentT and has a durat...
void EndSimulation() override
Informs the slave that the simulation run has ended.
Defines the coral::slave::Instance interface.
bool SetIntegerVariable(coral::model::VariableID variable, int value) override
Sets the value of an integer variable.
double GetRealVariable(coral::model::VariableID variable) const override
Returns the value of a real variable.
bool GetBooleanVariable(coral::model::VariableID variable) const override
Returns the value of a boolean variable.
void StartSimulation() override
Informs the slave that the initialisation stage ends and the simulation begins.
An interface for classes that represent slave instances.
Definition: instance.hpp:42
double TimePoint
The type used to specify (simulation) time points.
Definition: model.hpp:42
A slave instance wrapper that logs variable values to a file.
Definition: logging.hpp:27