#include <iostream>
#include <time.h>
#include <boost/foreach.hpp>
#include "ConfigProject.h"
#include "EpanetModel.h"
int main (int argc, const char * argv[])
{
string forwardSimulationConfig(""), realtimeConfig("");
if (argc > 1) {
forwardSimulationConfig = string( argv[1] );
}
if (argc > 2) {
realtimeConfig = string( argv[2] );
}
time_t someTime = 1222873200;
long duration = 60 * 60 * 24;
forwardSimulationConfig = "/Users/sam/Copy/Code/epanet-rtx/examples/validator/sampletown_synthetic.cfg";
model->loadModelFromFile("/Users/sam/Copy/Code/epanet-rtx/examples/validator/sampletown.inp");
vector<Pipe::sharedPointer> pipes = model->pipes();
BOOST_FOREACH(Pipe::sharedPointer p, pipes) {
if (RTX_STRINGS_ARE_EQUAL(p->name(), "4")) {
flow->setUnits(RTX_GALLON_PER_MINUTE);
p->setFlowMeasure(flow);
}
}
model->initDMAs();
realtimeConfig = "/Users/sam/Copy/Code/epanet-rtx/examples/validator/sampletown_realtime.cfg";
return 0;
}