Classes | Namespaces | Defines | Typedefs
ware/SimulatorSignature.hpp File Reference
#include <openfluid/config.hpp>
#include <openfluid/dllexport.hpp>
#include <openfluid/core/TypeDefs.hpp>
#include <openfluid/core/DateTime.hpp>
#include <openfluid/ware/WareSignature.hpp>

Go to the source code of this file.

Classes

class  openfluid::ware::SignatureHandledDataItem
class  openfluid::ware::SignatureHandledTypedDataItem
class  openfluid::ware::SignatureHandledUnitsClassItem
class  openfluid::ware::SignatureHandledData
class  openfluid::ware::SignatureHandledUnitsGraph
class  openfluid::ware::SignatureTimeScheduling
class  openfluid::ware::SimulatorSignature

Namespaces

namespace  openfluid
namespace  openfluid::ware

Defines

#define BEGIN_SIMULATOR_SIGNATURE(id)
#define END_SIMULATOR_SIGNATURE
#define DECLARE_DOMAIN(domain)   Signature->Domain = domain;
#define DECLARE_PROCESS(process)   Signature->Process = process;
#define DECLARE_METHOD(method)   Signature->Method = method;
#define DECLARE_SIMULATOR_PARAM(name, description, unit)   Signature->HandledData.SimulatorParams.push_back(openfluid::ware::SignatureHandledDataItem((name),(""),description,unit));
#define DECLARE_PRODUCED_VAR(name, uclass, description, unit)   Signature->HandledData.ProducedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));
#define DECLARE_UPDATED_VAR(name, uclass, description, unit)   Signature->HandledData.UpdatedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));
#define DECLARE_REQUIRED_VAR(name, uclass, description, unit)   Signature->HandledData.RequiredVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));
#define DECLARE_USED_VAR(name, uclass, description, unit)   Signature->HandledData.UsedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));
#define DECLARE_PRODUCED_ATTRIBUTE(name, uclass, description, unit)   Signature->HandledData.ProducedAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));
#define DECLARE_REQUIRED_ATTRIBUTE(name, uclass, description, unit)   Signature->HandledData.RequiredAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));
#define DECLARE_USED_ATTRIBUTE(name, uclass, description, unit)   Signature->HandledData.UsedAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));
#define DECLARE_USED_EVENTS(uclass)   Signature->HandledData.UsedEventsOnUnits.push_back(uclass);
#define DECLARE_UPDATED_UNITSGRAPH(description)   Signature->HandledUnitsGraph.UpdatedUnitsGraph = (description);
#define DECLARE_UPDATED_UNITSCLASS(uclass, description)   Signature->HandledUnitsGraph.UpdatedUnitsClass.push_back(openfluid::ware::SignatureHandledUnitsClassItem(uclass,description));
#define DECLARE_REQUIRED_EXTRAFILE(name)   Signature->HandledData.RequiredExtraFiles.push_back(name);
#define DECLARE_USED_EXTRAFILE(name)   Signature->HandledData.UsedExtraFiles.push_back(name);
#define DECLARE_SCHEDULING_UNDEFINED   Signature->TimeScheduling.setAsUndefined();
#define DECLARE_SCHEDULING_DEFAULT   Signature->TimeScheduling.setAsDefaultDeltaT();
#define DECLARE_SCHEDULING_FIXED(deltat)   Signature->TimeScheduling.setAsFixed(deltat);
#define DECLARE_SCHEDULING_RANGE(min, max)   Signature->TimeScheduling.setAsRange(min,max);

Typedefs

typedef std::string openfluid::ware::SimMethod_t
typedef std::string openfluid::ware::SimProcess_t
typedef std::string openfluid::ware::SimDomain_t

Detailed Description

Author:
Jean-Christophe FABRE <fabrejc@supagro.inra.fr>

Define Documentation

#define BEGIN_SIMULATOR_SIGNATURE (   id)
Value:
openfluid::ware::SimulatorSignature* GetWareSignature() \
  { \
    openfluid::ware::SimulatorSignature* Signature = new openfluid::ware::SimulatorSignature(); \
    Signature->setABIVersion(openfluid::config::FULL_VERSION); \
    Signature->ID = (id);

Macro for the beginning of definition of signature hook

#define DECLARE_DOMAIN (   domain)    Signature->Domain = domain;

Macro for declaration of the simulator application domain

#define DECLARE_METHOD (   method)    Signature->Method = method;

Macro for declaration of the simulator application numerical method

#define DECLARE_PROCESS (   process)    Signature->Process = process;

Macro for declaration of the simulator application processes

#define DECLARE_PRODUCED_ATTRIBUTE (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.ProducedAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));

Macro for declaration of a produced attribute

Parameters:
[in]namename of the attribute
[in]uclassclass of the concerned units
[in]descriptiondescription of the attribute
[in]unitunit of the attribute. Could be an empty string if there is no unit
#define DECLARE_PRODUCED_VAR (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.ProducedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));

Macro for declaration of a produced variable

Parameters:
[in]namename of the variable
[in]uclassclass of the concerned units
[in]descriptiondescription of the variable
[in]unitunit of the variable. Could be an empty string if there is no unit
#define DECLARE_REQUIRED_ATTRIBUTE (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.RequiredAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));

Macro for declaration of a required attribute

Parameters:
[in]namename of the attribute
[in]uclassclass of the concerned units
[in]descriptiondescription of the attribute
[in]unitunit of the attribute. Could be an empty string if there is no unit
#define DECLARE_REQUIRED_EXTRAFILE (   name)    Signature->HandledData.RequiredExtraFiles.push_back(name);

Macro for declaration of required file

Parameters:
[in]namename of the file
#define DECLARE_REQUIRED_VAR (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.RequiredVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));

Macro for declaration of a required variable

Parameters:
[in]namename of the variable
[in]uclassclass of the concerned units
[in]descriptiondescription of the variable
[in]unitunit of the variable. Could be an empty string if there is no unit
#define DECLARE_SCHEDULING_DEFAULT   Signature->TimeScheduling.setAsDefaultDeltaT();

Macro for declaration of time scheduling as default delta T

#define DECLARE_SCHEDULING_FIXED (   deltat)    Signature->TimeScheduling.setAsFixed(deltat);

Macro for declaration of fixed time scheduling

Parameters:
[in]deltatfixed time scheduling value
#define DECLARE_SCHEDULING_RANGE (   min,
  max 
)    Signature->TimeScheduling.setAsRange(min,max);

Macro for declaration of range of time scheduling

Parameters:
[in]minminimal time scheduling value
[in]maxmaximal time scheduling value
#define DECLARE_SCHEDULING_UNDEFINED   Signature->TimeScheduling.setAsUndefined();

Macro for declaration of time scheduling as undefined

#define DECLARE_SIMULATOR_PARAM (   name,
  description,
  unit 
)    Signature->HandledData.SimulatorParams.push_back(openfluid::ware::SignatureHandledDataItem((name),(""),description,unit));

Macro for declaration of a simulator parameter

Parameters:
[in]namename of the parameter
[in]descriptiondescription of the parameter
[in]unitunit of the parameter. Could be an empty string if there is no unit
#define DECLARE_UPDATED_UNITSCLASS (   uclass,
  description 
)    Signature->HandledUnitsGraph.UpdatedUnitsClass.push_back(openfluid::ware::SignatureHandledUnitsClassItem(uclass,description));

Macro for declaration of units class creation or update

Parameters:
[in]uclassname of the created or updated class
[in]descriptiondescription of the updated class
#define DECLARE_UPDATED_UNITSGRAPH (   description)    Signature->HandledUnitsGraph.UpdatedUnitsGraph = (description);

Macro for declaration of units graph modification

Parameters:
[in]descriptiondescription of modification
#define DECLARE_UPDATED_VAR (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.UpdatedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));

Macro for declaration of an updated variable

Parameters:
[in]namename of the variable
[in]uclassclass of the concerned units
[in]descriptiondescription of the variable
[in]unitunit of the variable. Could be an empty string if there is no unit
#define DECLARE_USED_ATTRIBUTE (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.UsedAttribute.push_back(openfluid::ware::SignatureHandledDataItem((name),uclass,description,unit));

Macro for declaration of a used attribute

Parameters:
[in]namename of the attribute
[in]uclassclass of the concerned units
[in]descriptiondescription of the attribute
[in]unitunit of the attribute. Could be an empty string if there is no unit
#define DECLARE_USED_EVENTS (   uclass)    Signature->HandledData.UsedEventsOnUnits.push_back(uclass);

Macro for declaration of used events

Parameters:
[in]uclassclass of the concerned units
#define DECLARE_USED_EXTRAFILE (   name)    Signature->HandledData.UsedExtraFiles.push_back(name);

Macro for declaration of used file

Parameters:
[in]namename of the file
#define DECLARE_USED_VAR (   name,
  uclass,
  description,
  unit 
)    Signature->HandledData.UsedVars.push_back(openfluid::ware::SignatureHandledTypedDataItem((name),uclass,description,unit));

Macro for declaration of an used variable

Parameters:
[in]namename of the variable
[in]uclassclass of the concerned units
[in]descriptiondescription of the variable
[in]unitunit of the variable. Could be an empty string if there is no unit
Value:
return Signature; \
  }

Macro for the end of definition of signature hook

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines