Created
February 23, 2016 13:40
-
-
Save jctophefabre/50e8c50e623a844d4448 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
@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