Skip to content

Instantly share code, notes, and snippets.

@jctophefabre
Created February 23, 2016 13:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jctophefabre/50e8c50e623a844d4448 to your computer and use it in GitHub Desktop.
Save jctophefabre/50e8c50e623a844d4448 to your computer and use it in GitHub Desktop.
/**
@file MySim.cpp
*/
/*
<sim2doc>
</sim2doc>
*/
#include <openfluid/ware/PluggableSimulator.hpp>
#include <openfluid/tools/ColumnTextParser.hpp>
// =====================================================================
// =====================================================================
BEGIN_SIMULATOR_SIGNATURE("sim.tools")
// Informations
DECLARE_NAME("")
DECLARE_DESCRIPTION("")
DECLARE_VERSION("")
DECLARE_STATUS(openfluid::ware::EXPERIMENTAL)
END_SIMULATOR_SIGNATURE
// =====================================================================
// =====================================================================
/**
*/
class MySimulator : public openfluid::ware::PluggableSimulator
{
private:
public:
MySimulator(): PluggableSimulator()
{
}
// =====================================================================
// =====================================================================
~MySimulator()
{
}
// =====================================================================
// =====================================================================
void initParams(const openfluid::ware::WareParams_t& /*Params*/)
{
}
// =====================================================================
// =====================================================================
void prepareData()
{
openfluid::tools::ColumnTextParser CTP("","");
int CC = CTP.getColsCount();
}
// =====================================================================
// =====================================================================
void checkConsistency()
{
}
// =====================================================================
// =====================================================================
openfluid::base::SchedulingRequest initializeRun()
{
return DefaultDeltaT();
}
// =====================================================================
// =====================================================================
openfluid::base::SchedulingRequest runStep()
{
return DefaultDeltaT();
}
// =====================================================================
// =====================================================================
void finalizeRun()
{
}
};
// =====================================================================
// =====================================================================
DEFINE_SIMULATOR_CLASS(MySimulator);
DEFINE_WARE_LINKUID(WARE_LINKUID)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment