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

an extension class for Node More...

#include <nodedata.h>

Inheritance diagram for NodeData:

Classes

struct  Edge
 

Public Types

typedef QVector< std::shared_ptr< Edge > > AdiacencyList
 

Public Member Functions

 NodeData (std::shared_ptr< Node > nd, DisplaceModel *model)
 
virtual ~NodeData ()
 
types::NodeId get_idx_node () const
 
int get_marine_landscape () const
 
vector< int > get_ff_names_on_node () const
 
double get_wind () const
 
double get_sst () const
 
double get_salinity () const
 
double get_Nitrogen () const
 
double get_Phosphorus () const
 
double get_Oxygen () const
 
double get_DissolvedCarbon () const
 
double get_bathymetry () const
 
double get_shippingdensity () const
 
double get_siltfraction () const
 
double get_init_benthos_biomass () const
 
vector< double > get_benthos_biomass_per_funcgr () const
 
double get_init_benthos_number () const
 
vector< double > get_benthos_number_per_funcgr () const
 
double get_init_benthos_meanweight () const
 
vector< double > get_benthos_meanweight_per_funcgr () const
 
void setMarineLandscape (int id)
 
void setWind (double w)
 
void setSST (double t)
 
void setSalinity (double s)
 
void setNitrogen (double n)
 
void setPhosphorus (double p)
 
void setOxygen (double o)
 
void setDissolvedCarbon (double dc)
 
void setBathymetry (double b)
 
void setShippingdensity (double val)
 
void setSiltfraction (double val)
 
void setBenthosBiomass (double val)
 
void setBenthosNumber (double val)
 
void setBenthosMeanweight (double val)
 
int get_code_area () const
 
void setCodeArea (int id)
 
virtual string get_name () const
 
double get_x () const
 
double get_y () const
 
int get_harbour () const
 
bool get_is_harbour () const
 
int get_cumftime () const
 
void set_cumftime (int i)
 
double get_cumsweptarea () const
 
void set_cumsweptarea (int i)
 
double get_cumsubsurfacesweptarea () const
 
void set_cumsubsurfacesweptarea (int i)
 
double get_cumcatches () const
 
double get_cumcatches_with_threshold () const
 
double get_cumdiscards () const
 
double get_cumdiscardsratio () const
 
double get_nbchoked () const
 
void set_cumcatches (double v)
 
void set_cumcatches_with_threshold (int v)
 
void set_cumdiscards (double v)
 
void set_cumdiscardsratio (double v)
 
void set_nbchoked (double v)
 
void set_totNs_per_pop (int pop, int v)
 
void set_totWs_per_pop (int pop, int v)
 
void set_cumcatches_per_pop (int pop, int v)
 
void set_cumdiscards_per_pop (int pop, int v)
 
void set_impact_per_pop (int pop, int v)
 
vector< double > get_tariffs () const
 
void set_tariffs (vector< double > tariffs)
 
const vector< types::NodeId > & get_usual_fgrounds ()
 
void set_usual_fgrounds (vector< types::NodeId > usual_fgrounds)
 
const vector< double > & get_freq_usual_fgrounds ()
 
void set_freq_usual_fgrounds (vector< double > freq_usual_fgrounds)
 
int evaluateAreaType ()
 
DisplaceModelgetModel () const
 
int getPopCount () const
 
int getBenthosPopCount () const
 
void setPop (int pop, double v)
 
void setPopTot (double tot)
 
void setPop (QList< double > v, double tot)
 
boost::optional< double > getPop (int pop) const
 
boost::optional< double > getPopTot () const
 
void setPopW (int pop, double val)
 
void setPopWTot (double tot)
 
void setPopW (QList< double > v, double tot)
 
boost::optional< double > getPopW (int pop) const
 
double getPopWTot () const
 
void setImpact (int pop, double impact)
 
boost::optional< double > getImpact (int pop) const
 
void setCumcatchesPerPop (int pop, double cumcatchesperpop)
 
boost::optional< double > getCumcatchesPerPop (int pop)
 
void setCumdiscardsPerPop (int pop, double cumdiscardsperpop)
 
double getCumdiscardsPerPop (int pop)
 
void setBenthosBiomass (int func, double benthosbiomass)
 
double getBenthosBiomass (int func) const
 
void setBenthosNumber (int func, double benthosnumber)
 
double getBenthosNumber (int func) const
 
void setBenthosMeanweight (int func, double benthosmeanweight)
 
double getBenthosMeanweight (int func) const
 
void setBenthosBiomassOverK (int func, double benthosbiomassoverK)
 
double getBenthosBiomassOverK (int func) const
 
void setBenthosNumberOverK (int func, double benthosnumberoverK)
 
double getBenthosNumberOverK (int func) const
 
void setFishfarmFishMeanWeight (int farmid, double meanw_kg)
 
double getFishfarmFishMeanWeight (int farm) const
 
void setFishfarmFishHarvestedKg (int farmid, double fish_harvested_kg)
 
double getFishfarmFishHarvestedKg (int farm) const
 
void setFishfarmEggsHarvestedKg (int farmid, double eggs_harvested_kg)
 
double getFishfarmEggsHarvestedKg (int farm) const
 
void setFishfarmAnnualProfit (int farmid, double fishfarm_annualprofit)
 
double getFishfarmAnnualProfit (int farm) const
 
void setFishfarmNetDischargeN (int farmid, double fishfarm_netdischargeN)
 
double getFishfarmNetDischargeN (int farm) const
 
void setFishfarmNetDischargeP (int farmid, double fishfarm_netdischargeP)
 
double getFishfarmNetDischargeP (int farm) const
 
void setFishfarmCumulNetDischargeN (int farmid, double fishfarm_cumulnetdischargeN)
 
double getFishfarmCumulNetDischargeN (int farm) const
 
void setFishfarmCumulNetDischargeP (int farmid, double fishfarm_cumulnetdischargeP)
 
double getFishfarmCumulNetDischargeP (int farm) const
 
int getHarbourId () const
 
void setHarbourId (int value)
 
int appendAdiancency (std::shared_ptr< NodeData > target, double weight)
 NodeData::appendAdiancency. More...
 
void removeAdiacencyByIdx (int idx)
 
void removeAdiacencyByTarget (std::shared_ptr< NodeData > target)
 
void removeAllAdiacencies ()
 
int getAdiacencyCount () const
 
std::shared_ptr< EdgegetAdiacencyByIdx (int idx) const
 
double getAdiacencyWeight (int idx) const
 
void setAdiacencyWeight (int idx, double w)
 
void setAreaType (int value)
 
bool isDeleted () const
 
void setDeleted (bool value=true)
 
void setRelevant (bool relevant=true)
 
bool isRelevant () const
 

Public Attributes

std::shared_ptr< NodemNode
 

Detailed Description

an extension class for Node

Member Typedef Documentation

◆ AdiacencyList

typedef QVector<std::shared_ptr<Edge> > NodeData::AdiacencyList

Constructor & Destructor Documentation

◆ NodeData()

NodeData::NodeData ( std::shared_ptr< Node nd,
DisplaceModel model 
)
explicit

◆ ~NodeData()

NodeData::~NodeData ( )
virtualdefault

Member Function Documentation

◆ appendAdiancency()

int NodeData::appendAdiancency ( std::shared_ptr< NodeData target,
double  weight 
)

NodeData::appendAdiancency.

Parameters
to_id
weight
Returns
Index of the appended adiacency

◆ evaluateAreaType()

int NodeData::evaluateAreaType ( )
inline

◆ get_bathymetry()

double NodeData::get_bathymetry ( ) const
inline

◆ get_benthos_biomass_per_funcgr()

vector<double> NodeData::get_benthos_biomass_per_funcgr ( ) const
inline

◆ get_benthos_meanweight_per_funcgr()

vector<double> NodeData::get_benthos_meanweight_per_funcgr ( ) const
inline

◆ get_benthos_number_per_funcgr()

vector<double> NodeData::get_benthos_number_per_funcgr ( ) const
inline

◆ get_code_area()

int NodeData::get_code_area ( ) const
inline

◆ get_cumcatches()

double NodeData::get_cumcatches ( ) const
inline

◆ get_cumcatches_with_threshold()

double NodeData::get_cumcatches_with_threshold ( ) const
inline

◆ get_cumdiscards()

double NodeData::get_cumdiscards ( ) const
inline

◆ get_cumdiscardsratio()

double NodeData::get_cumdiscardsratio ( ) const
inline

◆ get_cumftime()

int NodeData::get_cumftime ( ) const
inline

◆ get_cumsubsurfacesweptarea()

double NodeData::get_cumsubsurfacesweptarea ( ) const
inline

◆ get_cumsweptarea()

double NodeData::get_cumsweptarea ( ) const
inline

◆ get_DissolvedCarbon()

double NodeData::get_DissolvedCarbon ( ) const
inline

◆ get_ff_names_on_node()

vector<int> NodeData::get_ff_names_on_node ( ) const
inline

◆ get_freq_usual_fgrounds()

const vector<double>& NodeData::get_freq_usual_fgrounds ( )
inline

◆ get_harbour()

int NodeData::get_harbour ( ) const
inline

◆ get_idx_node()

types::NodeId NodeData::get_idx_node ( ) const
inline

◆ get_init_benthos_biomass()

double NodeData::get_init_benthos_biomass ( ) const
inline

◆ get_init_benthos_meanweight()

double NodeData::get_init_benthos_meanweight ( ) const
inline

◆ get_init_benthos_number()

double NodeData::get_init_benthos_number ( ) const
inline

◆ get_is_harbour()

bool NodeData::get_is_harbour ( ) const
inline

◆ get_marine_landscape()

int NodeData::get_marine_landscape ( ) const
inline

◆ get_name()

virtual string NodeData::get_name ( ) const
inlinevirtual

◆ get_nbchoked()

double NodeData::get_nbchoked ( ) const
inline

◆ get_Nitrogen()

double NodeData::get_Nitrogen ( ) const
inline

◆ get_Oxygen()

double NodeData::get_Oxygen ( ) const
inline

◆ get_Phosphorus()

double NodeData::get_Phosphorus ( ) const
inline

◆ get_salinity()

double NodeData::get_salinity ( ) const
inline

◆ get_shippingdensity()

double NodeData::get_shippingdensity ( ) const
inline

◆ get_siltfraction()

double NodeData::get_siltfraction ( ) const
inline

◆ get_sst()

double NodeData::get_sst ( ) const
inline

◆ get_tariffs()

vector<double> NodeData::get_tariffs ( ) const
inline

◆ get_usual_fgrounds()

const vector<types::NodeId>& NodeData::get_usual_fgrounds ( )
inline

◆ get_wind()

double NodeData::get_wind ( ) const
inline

◆ get_x()

double NodeData::get_x ( ) const
inline

◆ get_y()

double NodeData::get_y ( ) const
inline

◆ getAdiacencyByIdx()

std::shared_ptr< NodeData::Edge > NodeData::getAdiacencyByIdx ( int  idx) const

◆ getAdiacencyCount()

int NodeData::getAdiacencyCount ( ) const

◆ getAdiacencyWeight()

double NodeData::getAdiacencyWeight ( int  idx) const

◆ getBenthosBiomass()

double NodeData::getBenthosBiomass ( int  func) const

◆ getBenthosBiomassOverK()

double NodeData::getBenthosBiomassOverK ( int  func) const

◆ getBenthosMeanweight()

double NodeData::getBenthosMeanweight ( int  func) const

◆ getBenthosNumber()

double NodeData::getBenthosNumber ( int  func) const

◆ getBenthosNumberOverK()

double NodeData::getBenthosNumberOverK ( int  func) const

◆ getBenthosPopCount()

int NodeData::getBenthosPopCount ( ) const

◆ getCumcatchesPerPop()

boost::optional< double > NodeData::getCumcatchesPerPop ( int  pop)

◆ getCumdiscardsPerPop()

double NodeData::getCumdiscardsPerPop ( int  pop)

◆ getFishfarmAnnualProfit()

double NodeData::getFishfarmAnnualProfit ( int  farm) const
inline

◆ getFishfarmCumulNetDischargeN()

double NodeData::getFishfarmCumulNetDischargeN ( int  farm) const
inline

◆ getFishfarmCumulNetDischargeP()

double NodeData::getFishfarmCumulNetDischargeP ( int  farm) const
inline

◆ getFishfarmEggsHarvestedKg()

double NodeData::getFishfarmEggsHarvestedKg ( int  farm) const
inline

◆ getFishfarmFishHarvestedKg()

double NodeData::getFishfarmFishHarvestedKg ( int  farm) const
inline

◆ getFishfarmFishMeanWeight()

double NodeData::getFishfarmFishMeanWeight ( int  farm) const
inline

◆ getFishfarmNetDischargeN()

double NodeData::getFishfarmNetDischargeN ( int  farm) const
inline

◆ getFishfarmNetDischargeP()

double NodeData::getFishfarmNetDischargeP ( int  farm) const
inline

◆ getHarbourId()

int NodeData::getHarbourId ( ) const

◆ getImpact()

boost::optional< double > NodeData::getImpact ( int  pop) const

◆ getModel()

DisplaceModel* NodeData::getModel ( ) const
inline

◆ getPop()

boost::optional< double > NodeData::getPop ( int  pop) const

◆ getPopCount()

int NodeData::getPopCount ( ) const

◆ getPopTot()

boost::optional< double > NodeData::getPopTot ( ) const

◆ getPopW()

boost::optional< double > NodeData::getPopW ( int  pop) const

◆ getPopWTot()

double NodeData::getPopWTot ( ) const

◆ isDeleted()

bool NodeData::isDeleted ( ) const

◆ isRelevant()

bool NodeData::isRelevant ( ) const
inline

◆ removeAdiacencyByIdx()

void NodeData::removeAdiacencyByIdx ( int  idx)

◆ removeAdiacencyByTarget()

void NodeData::removeAdiacencyByTarget ( std::shared_ptr< NodeData target)

◆ removeAllAdiacencies()

void NodeData::removeAllAdiacencies ( )

◆ set_cumcatches()

void NodeData::set_cumcatches ( double  v)
inline

◆ set_cumcatches_per_pop()

void NodeData::set_cumcatches_per_pop ( int  pop,
int  v 
)
inline

◆ set_cumcatches_with_threshold()

void NodeData::set_cumcatches_with_threshold ( int  v)
inline

◆ set_cumdiscards()

void NodeData::set_cumdiscards ( double  v)
inline

◆ set_cumdiscards_per_pop()

void NodeData::set_cumdiscards_per_pop ( int  pop,
int  v 
)
inline

◆ set_cumdiscardsratio()

void NodeData::set_cumdiscardsratio ( double  v)
inline

◆ set_cumftime()

void NodeData::set_cumftime ( int  i)
inline

◆ set_cumsubsurfacesweptarea()

void NodeData::set_cumsubsurfacesweptarea ( int  i)
inline

◆ set_cumsweptarea()

void NodeData::set_cumsweptarea ( int  i)
inline

◆ set_freq_usual_fgrounds()

void NodeData::set_freq_usual_fgrounds ( vector< double >  freq_usual_fgrounds)
inline

◆ set_impact_per_pop()

void NodeData::set_impact_per_pop ( int  pop,
int  v 
)
inline

◆ set_nbchoked()

void NodeData::set_nbchoked ( double  v)
inline

◆ set_tariffs()

void NodeData::set_tariffs ( vector< double >  tariffs)
inline

◆ set_totNs_per_pop()

void NodeData::set_totNs_per_pop ( int  pop,
int  v 
)
inline

◆ set_totWs_per_pop()

void NodeData::set_totWs_per_pop ( int  pop,
int  v 
)
inline

◆ set_usual_fgrounds()

void NodeData::set_usual_fgrounds ( vector< types::NodeId usual_fgrounds)
inline

◆ setAdiacencyWeight()

void NodeData::setAdiacencyWeight ( int  idx,
double  w 
)

◆ setAreaType()

void NodeData::setAreaType ( int  value)

◆ setBathymetry()

void NodeData::setBathymetry ( double  b)
inline

◆ setBenthosBiomass() [1/2]

void NodeData::setBenthosBiomass ( double  val)
inline

◆ setBenthosBiomass() [2/2]

void NodeData::setBenthosBiomass ( int  func,
double  benthosbiomass 
)

◆ setBenthosBiomassOverK()

void NodeData::setBenthosBiomassOverK ( int  func,
double  benthosbiomassoverK 
)

◆ setBenthosMeanweight() [1/2]

void NodeData::setBenthosMeanweight ( double  val)
inline

◆ setBenthosMeanweight() [2/2]

void NodeData::setBenthosMeanweight ( int  func,
double  benthosmeanweight 
)

◆ setBenthosNumber() [1/2]

void NodeData::setBenthosNumber ( double  val)
inline

◆ setBenthosNumber() [2/2]

void NodeData::setBenthosNumber ( int  func,
double  benthosnumber 
)

◆ setBenthosNumberOverK()

void NodeData::setBenthosNumberOverK ( int  func,
double  benthosnumberoverK 
)

◆ setCodeArea()

void NodeData::setCodeArea ( int  id)
inline

◆ setCumcatchesPerPop()

void NodeData::setCumcatchesPerPop ( int  pop,
double  cumcatchesperpop 
)

◆ setCumdiscardsPerPop()

void NodeData::setCumdiscardsPerPop ( int  pop,
double  cumdiscardsperpop 
)

◆ setDeleted()

void NodeData::setDeleted ( bool  value = true)

◆ setDissolvedCarbon()

void NodeData::setDissolvedCarbon ( double  dc)
inline

◆ setFishfarmAnnualProfit()

void NodeData::setFishfarmAnnualProfit ( int  farmid,
double  fishfarm_annualprofit 
)

◆ setFishfarmCumulNetDischargeN()

void NodeData::setFishfarmCumulNetDischargeN ( int  farmid,
double  fishfarm_cumulnetdischargeN 
)

◆ setFishfarmCumulNetDischargeP()

void NodeData::setFishfarmCumulNetDischargeP ( int  farmid,
double  fishfarm_cumulnetdischargeP 
)

◆ setFishfarmEggsHarvestedKg()

void NodeData::setFishfarmEggsHarvestedKg ( int  farmid,
double  eggs_harvested_kg 
)

◆ setFishfarmFishHarvestedKg()

void NodeData::setFishfarmFishHarvestedKg ( int  farmid,
double  fish_harvested_kg 
)

◆ setFishfarmFishMeanWeight()

void NodeData::setFishfarmFishMeanWeight ( int  farmid,
double  meanw_kg 
)

◆ setFishfarmNetDischargeN()

void NodeData::setFishfarmNetDischargeN ( int  farmid,
double  fishfarm_netdischargeN 
)

◆ setFishfarmNetDischargeP()

void NodeData::setFishfarmNetDischargeP ( int  farmid,
double  fishfarm_netdischargeP 
)

◆ setHarbourId()

void NodeData::setHarbourId ( int  value)

◆ setImpact()

void NodeData::setImpact ( int  pop,
double  impact 
)

◆ setMarineLandscape()

void NodeData::setMarineLandscape ( int  id)
inline

◆ setNitrogen()

void NodeData::setNitrogen ( double  n)
inline

◆ setOxygen()

void NodeData::setOxygen ( double  o)
inline

◆ setPhosphorus()

void NodeData::setPhosphorus ( double  p)
inline

◆ setPop() [1/2]

void NodeData::setPop ( int  pop,
double  v 
)

◆ setPop() [2/2]

void NodeData::setPop ( QList< double >  v,
double  tot 
)

◆ setPopTot()

void NodeData::setPopTot ( double  tot)

◆ setPopW() [1/2]

void NodeData::setPopW ( int  pop,
double  val 
)

◆ setPopW() [2/2]

void NodeData::setPopW ( QList< double >  v,
double  tot 
)

◆ setPopWTot()

void NodeData::setPopWTot ( double  tot)

◆ setRelevant()

void NodeData::setRelevant ( bool  relevant = true)
inline

◆ setSalinity()

void NodeData::setSalinity ( double  s)
inline

◆ setShippingdensity()

void NodeData::setShippingdensity ( double  val)
inline

◆ setSiltfraction()

void NodeData::setSiltfraction ( double  val)
inline

◆ setSST()

void NodeData::setSST ( double  t)
inline

◆ setWind()

void NodeData::setWind ( double  w)
inline

Member Data Documentation

◆ mNode

std::shared_ptr<Node> NodeData::mNode

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