10 #ifndef CORAL_SLAVE_INSTANCE_HPP 11 #define CORAL_SLAVE_INSTANCE_HPP 81 bool adaptiveStepSize,
82 double relativeTolerance) = 0;
189 #endif // header guard virtual std::string GetStringVariable(coral::model::VariableID variable) const =0
Returns the value of a string variable.
virtual bool SetRealVariable(coral::model::VariableID variable, double value)=0
Sets the value of a real variable.
virtual coral::model::SlaveTypeDescription TypeDescription() const =0
Returns an object that describes the slave type.
virtual bool DoStep(coral::model::TimePoint currentT, coral::model::TimeDuration deltaT)=0
Performs model calculations for the time step which starts at the time point currentT and has a durat...
virtual int GetIntegerVariable(coral::model::VariableID variable) const =0
Returns the value of an integer variable.
virtual bool SetIntegerVariable(coral::model::VariableID variable, int value)=0
Sets the value of an integer variable.
virtual void EndSimulation()=0
Informs the slave that the simulation run has ended.
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
virtual bool SetBooleanVariable(coral::model::VariableID variable, bool value)=0
Sets the value of a boolean variable.
virtual double GetRealVariable(coral::model::VariableID variable) const =0
Returns the value of a real variable.
virtual bool SetStringVariable(coral::model::VariableID variable, const std::string &value)=0
Sets the value of a string variable.
virtual void StartSimulation()=0
Informs the slave that the initialisation stage ends and the simulation begins.
Main module header for coral::model.
virtual bool GetBooleanVariable(coral::model::VariableID variable) const =0
Returns the value of a boolean variable.
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
virtual void Setup(const std::string &slaveName, const std::string &executionName, coral::model::TimePoint startTime, coral::model::TimePoint stopTime, bool adaptiveStepSize, double relativeTolerance)=0
Instructs the slave to perform pre-simulation setup and enter initialisation mode.