DISPLACE  1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
DisplaceModel Class Reference

#include <displacemodel.h>

Inheritance diagram for DisplaceModel:

Public Types

enum  ModelType { LiveModelType, EditorModelType, OfflineModelType, EmptyModelType }
 
enum  SpecialGroups {
  Total, Average, Min, Max,
  LastSpecialGroup
}
 
typedef HistoricalDataCollector< BenthosStatsBenthosStatsContainer
 
typedef HistoricalDataCollector< FishfarmsStatsFishfarmsStatsContainer
 
typedef HistoricalDataCollector< ShipsStatsShipsStatsContainer
 

Signals

void parseOutput (QString, int)
 
void outputParsed ()
 
void errorParsingStatsFile (QString)
 

Public Member Functions

 DisplaceModel ()
 
 ~DisplaceModel ()
 
ModelType modelType () const
 
MapsDataProvidergetMapDataProvider ()
 
bool edit (QString modelname)
 
void setIndex (int idx)
 
int index () const
 
bool load (QString path, ModelType type)
 
bool loadDatabase (QString path)
 
bool clearStats ()
 
bool saveScenarioAs (const QString &path)
 
bool saveScenario ()
 
bool saveConfig ()
 
std::shared_ptr< Calendarcalendar () const
 
void Q_DECL_DEPRECATED simulationEnded ()
 Signals the simulation has ended. Flush all buffers. More...
 
QString fullpath () const
 
QString outDir () const
 
QString inputName () const
 
QString basepath () const
 
QString outputName () const
 
void setOutDir (const QString &name)
 
void setOutputName (const QString &name)
 
QString simulationName () const
 
void setSimulationName (const QString &name)
 
void setSimulationSqlStorage (const QString &path)
 
QString linkedDatabase () const
 
bool isModelLoaded () const
 
int getNBPops () const
 
int getNBBenthosPops () const
 
int getSzGrupsCount () const
 
int getBenthosIdx (int benthosId) const
 
QString getOutDir () const
 
int getSimulationSteps () const
 
void setSimulationSteps (int value)
 
int getUseStaticPaths () const
 
void setUseStaticPaths (int value)
 
const QList< std::shared_ptr< HarbourData > > & getHarboursList () const
 
int getHarboursCount () const
 
QString getHarbourId (int idx) const
 
const QList< std::shared_ptr< NodeData > > & getNodesList () const
 
int getNodesCount () const
 
QString getNodeId (int idx) const
 
QList< std::shared_ptr< NodeData > > getAllNodesWithin (const QPointF &centerpoint, double dist_km) const
 
void updateNodesStatFromSimu (QString)
 receive a Stats update for nodes from the Simulator More...
 
const QList< std::shared_ptr< VesselData > > & getVesselList () const
 
int getVesselCount () const
 
QString getVesselId (int idx) const
 
void updateVessel (int tstep, int idx, float x, float y, float course, float fuel, int state)
 
const QList< std::shared_ptr< FishfarmData > > & getFishfarmList () const
 
int getFishfarmsCount () const
 
QString getFishfarmId (int idx) const
 
void updateFishfarm (int idx, float x, float y)
 
const QList< std::shared_ptr< FirmData > > & getFirmList () const
 
int getFirmCount () const
 
QString getFirmId (int idx) const
 
void updateFirm (int idx, float x, float y)
 
const QList< std::shared_ptr< WindmillData > > & getWindmillList () const
 
int getWindmillCount () const
 
QString getWindmillId (int idx) const
 
void updateWindmill (int idx, float x, float y)
 
const QList< std::shared_ptr< ShipData > > & getShipList () const
 
int getShipsCount () const
 
QString getShipId (int idx) const
 
void updateShip (int tstep, int idx, float x, float y, float course)
 
const QList< std::shared_ptr< Benthos > > & getBenthosList () const
 
int getBenthosCount () const
 
const QList< std::shared_ptr< objecttree::MetiersInterest > > & getMetiersList () const
 
int getMetiersCount () const
 
void addMetier (int id)
 
int getPopulationsCount () const
 
int getBenthosPopulationsCount () const
 
const QList< std::shared_ptr< PopulationData > > & getPopulationsList () const
 
const PopulationDatagetPop (int idx) const
 
const QList< std::shared_ptr< NationData > > & getNationsList () const
 
const NationDatagetNation (int idx) const
 
const QList< std::shared_ptr< VesselData > > & getVesselsList () const
 
const VesselDatagetVessel (int idx) const
 
const QList< std::shared_ptr< HarbourData > > & getHarbourList () const
 
const HarbourDatagetHarbourData (int idx) const
 
HarbourStats retrieveHarbourIdxStatAtStep (int idx, int step)
 
const BenthosStatsContainergetBenthosStatistics ()
 
const FishfarmsStatsContainergetFishfarmsStatistics ()
 
const ShipsStatsContainergetShipsStatistics ()
 
Scenario scenario () const
 
void setScenario (const Scenario &scenario)
 
Config config () const
 
void setConfig (const Config &config)
 
const QMap< QString, int > getStockNames () const
 
void setStockNames (const QMap< QString, int > &names)
 
void setCurrentStep (int step)
 
int getCurrentStep () const
 
int getLastStep () const
 
const QList< int > & getInterestingPops () const
 
const QList< int > & getInterestingPops2 () const
 
void setInterestingPop (int n)
 insert the pop into the list of interest for pops More...
 
void setInterestingPop2 (int n)
 
void remInterestingPop (int n)
 remove the pop from the list of interest for pops More...
 
void remInterestingPop2 (int n)
 
bool isInterestingPop (int n)
 
bool isInterestingPop2 (int n)
 
void clearInterestingPop ()
 
void clearInterestingPop2 ()
 
QList< int > getInterestingBenthos () const
 
void setInterestingBenthos (int n)
 
void remInterestingBenthos (int n)
 
bool isInterestingBenthos (int n) const
 
void clrInterestingBenthos ()
 
QList< int > getInterestingFishfarms () const
 
void setInterestingFishfarms (int n)
 
void remInterestingFishfarms (int n)
 
bool isInterestingFishfarms (int n) const
 
void clrInterestingFishfarms ()
 
QList< int > getInterestingWindfarms () const
 
void setInterestingWindfarms (int n)
 
void remInterestingWindfarms (int n)
 
bool isInterestingWindfarms (int n) const
 
void clrInterestingWindfarms ()
 
QList< int > getInterestingShips () const
 
void setInterestingShips (int n)
 
void remInterestingShips (int n)
 
bool isInterestingShips (int n) const
 
void clrInterestingShips ()
 
bool isInterestingSizeTotal () const
 
void setInterestingSizeTotal (bool b)
 
bool isInterestingSizeAvg () const
 
void setInterestingSizeAvg (bool b)
 
bool isInterestingSizeMin () const
 
void setInterestingSizeMin (bool b)
 
bool isInterestingSizeMax () const
 
void setInterestingSizeMax (bool b)
 
const QList< int > & getInterestingSizes () const
 
int getNumFuncGroups () const
 
std::shared_ptr< InterestingListWithSpecialValues< int > > getFunctionalGroupsList () const
 
int getNumFishfarmsTypes () const
 
std::shared_ptr< InterestingListWithSpecialValues< int > > getFishfarmsTypesList () const
 
int getNumWindfarmsTypes () const
 
std::shared_ptr< InterestingListWithSpecialValues< int > > getWindfarmsTypesList () const
 
int getNumShipsTypes () const
 
std::shared_ptr< InterestingListWithSpecialValues< int > > getShipsTypesList () const
 
void setInterestingSize (int n)
 insert the pop into the list of interest for pops More...
 
void remInterestingSize (int n)
 remove the pop from the list of interest for pops More...
 
bool isInterestingSize (int n)
 
const QList< types::NodeId > & getInterestingHarbours () const
 
void setInterestingHarb (types::NodeId n)
 insert the pop into the list of interest for pops More...
 
void remInterestingHarb (types::NodeId n)
 remove the pop from the list of interest for pops More...
 
bool isInterestingHarb (types::NodeId n)
 
const QList< int > & getInterestingNations () const
 
void setInterestingNations (int n)
 insert the pop into the list of interest for pops More...
 
void remInterestingNations (int n)
 remove the pop from the list of interest for pops More...
 
bool isInterestingNations (int n)
 
const QList< int > & getInterestingVessels () const
 
void setInterestingVessels (int n)
 
void remInterestingVessels (int n)
 remove the pop from the list of interest for pops More...
 
bool isInterestingVessels (int n)
 
QString getLastError () const
 
void parseOutputStatsFile (QString file, int tstep)
 
void commitNodesStatsFromSimu (int tstep, bool force=false)
 
void startCollectingStats ()
 
void endCollectingStats ()
 
void collectNodePopStats (int tstep, int node_idx, const QList< double > &stats, const QList< double > &stats_w, double tot, double wtot)
 
void collectPopCumftime (int step, int node_idx, double cumftime)
 
void collectPopCumsweptarea (int step, int node_idx, double cumsweptarea)
 
void collectPopCumsubsurfacesweptarea (int step, int node_idx, double cumsubsurfacesweptarea)
 
void collectPopCumcatches (int step, int node_idx, double cumcatches)
 
void collectPopCumcatchesWithThreshold (int step, int node_idx, double cumcatches_with_threshold)
 
void collectPopCumdiscards (int step, int node_idx, double cumdiscards)
 
void collectPopCumdiscardsratio (int step, int node_idx, double cumdiscardsratio)
 
void collectPopNbchoked (int step, int node_idx, double nbchoked)
 
void collectPopTariffs (int step, int node_idx, vector< double > tariffs)
 
void collectPopImpact (int step, int node_idx, int popid, double impact)
 
void collectPopCumcatchesPerPop (int step, int node_idx, int popid, double cumcatchesperpop)
 
void collectSalinity (int step, int node_idx, double salinity)
 
void collectWind (int step, int node_idx, double wind)
 
void collectSST (int step, int node_idx, double sst)
 
void collectNitrogen (int step, int node_idx, double nitrogen)
 
void collectPhosphorus (int step, int node_idx, double phosphorus)
 
void collectOxygen (int step, int node_idx, double oxygen)
 
void collectDissolvedCarbon (int step, int node_idx, double dissolvedcarbon)
 
void collectBathymetry (int step, int node_idx, double bathymetry)
 
void collectShippingdensity (int step, int node_idx, double shippingdensity)
 
void collectSiltfraction (int step, int node_idx, double siltfraction)
 
void collectPopBenthosBiomass (int step, int node_idx, int funcid, double benthosbiomass)
 
void collectPopBenthosNumber (int step, int node_idx, int funcid, double benthosnumber)
 
void collectPopBenthosMeanWeight (int step, int node_idx, int funcid, double meanweight)
 
void collectPopBenthosBiomassOverK (int step, int node_idx, int funcid, double benthosbiomassoverK)
 
void collectPopBenthosNumberOverK (int step, int node_idx, int funcid, double benthosnumberoverK)
 
void commitPopBenthosStats (int tstep)
 
void collectFishfarmFishMeanWeight (int step, int node_idx, int farmid, int farmtype, double meanw_kg)
 
void collectFishfarmFishHarvestedKg (int step, int node_idx, int farmid, int farmtype, double fish_harvested_kg)
 
void collectFishfarmEggsHarvestedKg (int step, int node_idx, int farmid, int farmtype, double eggs_harvested_kg)
 
void collectFishfarmAnnualProfit (int step, int node_idx, int farmid, int farmtype, double fishfarm_annualprofit)
 
void collectFishfarmNetDischargeN (int step, int node_idx, int farmid, int farmtype, double fishfarm_netdischargeN)
 
void collectFishfarmNetDischargeP (int step, int node_idx, int farmid, int farmtype, double fishfarm_netdischargeP)
 
void collectFishfarmCumulNetDischargeN (int step, int node_idx, int farmid, int farmtype, double fishfarm_cumulnetdischargeN)
 
void collectFishfarmCumulNetDischargeP (int step, int node_idx, int farmid, int farmtype, double fishfarm_cumulnetdischargeP)
 
void commitFishfarmsStats (int tstep)
 
void collectShipNbTransportedUnits (int step, int node_idx, int shipid, int shiptype, double nb_transported_units)
 
void collectShipFuelUseHour (int step, int node_idx, int shipid, int shiptype, double fuel_use_h)
 
void collectShipNOxEmissiongPerkW (int step, int node_idx, int shipid, int shiptype, double NOx_emission_gperkW)
 
void collectShipSOxEmissionPercentPerTotalFuelmass (int step, int node_idx, int shipid, int shiptype, double SOx_emission_percentpertotalfuelmass)
 
void collectShipGHGemissiongPerkW (int step, int node_idx, int shipid, int shiptype, double GHG_emission_gperkW)
 
void collectShipPMEemissiongPerkW (int step, int node_idx, int shipid, int shiptype, double PME_emission_gperkW)
 
void collectShipfuelUseLitre (int step, int node_idx, int shipid, int shiptype, double fuel_use_litre)
 
void collectShipNOxEmission (int step, int node_idx, int shipid, int shiptype, double NOx_emission)
 
void collectShipSOxEmission (int step, int node_idx, int shipid, int shiptype, double SOx_emission)
 
void collectShipGHGemission (int step, int node_idx, int shipid, int shiptype, double GHG_emission)
 
void collectShipPMEemission (int step, int node_idx, int shipid, int shiptype, double PME_emission)
 
void commitShipsStats (int tstep)
 
void collectVesselStats (int step, const VesselStats &stats)
 
void commitVesselsStats (int tstep)
 
void clearAllNodes ()
 
bool addGraph (const QList< GraphBuilder::Node > &points, MapObjectsController *controller)
 
bool removeNode (std::shared_ptr< NodeData > node)
 
int addEdge (std::shared_ptr< NodeData > nodedata, types::NodeId targetidx, double weight)
 DisplaceModel::addEdge. More...
 
int addEdge (types::NodeId srcidx, types::NodeId targetidx, double weight)
 DisplaceModel::addEdge. More...
 
bool exportGraph (const QString &path)
 
bool importHarbours (QList< std::shared_ptr< HarbourData > > &list)
 
void addPenaltyToNodesByAddWeight (const QList< QPointF > &poly, double weight, double nbOfDaysClosedPerMonth, bool onQ1, bool onQ2, bool onQ3, bool onQ4, vector< bool > checkedMonths, const vector< int > &checkedVesSizes, vector< int > bannedMetiers)
 
void addPenaltyToNodesByAddWeight (OGRGeometry *geometry, double weight, double nbOfDaysClosedPerMonth, bool onQ1, bool onQ2, bool onQ3, bool onQ4, vector< bool > checkedMonths, const vector< int > &checkedVesSizes, vector< int > bannedMetiers)
 
const QList< displace::NodePenaltygetPenaltyCollection () const
 
bool isShortestPathFolderLinked () const
 
void linkShortestPathFolder (QString path)
 
QString linkedShortestPathFolder () const
 
bool isGraphFolderLinked () const
 
void linkGraphFolder (QString path)
 
QString linkedGraphFolder () const
 
void setLandscapeCodesFromFeature (OGRGeometry *geometry, int code)
 
void setWindFromFeature (OGRGeometry *geometry, double wind)
 
void setSSTFromFeature (OGRGeometry *geometry, double sst)
 
void setSalinityFromFeature (OGRGeometry *geometry, double psu)
 
void setNitrogenFromFeature (OGRGeometry *geometry, double nit)
 
void setPhosphorusFromFeature (OGRGeometry *geometry, double phos)
 
void setOxygenFromFeature (OGRGeometry *geometry, double oxygen)
 
void setDissolvedCarbonFromFeature (OGRGeometry *geometry, double dissc)
 
void setBenthosBiomassFromFeature (OGRGeometry *geometry, double bio)
 
void setBenthosNumberFromFeature (OGRGeometry *geometry, double nb)
 
void setAreaCodesFromFeature (OGRGeometry *geometry, int code)
 
std::shared_ptr< SQLiteOutputStoragegetOutputStorage () const
 

Protected Member Functions

bool loadNodes ()
 
bool loadVessels ()
 
bool loadGraphs ()
 
bool initShips ()
 
bool initFirm ()
 
bool initFishfarm ()
 
bool initWindmill ()
 
bool initBenthos ()
 
bool initPopulations ()
 
bool initNations ()
 
void createFeaturesLayer ()
 
bool loadNodesFromDb ()
 
bool loadVesselsFromDb ()
 
bool loadFishfarmsFromDb ()
 
void checkStatsCollection (int tstep)
 
bool parse (const QString &path, QString *basepath, QString *inputname, QString *outputname)
 
void setCodeFromFeature (OGRGeometry *geometry, int code, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setWdFromFeature (OGRGeometry *geometry, double wd, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setTFromFeature (OGRGeometry *geometry, double t, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setSalFromFeature (OGRGeometry *geometry, double sal, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setNitroFromFeature (OGRGeometry *geometry, double sal, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setPhosFromFeature (OGRGeometry *geometry, double sal, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setOxyFromFeature (OGRGeometry *geometry, double sal, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setDissoFromFeature (OGRGeometry *geometry, double sal, std::function< void(std::shared_ptr< NodeData >, int)> func)
 
void setBenthosBioFromFeature (OGRGeometry *geometry, double bio, std::function< void(std::shared_ptr< NodeData >, double)> func)
 
void setBenthosNbFromFeature (OGRGeometry *geometry, double bio, std::function< void(std::shared_ptr< NodeData >, double)> func)
 

Member Typedef Documentation

◆ BenthosStatsContainer

◆ FishfarmsStatsContainer

◆ ShipsStatsContainer

Member Enumeration Documentation

◆ ModelType

Enumerator
LiveModelType 
EditorModelType 
OfflineModelType 
EmptyModelType 

◆ SpecialGroups

Enumerator
Total 
Average 
Min 
Max 
LastSpecialGroup 

Constructor & Destructor Documentation

◆ DisplaceModel()

DisplaceModel::DisplaceModel ( )

◆ ~DisplaceModel()

DisplaceModel::~DisplaceModel ( )

Member Function Documentation

◆ addEdge() [1/2]

int DisplaceModel::addEdge ( std::shared_ptr< NodeData nodedata,
types::NodeId  targetidx,
double  weight 
)

DisplaceModel::addEdge.

Parameters
nodedata
targetidx
weight
Returns
Adiacency id for that node

◆ addEdge() [2/2]

int DisplaceModel::addEdge ( types::NodeId  srcidx,
types::NodeId  targetidx,
double  weight 
)

DisplaceModel::addEdge.

Parameters
srcidx
targetidx
weight
Returns
Adiacency id

◆ addGraph()

bool DisplaceModel::addGraph ( const QList< GraphBuilder::Node > &  points,
MapObjectsController controller 
)

◆ addMetier()

void DisplaceModel::addMetier ( int  id)

◆ addPenaltyToNodesByAddWeight() [1/2]

void DisplaceModel::addPenaltyToNodesByAddWeight ( const QList< QPointF > &  poly,
double  weight,
double  nbOfDaysClosedPerMonth,
bool  onQ1,
bool  onQ2,
bool  onQ3,
bool  onQ4,
vector< bool >  checkedMonths,
const vector< int > &  checkedVesSizes,
vector< int >  bannedMetiers 
)

◆ addPenaltyToNodesByAddWeight() [2/2]

void DisplaceModel::addPenaltyToNodesByAddWeight ( OGRGeometry *  geometry,
double  weight,
double  nbOfDaysClosedPerMonth,
bool  onQ1,
bool  onQ2,
bool  onQ3,
bool  onQ4,
vector< bool >  checkedMonths,
const vector< int > &  checkedVesSizes,
vector< int >  bannedMetiers 
)

◆ basepath()

QString DisplaceModel::basepath ( ) const
inline

◆ calendar()

std::shared_ptr<Calendar> DisplaceModel::calendar ( ) const
inline

◆ checkStatsCollection()

void DisplaceModel::checkStatsCollection ( int  tstep)
protected

◆ clearAllNodes()

void DisplaceModel::clearAllNodes ( )

◆ clearInterestingPop()

void DisplaceModel::clearInterestingPop ( )

◆ clearInterestingPop2()

void DisplaceModel::clearInterestingPop2 ( )

◆ clearStats()

bool DisplaceModel::clearStats ( )

◆ clrInterestingBenthos()

void DisplaceModel::clrInterestingBenthos ( )
inline

◆ clrInterestingFishfarms()

void DisplaceModel::clrInterestingFishfarms ( )
inline

◆ clrInterestingShips()

void DisplaceModel::clrInterestingShips ( )
inline

◆ clrInterestingWindfarms()

void DisplaceModel::clrInterestingWindfarms ( )
inline

◆ collectBathymetry()

void DisplaceModel::collectBathymetry ( int  step,
int  node_idx,
double  bathymetry 
)

◆ collectDissolvedCarbon()

void DisplaceModel::collectDissolvedCarbon ( int  step,
int  node_idx,
double  dissolvedcarbon 
)

◆ collectFishfarmAnnualProfit()

void DisplaceModel::collectFishfarmAnnualProfit ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fishfarm_annualprofit 
)

◆ collectFishfarmCumulNetDischargeN()

void DisplaceModel::collectFishfarmCumulNetDischargeN ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fishfarm_cumulnetdischargeN 
)

◆ collectFishfarmCumulNetDischargeP()

void DisplaceModel::collectFishfarmCumulNetDischargeP ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fishfarm_cumulnetdischargeP 
)

◆ collectFishfarmEggsHarvestedKg()

void DisplaceModel::collectFishfarmEggsHarvestedKg ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  eggs_harvested_kg 
)

◆ collectFishfarmFishHarvestedKg()

void DisplaceModel::collectFishfarmFishHarvestedKg ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fish_harvested_kg 
)

◆ collectFishfarmFishMeanWeight()

void DisplaceModel::collectFishfarmFishMeanWeight ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  meanw_kg 
)

◆ collectFishfarmNetDischargeN()

void DisplaceModel::collectFishfarmNetDischargeN ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fishfarm_netdischargeN 
)

◆ collectFishfarmNetDischargeP()

void DisplaceModel::collectFishfarmNetDischargeP ( int  step,
int  node_idx,
int  farmid,
int  farmtype,
double  fishfarm_netdischargeP 
)

◆ collectNitrogen()

void DisplaceModel::collectNitrogen ( int  step,
int  node_idx,
double  nitrogen 
)

◆ collectNodePopStats()

void DisplaceModel::collectNodePopStats ( int  tstep,
int  node_idx,
const QList< double > &  stats,
const QList< double > &  stats_w,
double  tot,
double  wtot 
)

◆ collectOxygen()

void DisplaceModel::collectOxygen ( int  step,
int  node_idx,
double  oxygen 
)

◆ collectPhosphorus()

void DisplaceModel::collectPhosphorus ( int  step,
int  node_idx,
double  phosphorus 
)

◆ collectPopBenthosBiomass()

void DisplaceModel::collectPopBenthosBiomass ( int  step,
int  node_idx,
int  funcid,
double  benthosbiomass 
)

◆ collectPopBenthosBiomassOverK()

void DisplaceModel::collectPopBenthosBiomassOverK ( int  step,
int  node_idx,
int  funcid,
double  benthosbiomassoverK 
)

◆ collectPopBenthosMeanWeight()

void DisplaceModel::collectPopBenthosMeanWeight ( int  step,
int  node_idx,
int  funcid,
double  meanweight 
)

◆ collectPopBenthosNumber()

void DisplaceModel::collectPopBenthosNumber ( int  step,
int  node_idx,
int  funcid,
double  benthosnumber 
)

◆ collectPopBenthosNumberOverK()

void DisplaceModel::collectPopBenthosNumberOverK ( int  step,
int  node_idx,
int  funcid,
double  benthosnumberoverK 
)

◆ collectPopCumcatches()

void DisplaceModel::collectPopCumcatches ( int  step,
int  node_idx,
double  cumcatches 
)

◆ collectPopCumcatchesPerPop()

void DisplaceModel::collectPopCumcatchesPerPop ( int  step,
int  node_idx,
int  popid,
double  cumcatchesperpop 
)

◆ collectPopCumcatchesWithThreshold()

void DisplaceModel::collectPopCumcatchesWithThreshold ( int  step,
int  node_idx,
double  cumcatches_with_threshold 
)

◆ collectPopCumdiscards()

void DisplaceModel::collectPopCumdiscards ( int  step,
int  node_idx,
double  cumdiscards 
)

◆ collectPopCumdiscardsratio()

void DisplaceModel::collectPopCumdiscardsratio ( int  step,
int  node_idx,
double  cumdiscardsratio 
)

◆ collectPopCumftime()

void DisplaceModel::collectPopCumftime ( int  step,
int  node_idx,
double  cumftime 
)

◆ collectPopCumsubsurfacesweptarea()

void DisplaceModel::collectPopCumsubsurfacesweptarea ( int  step,
int  node_idx,
double  cumsubsurfacesweptarea 
)

◆ collectPopCumsweptarea()

void DisplaceModel::collectPopCumsweptarea ( int  step,
int  node_idx,
double  cumsweptarea 
)

◆ collectPopImpact()

void DisplaceModel::collectPopImpact ( int  step,
int  node_idx,
int  popid,
double  impact 
)

◆ collectPopNbchoked()

void DisplaceModel::collectPopNbchoked ( int  step,
int  node_idx,
double  nbchoked 
)

◆ collectPopTariffs()

void DisplaceModel::collectPopTariffs ( int  step,
int  node_idx,
vector< double >  tariffs 
)

◆ collectSalinity()

void DisplaceModel::collectSalinity ( int  step,
int  node_idx,
double  salinity 
)

◆ collectShipFuelUseHour()

void DisplaceModel::collectShipFuelUseHour ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  fuel_use_h 
)

◆ collectShipfuelUseLitre()

void DisplaceModel::collectShipfuelUseLitre ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  fuel_use_litre 
)

◆ collectShipGHGemission()

void DisplaceModel::collectShipGHGemission ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  GHG_emission 
)

◆ collectShipGHGemissiongPerkW()

void DisplaceModel::collectShipGHGemissiongPerkW ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  GHG_emission_gperkW 
)

◆ collectShipNbTransportedUnits()

void DisplaceModel::collectShipNbTransportedUnits ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  nb_transported_units 
)

◆ collectShipNOxEmission()

void DisplaceModel::collectShipNOxEmission ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  NOx_emission 
)

◆ collectShipNOxEmissiongPerkW()

void DisplaceModel::collectShipNOxEmissiongPerkW ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  NOx_emission_gperkW 
)

◆ collectShippingdensity()

void DisplaceModel::collectShippingdensity ( int  step,
int  node_idx,
double  shippingdensity 
)

◆ collectShipPMEemission()

void DisplaceModel::collectShipPMEemission ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  PME_emission 
)

◆ collectShipPMEemissiongPerkW()

void DisplaceModel::collectShipPMEemissiongPerkW ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  PME_emission_gperkW 
)

◆ collectShipSOxEmission()

void DisplaceModel::collectShipSOxEmission ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  SOx_emission 
)

◆ collectShipSOxEmissionPercentPerTotalFuelmass()

void DisplaceModel::collectShipSOxEmissionPercentPerTotalFuelmass ( int  step,
int  node_idx,
int  shipid,
int  shiptype,
double  SOx_emission_percentpertotalfuelmass 
)

◆ collectSiltfraction()

void DisplaceModel::collectSiltfraction ( int  step,
int  node_idx,
double  siltfraction 
)

◆ collectSST()

void DisplaceModel::collectSST ( int  step,
int  node_idx,
double  sst 
)

◆ collectVesselStats()

void DisplaceModel::collectVesselStats ( int  step,
const VesselStats stats 
)

◆ collectWind()

void DisplaceModel::collectWind ( int  step,
int  node_idx,
double  wind 
)

◆ commitFishfarmsStats()

void DisplaceModel::commitFishfarmsStats ( int  tstep)

◆ commitNodesStatsFromSimu()

void DisplaceModel::commitNodesStatsFromSimu ( int  tstep,
bool  force = false 
)

◆ commitPopBenthosStats()

void DisplaceModel::commitPopBenthosStats ( int  tstep)

◆ commitShipsStats()

void DisplaceModel::commitShipsStats ( int  tstep)

◆ commitVesselsStats()

void DisplaceModel::commitVesselsStats ( int  tstep)

◆ config()

Config DisplaceModel::config ( ) const

◆ createFeaturesLayer()

void DisplaceModel::createFeaturesLayer ( )
protected

◆ edit()

bool DisplaceModel::edit ( QString  modelname)

◆ endCollectingStats()

void DisplaceModel::endCollectingStats ( )

◆ errorParsingStatsFile

void DisplaceModel::errorParsingStatsFile ( QString  _t1)
signal

◆ exportGraph()

bool DisplaceModel::exportGraph ( const QString &  path)

◆ fullpath()

QString DisplaceModel::fullpath ( ) const
inline

◆ getAllNodesWithin()

QList< std::shared_ptr< NodeData > > DisplaceModel::getAllNodesWithin ( const QPointF &  centerpoint,
double  dist_km 
) const

◆ getBenthosCount()

int DisplaceModel::getBenthosCount ( ) const

◆ getBenthosIdx()

int DisplaceModel::getBenthosIdx ( int  benthosId) const

◆ getBenthosList()

const QList<std::shared_ptr<Benthos> >& DisplaceModel::getBenthosList ( ) const
inline

◆ getBenthosPopulationsCount()

int DisplaceModel::getBenthosPopulationsCount ( ) const

◆ getBenthosStatistics()

const BenthosStatsContainer& DisplaceModel::getBenthosStatistics ( )
inline

◆ getCurrentStep()

int DisplaceModel::getCurrentStep ( ) const
inline

◆ getFirmCount()

int DisplaceModel::getFirmCount ( ) const

◆ getFirmId()

QString DisplaceModel::getFirmId ( int  idx) const

◆ getFirmList()

const QList<std::shared_ptr<FirmData> >& DisplaceModel::getFirmList ( ) const
inline

◆ getFishfarmId()

QString DisplaceModel::getFishfarmId ( int  idx) const

◆ getFishfarmList()

const QList<std::shared_ptr<FishfarmData> >& DisplaceModel::getFishfarmList ( ) const
inline

◆ getFishfarmsCount()

int DisplaceModel::getFishfarmsCount ( ) const

◆ getFishfarmsStatistics()

const FishfarmsStatsContainer& DisplaceModel::getFishfarmsStatistics ( )
inline

◆ getFishfarmsTypesList()

std::shared_ptr<InterestingListWithSpecialValues<int> > DisplaceModel::getFishfarmsTypesList ( ) const
inline

◆ getFunctionalGroupsList()

std::shared_ptr<InterestingListWithSpecialValues<int> > DisplaceModel::getFunctionalGroupsList ( ) const
inline

◆ getHarbourData()

const HarbourData& DisplaceModel::getHarbourData ( int  idx) const
inline

◆ getHarbourId()

QString DisplaceModel::getHarbourId ( int  idx) const

◆ getHarbourList()

const QList<std::shared_ptr<HarbourData> >& DisplaceModel::getHarbourList ( ) const
inline

◆ getHarboursCount()

int DisplaceModel::getHarboursCount ( ) const

◆ getHarboursList()

const QList<std::shared_ptr<HarbourData> >& DisplaceModel::getHarboursList ( ) const
inline

◆ getInterestingBenthos()

QList<int> DisplaceModel::getInterestingBenthos ( ) const
inline

◆ getInterestingFishfarms()

QList<int> DisplaceModel::getInterestingFishfarms ( ) const
inline

◆ getInterestingHarbours()

const QList<types::NodeId>& DisplaceModel::getInterestingHarbours ( ) const
inline

◆ getInterestingNations()

const QList<int>& DisplaceModel::getInterestingNations ( ) const
inline

◆ getInterestingPops()

const QList<int>& DisplaceModel::getInterestingPops ( ) const
inline

◆ getInterestingPops2()

const QList<int>& DisplaceModel::getInterestingPops2 ( ) const
inline

◆ getInterestingShips()

QList<int> DisplaceModel::getInterestingShips ( ) const
inline

◆ getInterestingSizes()

const QList<int>& DisplaceModel::getInterestingSizes ( ) const
inline

◆ getInterestingVessels()

const QList<int>& DisplaceModel::getInterestingVessels ( ) const
inline

◆ getInterestingWindfarms()

QList<int> DisplaceModel::getInterestingWindfarms ( ) const
inline

◆ getLastError()

QString DisplaceModel::getLastError ( ) const
inline

◆ getLastStep()

int DisplaceModel::getLastStep ( ) const
inline

◆ getMapDataProvider()

MapsDataProvider & DisplaceModel::getMapDataProvider ( )

◆ getMetiersCount()

int DisplaceModel::getMetiersCount ( ) const
inline

◆ getMetiersList()

const QList<std::shared_ptr<objecttree::MetiersInterest> >& DisplaceModel::getMetiersList ( ) const
inline

◆ getNation()

const NationData& DisplaceModel::getNation ( int  idx) const
inline

◆ getNationsList()

const QList<std::shared_ptr<NationData> >& DisplaceModel::getNationsList ( ) const
inline

◆ getNBBenthosPops()

int DisplaceModel::getNBBenthosPops ( ) const
inline

◆ getNBPops()

int DisplaceModel::getNBPops ( ) const
inline

◆ getNodeId()

QString DisplaceModel::getNodeId ( int  idx) const

◆ getNodesCount()

int DisplaceModel::getNodesCount ( ) const

◆ getNodesList()

const QList<std::shared_ptr<NodeData> >& DisplaceModel::getNodesList ( ) const
inline

◆ getNumFishfarmsTypes()

int DisplaceModel::getNumFishfarmsTypes ( ) const

◆ getNumFuncGroups()

int DisplaceModel::getNumFuncGroups ( ) const

◆ getNumShipsTypes()

int DisplaceModel::getNumShipsTypes ( ) const

◆ getNumWindfarmsTypes()

int DisplaceModel::getNumWindfarmsTypes ( ) const

◆ getOutDir()

QString DisplaceModel::getOutDir ( ) const

◆ getOutputStorage()

std::shared_ptr<SQLiteOutputStorage> DisplaceModel::getOutputStorage ( ) const
inline

◆ getPenaltyCollection()

const QList<displace::NodePenalty> DisplaceModel::getPenaltyCollection ( ) const
inline

◆ getPop()

const PopulationData& DisplaceModel::getPop ( int  idx) const
inline

◆ getPopulationsCount()

int DisplaceModel::getPopulationsCount ( ) const

◆ getPopulationsList()

const QList<std::shared_ptr<PopulationData> >& DisplaceModel::getPopulationsList ( ) const
inline

◆ getShipId()

QString DisplaceModel::getShipId ( int  idx) const

◆ getShipList()

const QList<std::shared_ptr<ShipData> >& DisplaceModel::getShipList ( ) const
inline

◆ getShipsCount()

int DisplaceModel::getShipsCount ( ) const

◆ getShipsStatistics()

const ShipsStatsContainer& DisplaceModel::getShipsStatistics ( )
inline

◆ getShipsTypesList()

std::shared_ptr<InterestingListWithSpecialValues<int> > DisplaceModel::getShipsTypesList ( ) const
inline

◆ getSimulationSteps()

int DisplaceModel::getSimulationSteps ( ) const

◆ getStockNames()

const QMap<QString, int> DisplaceModel::getStockNames ( ) const
inline

◆ getSzGrupsCount()

int DisplaceModel::getSzGrupsCount ( ) const
inline

◆ getUseStaticPaths()

int DisplaceModel::getUseStaticPaths ( ) const

◆ getVessel()

const VesselData& DisplaceModel::getVessel ( int  idx) const
inline

◆ getVesselCount()

int DisplaceModel::getVesselCount ( ) const

◆ getVesselId()

QString DisplaceModel::getVesselId ( int  idx) const

◆ getVesselList()

const QList<std::shared_ptr<VesselData> >& DisplaceModel::getVesselList ( ) const
inline

◆ getVesselsList()

const QList<std::shared_ptr<VesselData> >& DisplaceModel::getVesselsList ( ) const
inline

◆ getWindfarmsTypesList()

std::shared_ptr<InterestingListWithSpecialValues<int> > DisplaceModel::getWindfarmsTypesList ( ) const
inline

◆ getWindmillCount()

int DisplaceModel::getWindmillCount ( ) const

◆ getWindmillId()

QString DisplaceModel::getWindmillId ( int  idx) const

◆ getWindmillList()

const QList<std::shared_ptr<WindmillData> >& DisplaceModel::getWindmillList ( ) const
inline

◆ importHarbours()

bool DisplaceModel::importHarbours ( QList< std::shared_ptr< HarbourData > > &  list)

◆ index()

int DisplaceModel::index ( ) const
inline

◆ initBenthos()

bool DisplaceModel::initBenthos ( )
protected

◆ initFirm()

bool DisplaceModel::initFirm ( )
protected

◆ initFishfarm()

bool DisplaceModel::initFishfarm ( )
protected

◆ initNations()

bool DisplaceModel::initNations ( )
protected

◆ initPopulations()

bool DisplaceModel::initPopulations ( )
protected

◆ initShips()

bool DisplaceModel::initShips ( )
protected

◆ initWindmill()

bool DisplaceModel::initWindmill ( )
protected

◆ inputName()

QString DisplaceModel::inputName ( ) const
inline

◆ isGraphFolderLinked()

bool DisplaceModel::isGraphFolderLinked ( ) const
inline

◆ isInterestingBenthos()

bool DisplaceModel::isInterestingBenthos ( int  n) const
inline

◆ isInterestingFishfarms()

bool DisplaceModel::isInterestingFishfarms ( int  n) const
inline

◆ isInterestingHarb()

bool DisplaceModel::isInterestingHarb ( types::NodeId  n)

◆ isInterestingNations()

bool DisplaceModel::isInterestingNations ( int  n)
inline

◆ isInterestingPop()

bool DisplaceModel::isInterestingPop ( int  n)

◆ isInterestingPop2()

bool DisplaceModel::isInterestingPop2 ( int  n)

◆ isInterestingShips()

bool DisplaceModel::isInterestingShips ( int  n) const
inline

◆ isInterestingSize()

bool DisplaceModel::isInterestingSize ( int  n)

◆ isInterestingSizeAvg()

bool DisplaceModel::isInterestingSizeAvg ( ) const
inline

◆ isInterestingSizeMax()

bool DisplaceModel::isInterestingSizeMax ( ) const
inline

◆ isInterestingSizeMin()

bool DisplaceModel::isInterestingSizeMin ( ) const
inline

◆ isInterestingSizeTotal()

bool DisplaceModel::isInterestingSizeTotal ( ) const
inline

◆ isInterestingVessels()

bool DisplaceModel::isInterestingVessels ( int  n)
inline

◆ isInterestingWindfarms()

bool DisplaceModel::isInterestingWindfarms ( int  n) const
inline

◆ isModelLoaded()

bool DisplaceModel::isModelLoaded ( ) const
inline

◆ isShortestPathFolderLinked()

bool DisplaceModel::isShortestPathFolderLinked ( ) const
inline

◆ linkedDatabase()

QString DisplaceModel::linkedDatabase ( ) const
inline

◆ linkedGraphFolder()

QString DisplaceModel::linkedGraphFolder ( ) const
inline

◆ linkedShortestPathFolder()

QString DisplaceModel::linkedShortestPathFolder ( ) const
inline

◆ linkGraphFolder()

void DisplaceModel::linkGraphFolder ( QString  path)
inline

◆ linkShortestPathFolder()

void DisplaceModel::linkShortestPathFolder ( QString  path)
inline

◆ load()

bool DisplaceModel::load ( QString  path,
ModelType  type 
)

◆ loadDatabase()

bool DisplaceModel::loadDatabase ( QString  path)

◆ loadFishfarmsFromDb()

bool DisplaceModel::loadFishfarmsFromDb ( )
protected

◆ loadGraphs()

bool DisplaceModel::loadGraphs ( )
protected

◆ loadNodes()

bool DisplaceModel::loadNodes ( )
protected

◆ loadNodesFromDb()

bool DisplaceModel::loadNodesFromDb ( )
protected

◆ loadVessels()

bool DisplaceModel::loadVessels ( )
protected

◆ loadVesselsFromDb()

bool DisplaceModel::loadVesselsFromDb ( )
protected

◆ modelType()

ModelType DisplaceModel::modelType ( ) const
inline

◆ outDir()

QString DisplaceModel::outDir ( ) const
inline

◆ outputName()

QString DisplaceModel::outputName ( ) const
inline

◆ outputParsed

void DisplaceModel::outputParsed ( )
signal

◆ parse()

bool DisplaceModel::parse ( const QString &  path,
QString *  basepath,
QString *  inputname,
QString *  outputname 
)
protected

◆ parseOutput

void DisplaceModel::parseOutput ( QString  _t1,
int  _t2 
)
signal

◆ parseOutputStatsFile()

void DisplaceModel::parseOutputStatsFile ( QString  file,
int  tstep 
)

◆ remInterestingBenthos()

void DisplaceModel::remInterestingBenthos ( int  n)
inline

◆ remInterestingFishfarms()

void DisplaceModel::remInterestingFishfarms ( int  n)
inline

◆ remInterestingHarb()

void DisplaceModel::remInterestingHarb ( types::NodeId  n)

remove the pop from the list of interest for pops

◆ remInterestingNations()

void DisplaceModel::remInterestingNations ( int  n)
inline

remove the pop from the list of interest for pops

◆ remInterestingPop()

void DisplaceModel::remInterestingPop ( int  n)

remove the pop from the list of interest for pops

◆ remInterestingPop2()

void DisplaceModel::remInterestingPop2 ( int  n)

◆ remInterestingShips()

void DisplaceModel::remInterestingShips ( int  n)
inline

◆ remInterestingSize()

void DisplaceModel::remInterestingSize ( int  n)

remove the pop from the list of interest for pops

◆ remInterestingVessels()

void DisplaceModel::remInterestingVessels ( int  n)
inline

remove the pop from the list of interest for pops

◆ remInterestingWindfarms()

void DisplaceModel::remInterestingWindfarms ( int  n)
inline

◆ removeNode()

bool DisplaceModel::removeNode ( std::shared_ptr< NodeData node)

◆ retrieveHarbourIdxStatAtStep()

HarbourStats DisplaceModel::retrieveHarbourIdxStatAtStep ( int  idx,
int  step 
)

Retrieve the statistics for a specific Harbour from the DB, or the latest available if it's a live simulation

◆ saveConfig()

bool DisplaceModel::saveConfig ( )

◆ saveScenario()

bool DisplaceModel::saveScenario ( )

◆ saveScenarioAs()

bool DisplaceModel::saveScenarioAs ( const QString &  path)

◆ scenario()

Scenario DisplaceModel::scenario ( ) const

◆ setAreaCodesFromFeature()

void DisplaceModel::setAreaCodesFromFeature ( OGRGeometry *  geometry,
int  code 
)

◆ setBenthosBioFromFeature()

void DisplaceModel::setBenthosBioFromFeature ( OGRGeometry *  geometry,
double  bio,
std::function< void(std::shared_ptr< NodeData >, double)>  func 
)
protected

◆ setBenthosBiomassFromFeature()

void DisplaceModel::setBenthosBiomassFromFeature ( OGRGeometry *  geometry,
double  bio 
)

◆ setBenthosNbFromFeature()

void DisplaceModel::setBenthosNbFromFeature ( OGRGeometry *  geometry,
double  bio,
std::function< void(std::shared_ptr< NodeData >, double)>  func 
)
protected

◆ setBenthosNumberFromFeature()

void DisplaceModel::setBenthosNumberFromFeature ( OGRGeometry *  geometry,
double  nb 
)

◆ setCodeFromFeature()

void DisplaceModel::setCodeFromFeature ( OGRGeometry *  geometry,
int  code,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setConfig()

void DisplaceModel::setConfig ( const Config config)

◆ setCurrentStep()

void DisplaceModel::setCurrentStep ( int  step)

◆ setDissoFromFeature()

void DisplaceModel::setDissoFromFeature ( OGRGeometry *  geometry,
double  sal,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setDissolvedCarbonFromFeature()

void DisplaceModel::setDissolvedCarbonFromFeature ( OGRGeometry *  geometry,
double  dissc 
)

◆ setIndex()

void DisplaceModel::setIndex ( int  idx)
inline

◆ setInterestingBenthos()

void DisplaceModel::setInterestingBenthos ( int  n)
inline

◆ setInterestingFishfarms()

void DisplaceModel::setInterestingFishfarms ( int  n)
inline

◆ setInterestingHarb()

void DisplaceModel::setInterestingHarb ( types::NodeId  n)

insert the pop into the list of interest for pops

◆ setInterestingNations()

void DisplaceModel::setInterestingNations ( int  n)
inline

insert the pop into the list of interest for pops

◆ setInterestingPop()

void DisplaceModel::setInterestingPop ( int  n)

insert the pop into the list of interest for pops

◆ setInterestingPop2()

void DisplaceModel::setInterestingPop2 ( int  n)

◆ setInterestingShips()

void DisplaceModel::setInterestingShips ( int  n)
inline

◆ setInterestingSize()

void DisplaceModel::setInterestingSize ( int  n)

insert the pop into the list of interest for pops

◆ setInterestingSizeAvg()

void DisplaceModel::setInterestingSizeAvg ( bool  b)
inline

◆ setInterestingSizeMax()

void DisplaceModel::setInterestingSizeMax ( bool  b)
inline

◆ setInterestingSizeMin()

void DisplaceModel::setInterestingSizeMin ( bool  b)
inline

◆ setInterestingSizeTotal()

void DisplaceModel::setInterestingSizeTotal ( bool  b)
inline

◆ setInterestingVessels()

void DisplaceModel::setInterestingVessels ( int  n)
inline

◆ setInterestingWindfarms()

void DisplaceModel::setInterestingWindfarms ( int  n)
inline

◆ setLandscapeCodesFromFeature()

void DisplaceModel::setLandscapeCodesFromFeature ( OGRGeometry *  geometry,
int  code 
)

◆ setNitroFromFeature()

void DisplaceModel::setNitroFromFeature ( OGRGeometry *  geometry,
double  sal,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setNitrogenFromFeature()

void DisplaceModel::setNitrogenFromFeature ( OGRGeometry *  geometry,
double  nit 
)

◆ setOutDir()

void DisplaceModel::setOutDir ( const QString &  name)
inline

◆ setOutputName()

void DisplaceModel::setOutputName ( const QString &  name)
inline

◆ setOxyFromFeature()

void DisplaceModel::setOxyFromFeature ( OGRGeometry *  geometry,
double  sal,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setOxygenFromFeature()

void DisplaceModel::setOxygenFromFeature ( OGRGeometry *  geometry,
double  oxygen 
)

◆ setPhosFromFeature()

void DisplaceModel::setPhosFromFeature ( OGRGeometry *  geometry,
double  sal,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setPhosphorusFromFeature()

void DisplaceModel::setPhosphorusFromFeature ( OGRGeometry *  geometry,
double  phos 
)

◆ setSalFromFeature()

void DisplaceModel::setSalFromFeature ( OGRGeometry *  geometry,
double  sal,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setSalinityFromFeature()

void DisplaceModel::setSalinityFromFeature ( OGRGeometry *  geometry,
double  psu 
)

◆ setScenario()

void DisplaceModel::setScenario ( const Scenario scenario)

◆ setSimulationName()

void DisplaceModel::setSimulationName ( const QString &  name)
inline

◆ setSimulationSqlStorage()

void DisplaceModel::setSimulationSqlStorage ( const QString &  path)

◆ setSimulationSteps()

void DisplaceModel::setSimulationSteps ( int  value)

◆ setSSTFromFeature()

void DisplaceModel::setSSTFromFeature ( OGRGeometry *  geometry,
double  sst 
)

◆ setStockNames()

void DisplaceModel::setStockNames ( const QMap< QString, int > &  names)
inline

◆ setTFromFeature()

void DisplaceModel::setTFromFeature ( OGRGeometry *  geometry,
double  t,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setUseStaticPaths()

void DisplaceModel::setUseStaticPaths ( int  value)

◆ setWdFromFeature()

void DisplaceModel::setWdFromFeature ( OGRGeometry *  geometry,
double  wd,
std::function< void(std::shared_ptr< NodeData >, int)>  func 
)
protected

◆ setWindFromFeature()

void DisplaceModel::setWindFromFeature ( OGRGeometry *  geometry,
double  wind 
)

◆ simulationEnded()

void DisplaceModel::simulationEnded ( )

Signals the simulation has ended. Flush all buffers.

◆ simulationName()

QString DisplaceModel::simulationName ( ) const
inline

◆ startCollectingStats()

void DisplaceModel::startCollectingStats ( )

◆ updateFirm()

void DisplaceModel::updateFirm ( int  idx,
float  x,
float  y 
)

◆ updateFishfarm()

void DisplaceModel::updateFishfarm ( int  idx,
float  x,
float  y 
)

◆ updateNodesStatFromSimu()

void DisplaceModel::updateNodesStatFromSimu ( QString  data)

receive a Stats update for nodes from the Simulator

The string passed has the following format: stat,tstep,first,number,data

◆ updateShip()

void DisplaceModel::updateShip ( int  tstep,
int  idx,
float  x,
float  y,
float  course 
)

◆ updateVessel()

void DisplaceModel::updateVessel ( int  tstep,
int  idx,
float  x,
float  y,
float  course,
float  fuel,
int  state 
)

◆ updateWindmill()

void DisplaceModel::updateWindmill ( int  idx,
float  x,
float  y 
)

The documentation for this class was generated from the following files: