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

#include <statscontroller.h>

Inheritance diagram for StatsController:

Public Types

enum  StatType {
  Populations, Nations, Vessels, Harbours,
  Metiers
}
 

Public Member Functions

 StatsController (QObject *parent=0)
 
void setPopulationPlot (PlotWidget *plot, GraphInteractionController *controller)
 
void setHarboursPlot (PlotWidget *plot)
 
void setMetiersPlot (PlotWidget *plot)
 
void setBenthosPlot (PlotWidget *plot, GraphInteractionController *controller)
 
void setFishfarmsPlot (PlotWidget *plot, GraphInteractionController *controller=nullptr)
 
void setWindfarmsPlot (PlotWidget *plot, GraphInteractionController *controller=nullptr)
 
void setShipsPlot (PlotWidget *plot, GraphInteractionController *controller=nullptr)
 
void setNationsStatsPlot (PlotWidget *plot, GraphInteractionController *controller=nullptr)
 
void setVesselsStatsPlot (PlotWidget *plot, GraphInteractionController *controller=nullptr)
 
void updateStats (DisplaceModel *model)
 
void setPopulationStat (displace::plot::PopulationStat stat)
 
displace::plot::PopulationStat getPopulationStat () const
 
void setNationsStat (displace::plot::NationsStat stat)
 
displace::plot::NationsStat getNationsStat () const
 
void setVesselsStat (displace::plot::VesselsStat stat)
 
displace::plot::VesselsStat getVesselsStat () const
 
void setHarbourStat (displace::plot::HarboursStat stat)
 
displace::plot::HarboursStat getHarboursStat () const
 
void setMetiersStat (displace::plot::MetiersStat stat)
 
displace::plot::MetiersStat getMetiersStat () const
 
void setBenthosStat (displace::plot::BenthosStat stat)
 
displace::plot::BenthosStat getBenthosStat () const
 
void setFishfarmsStat (displace::plot::FishfarmsStat stat)
 
displace::plot::FishfarmsStat getFishfarmsStat () const
 
void setWindfarmsStat (displace::plot::WindfarmsStat stat)
 
displace::plot::WindfarmsStat getWindfarmsStat () const
 
void setShipsStat (displace::plot::ShipsStat stat)
 
displace::plot::ShipsStat getShipsStat () const
 
void setCurrentTimeStep (double t)
 
void plotGraph (DisplaceModel *model, StatType st, int subtype, QCustomPlot *plot=nullptr)
 

Protected Member Functions

void updatePopulationStats (DisplaceModel *model, displace::plot::PopulationStat popStat, QCustomPlot *plot)
 
void updateNationStats (DisplaceModel *model, displace::plot::NationsStat mSelectedNationsStat, QCustomPlot *plot)
 
void updateVesselStats (DisplaceModel *model, displace::plot::VesselsStat mSelectedVesselsStat, QCustomPlot *plot)
 
void updateHarboursStats (DisplaceModel *model, displace::plot::HarboursStat stat, QCustomPlot *plot)
 
void updateMetiersStats (DisplaceModel *model, displace::plot::MetiersStat stat, QCustomPlot *plot)
 
void updateBenthosStats (DisplaceModel *model, displace::plot::BenthosStat stat)
 
void updateFishfarmsStats (DisplaceModel *model, displace::plot::FishfarmsStat stat)
 
void updateWindfarmsStats (DisplaceModel *model, displace::plot::WindfarmsStat stat)
 
void updateShipsStats (DisplaceModel *model, displace::plot::ShipsStat stat)
 

Member Enumeration Documentation

◆ StatType

Enumerator
Populations 
Nations 
Vessels 
Harbours 
Metiers 

Constructor & Destructor Documentation

◆ StatsController()

StatsController::StatsController ( QObject *  parent = 0)
explicit

Member Function Documentation

◆ getBenthosStat()

displace::plot::BenthosStat StatsController::getBenthosStat ( ) const
inline

◆ getFishfarmsStat()

displace::plot::FishfarmsStat StatsController::getFishfarmsStat ( ) const
inline

◆ getHarboursStat()

displace::plot::HarboursStat StatsController::getHarboursStat ( ) const
inline

◆ getMetiersStat()

displace::plot::MetiersStat StatsController::getMetiersStat ( ) const
inline

◆ getNationsStat()

displace::plot::NationsStat StatsController::getNationsStat ( ) const
inline

◆ getPopulationStat()

displace::plot::PopulationStat StatsController::getPopulationStat ( ) const
inline

◆ getShipsStat()

displace::plot::ShipsStat StatsController::getShipsStat ( ) const
inline

◆ getVesselsStat()

displace::plot::VesselsStat StatsController::getVesselsStat ( ) const
inline

◆ getWindfarmsStat()

displace::plot::WindfarmsStat StatsController::getWindfarmsStat ( ) const
inline

◆ plotGraph()

void StatsController::plotGraph ( DisplaceModel model,
StatsController::StatType  st,
int  subtype,
QCustomPlot plot = nullptr 
)

◆ setBenthosPlot()

void StatsController::setBenthosPlot ( PlotWidget plot,
GraphInteractionController controller 
)

◆ setBenthosStat()

void StatsController::setBenthosStat ( displace::plot::BenthosStat  stat)

◆ setCurrentTimeStep()

void StatsController::setCurrentTimeStep ( double  t)

◆ setFishfarmsPlot()

void StatsController::setFishfarmsPlot ( PlotWidget plot,
GraphInteractionController controller = nullptr 
)

◆ setFishfarmsStat()

void StatsController::setFishfarmsStat ( displace::plot::FishfarmsStat  stat)

◆ setHarboursPlot()

void StatsController::setHarboursPlot ( PlotWidget plot)

◆ setHarbourStat()

void StatsController::setHarbourStat ( displace::plot::HarboursStat  stat)

◆ setMetiersPlot()

void StatsController::setMetiersPlot ( PlotWidget plot)

◆ setMetiersStat()

void StatsController::setMetiersStat ( displace::plot::MetiersStat  stat)

◆ setNationsStat()

void StatsController::setNationsStat ( displace::plot::NationsStat  stat)

◆ setNationsStatsPlot()

void StatsController::setNationsStatsPlot ( PlotWidget plot,
GraphInteractionController controller = nullptr 
)

◆ setPopulationPlot()

void StatsController::setPopulationPlot ( PlotWidget plot,
GraphInteractionController controller 
)

◆ setPopulationStat()

void StatsController::setPopulationStat ( displace::plot::PopulationStat  stat)

◆ setShipsPlot()

void StatsController::setShipsPlot ( PlotWidget plot,
GraphInteractionController controller = nullptr 
)

◆ setShipsStat()

void StatsController::setShipsStat ( displace::plot::ShipsStat  stat)

◆ setVesselsStat()

void StatsController::setVesselsStat ( displace::plot::VesselsStat  stat)

◆ setVesselsStatsPlot()

void StatsController::setVesselsStatsPlot ( PlotWidget plot,
GraphInteractionController controller = nullptr 
)

◆ setWindfarmsPlot()

void StatsController::setWindfarmsPlot ( PlotWidget plot,
GraphInteractionController controller = nullptr 
)

◆ setWindfarmsStat()

void StatsController::setWindfarmsStat ( displace::plot::WindfarmsStat  stat)

◆ updateBenthosStats()

void StatsController::updateBenthosStats ( DisplaceModel model,
displace::plot::BenthosStat  stat 
)
protected

◆ updateFishfarmsStats()

void StatsController::updateFishfarmsStats ( DisplaceModel model,
displace::plot::FishfarmsStat  stat 
)
protected

◆ updateHarboursStats()

void StatsController::updateHarboursStats ( DisplaceModel model,
displace::plot::HarboursStat  stat,
QCustomPlot plot 
)
protected

◆ updateMetiersStats()

void StatsController::updateMetiersStats ( DisplaceModel model,
displace::plot::MetiersStat  stat,
QCustomPlot plot 
)
protected

◆ updateNationStats()

void StatsController::updateNationStats ( DisplaceModel model,
displace::plot::NationsStat  mSelectedNationsStat,
QCustomPlot plot 
)
protected

◆ updatePopulationStats()

void StatsController::updatePopulationStats ( DisplaceModel model,
displace::plot::PopulationStat  popStat,
QCustomPlot plot 
)
protected

◆ updateShipsStats()

void StatsController::updateShipsStats ( DisplaceModel model,
displace::plot::ShipsStat  stat 
)
protected

◆ updateStats()

void StatsController::updateStats ( DisplaceModel model)

◆ updateVesselStats()

void StatsController::updateVesselStats ( DisplaceModel model,
displace::plot::VesselsStat  mSelectedVesselsStat,
QCustomPlot plot 
)
protected

◆ updateWindfarmsStats()

void StatsController::updateWindfarmsStats ( DisplaceModel model,
displace::plot::WindfarmsStat  stat 
)
protected

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