#include <ware/SimulationDrivenWare.hpp>
openfluid::ware::SimulationDrivenWare::SimulationDrivenWare | ( | WareType | WType | ) | [inline, protected] |
virtual openfluid::ware::SimulationDrivenWare::~SimulationDrivenWare | ( | ) | [inline, virtual] |
void openfluid::ware::SimulationDrivenWare::finalizeWare | ( | ) | [virtual] |
Reimplemented from openfluid::ware::PluggableWare.
void openfluid::ware::SimulationDrivenWare::initializeWare | ( | const WareID_t & | ID | ) | [virtual] |
Reimplemented from openfluid::ware::PluggableWare.
Reimplemented in openfluid::ware::PluggableObserver.
virtual bool openfluid::ware::SimulationDrivenWare::isLinked | ( | ) | const [inline, protected, virtual] |
Reimplemented from openfluid::ware::PluggableWare.
Reimplemented in openfluid::ware::SimulationInspectorWare.
void openfluid::ware::SimulationDrivenWare::linkToSimulation | ( | const openfluid::base::SimulationStatus * | SimStatus | ) |
void openfluid::ware::SimulationDrivenWare::linkToSimulationLogger | ( | openfluid::base::SimulationLogger * | SimLogger | ) | [inline] |
openfluid::core::DateTime openfluid::ware::SimulationDrivenWare::OPENFLUID_GetBeginDate | ( | ) | const [protected] |
Returns the real beginning date of the simulated period
openfluid::core::DateTime openfluid::ware::SimulationDrivenWare::OPENFLUID_GetCurrentDate | ( | ) | const [protected] |
Returns the current real date corresponding to the current time index
openfluid::base::SimulationStatus::SimulationStage openfluid::ware::SimulationDrivenWare::OPENFLUID_GetCurrentStage | ( | ) | const [protected] |
Returns the current stage of the simulation
openfluid::core::TimeIndex_t openfluid::ware::SimulationDrivenWare::OPENFLUID_GetCurrentTimeIndex | ( | ) | const [protected] |
Returns the current time index of the simulation, in seconds since the simulation started. When the simulation starts, the time index is equal to zero.
openfluid::core::Duration_t openfluid::ware::SimulationDrivenWare::OPENFLUID_GetDefaultDeltaT | ( | ) | const [protected] |
Returns the default DeltaT used by the scheduler
openfluid::core::DateTime openfluid::ware::SimulationDrivenWare::OPENFLUID_GetEndDate | ( | ) | const [protected] |
Returns the real ending date of the simulated period
openfluid::core::TimeIndex_t openfluid::ware::SimulationDrivenWare::OPENFLUID_GetPreviousRunTimeIndex | ( | ) | const [protected] |
Returns the time index of the simulation when the plugged ware was previously run
openfluid::base::SimulationStatus::SchedulingConstraint openfluid::ware::SimulationDrivenWare::OPENFLUID_GetSchedulingConstraint | ( | ) | const [protected] |
Returns the scheduling constraint applied to the simulation (may be NONE)
openfluid::core::Duration_t openfluid::ware::SimulationDrivenWare::OPENFLUID_GetSimulationDuration | ( | ) | const [protected] |
Returns the simulation duration in seconds
virtual void openfluid::ware::SimulationDrivenWare::OPENFLUID_RaiseError | ( | const std::string & | Msg | ) | [protected, virtual] |
Raises an error message to the kernel. This stops the simulation the next time the kernel has the control
[in] | Msg | the content of the message |
Reimplemented from openfluid::ware::PluggableWare.
virtual void openfluid::ware::SimulationDrivenWare::OPENFLUID_RaiseError | ( | const std::string & | Source, |
const std::string & | Msg | ||
) | [protected, virtual] |
Raises an error message to the kernel. This stops the simulation the next time the kernel has the control
[in] | Source | the source of the message |
[in] | Msg | the content of the message |
virtual void openfluid::ware::SimulationDrivenWare::OPENFLUID_RaiseWarning | ( | const std::string & | Msg | ) | [protected, virtual] |
Raises a time-marked warning message to the kernel. This do not stops the simulation
[in] | Msg | the content of the message |
virtual void openfluid::ware::SimulationDrivenWare::OPENFLUID_RaiseWarning | ( | const std::string & | Source, |
const std::string & | Msg | ||
) | [protected, virtual] |
Raises a time-marked warning message to the kernel. This do not stops the simulation
[in] | Source | the source of the message |
[in] | Msg | the content of the message |
void openfluid::ware::SimulationDrivenWare::setPreviousTimeIndex | ( | const openfluid::core::TimeIndex_t & | TimeIndex | ) | [inline] |
Pointer to the execution messages repository
openfluid::base::StdoutAndFileOutputStream openfluid::ware::SimulationDrivenWare::OPENFLUID_Logger [protected] |