All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Protected Attributes
openfluid::ware::SimulationDrivenWare Class Reference

#include <ware/SimulationDrivenWare.hpp>

Inheritance diagram for openfluid::ware::SimulationDrivenWare:
openfluid::ware::PluggableWare openfluid::ware::SimulationInspectorWare openfluid::ware::PluggableObserver openfluid::ware::SimulationContributorWare openfluid::ware::PluggableSimulator openfluid::machine::Generator openfluid::machine::FixedGenerator openfluid::machine::InjectGenerator openfluid::machine::InterpGenerator openfluid::machine::RandomGenerator

List of all members.

Public Member Functions

virtual ~SimulationDrivenWare ()
void linkToSimulation (const openfluid::base::SimulationStatus *SimStatus)
void linkToSimulationLogger (openfluid::base::SimulationLogger *SimLogger)
void initializeWare (const WareID_t &ID)
void finalizeWare ()
void setPreviousTimeIndex (const openfluid::core::TimeIndex_t &TimeIndex)

Protected Member Functions

virtual bool isLinked () const
openfluid::core::DateTime OPENFLUID_GetBeginDate () const
openfluid::core::DateTime OPENFLUID_GetEndDate () const
openfluid::core::DateTime OPENFLUID_GetCurrentDate () const
openfluid::core::Duration_t OPENFLUID_GetSimulationDuration () const
openfluid::core::Duration_t OPENFLUID_GetDefaultDeltaT () const
openfluid::core::TimeIndex_t OPENFLUID_GetCurrentTimeIndex () const
openfluid::core::TimeIndex_t OPENFLUID_GetPreviousRunTimeIndex () const
openfluid::base::SimulationStatus::SimulationStage OPENFLUID_GetCurrentStage () const
openfluid::base::SimulationStatus::SchedulingConstraint OPENFLUID_GetSchedulingConstraint () const
virtual void OPENFLUID_RaiseWarning (const std::string &Msg)
virtual void OPENFLUID_RaiseWarning (const std::string &Source, const std::string &Msg)
virtual void OPENFLUID_RaiseError (const std::string &Msg)
virtual void OPENFLUID_RaiseError (const std::string &Source, const std::string &Msg)
 SimulationDrivenWare (WareType WType)

Protected Attributes

openfluid::base::SimulationLoggermp_SimLogger
openfluid::base::StdoutAndFileOutputStream OPENFLUID_Logger

Constructor & Destructor Documentation


Member Function Documentation

Reimplemented from openfluid::ware::PluggableWare.

virtual bool openfluid::ware::SimulationDrivenWare::isLinked ( ) const [inline, protected, virtual]

Returns the real beginning date of the simulated period

Returns:
the date

Returns the current real date corresponding to the current time index

Returns:
the date

Returns the current stage of the simulation

Returns:
the stage

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.

Returns:
the current time index in seconds

Returns the default DeltaT used by the scheduler

Returns:
the deltaT in seconds

Returns the real ending date of the simulated period

Returns:
the date

Returns the time index of the simulation when the plugged ware was previously run

Returns:
the time index in seconds

Returns the scheduling constraint applied to the simulation (may be NONE)

Returns:
the constraint type

Returns the simulation duration in seconds

Returns:
the 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

Parameters:
[in]Msgthe 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

Parameters:
[in]Sourcethe source of the message
[in]Msgthe 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

Parameters:
[in]Msgthe 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

Parameters:
[in]Sourcethe source of the message
[in]Msgthe content of the message

Member Data Documentation

Pointer to the execution messages repository


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines