DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
|
An ongoing simulation process. More...
#include <simulator.h>
Signals | |
void | log (QString) |
void | simulationEnded (int status) |
void | processStateChanged (QProcess::ProcessState oldstate, QProcess::ProcessState newstate) |
void | simulationStepChanged (int) |
void | vesselMoved (int laststep, int idx, float x, float y, float course, float fuel, int state) |
void | shipMoved (int laststep, int idx, float x, float y, float course) |
void | outputFileUpdated (QString, int) |
void | nodesStatsUpdate (QString) |
void | debugMemoryStats (long rss, long peak) |
void | debugCapture (QString) |
void | sqliteStorageOpened (QString) |
Public Member Functions | |
Simulator () | |
~Simulator () | |
void | linkModel (std::shared_ptr< DisplaceModel > model) |
bool | start (QString outdir, QString name, QString folder, QString simul_name) |
bool | isRunning () |
bool | forceStop () |
QProcess::ProcessState | processState () const |
void | setSimSteps (int value) |
void | setUseStaticPaths (int value) |
void | setPreexistingPathsShop (int value) |
void | setVerbosityLevel (int value) |
bool | getMoveVesselOption () const |
void | setMoveVesselOption (bool value) |
int | getVesselMoveDisplayUpdateRate () const |
void | setVesselMoveDisplayUpdateRate (int value) |
void | setOutDir (const QString &value) |
void | setOutputName (const QString &value) |
bool | wasSimulationStarted () const |
Static Public Attributes | |
static QString | SET_NUMTHREADS |
static QString | SET_VERBOSITY |
An ongoing simulation process.
Simulator::Simulator | ( | ) |
Simulator::~Simulator | ( | ) |
|
signal |
|
signal |
bool Simulator::forceStop | ( | ) |
bool Simulator::getMoveVesselOption | ( | ) | const |
int Simulator::getVesselMoveDisplayUpdateRate | ( | ) | const |
bool Simulator::isRunning | ( | ) |
void Simulator::linkModel | ( | std::shared_ptr< DisplaceModel > | model | ) |
|
signal |
|
signal |
|
signal |
QProcess::ProcessState Simulator::processState | ( | ) | const |
|
signal |
void Simulator::setMoveVesselOption | ( | bool | value | ) |
void Simulator::setOutDir | ( | const QString & | value | ) |
void Simulator::setOutputName | ( | const QString & | value | ) |
void Simulator::setPreexistingPathsShop | ( | int | value | ) |
void Simulator::setSimSteps | ( | int | value | ) |
void Simulator::setUseStaticPaths | ( | int | value | ) |
|
inline |
void Simulator::setVesselMoveDisplayUpdateRate | ( | int | value | ) |
|
signal |
|
signal |
|
signal |
|
signal |
bool Simulator::start | ( | QString | outdir, |
QString | name, | ||
QString | folder, | ||
QString | simul_name | ||
) |
|
signal |
bool Simulator::wasSimulationStarted | ( | ) | const |
|
static |
|
static |