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

#include <windfarmstable.h>

Inheritance diagram for WindfarmsTable:

Classes

struct  Impl
 
struct  StatData
 

Public Types

enum  StatType { StatType::Kwh, StatType::KwhProduction }
 
enum  Aggreg { Aggreg::Sum, Aggreg::Min, Aggreg::Max, Aggreg::Avg }
 

Public Member Functions

 WindfarmsTable (std::shared_ptr< SQLiteStorage > db, std::string name)
 
 ~WindfarmsTable () noexcept
 
void dropAndCreate ()
 
void exportWindmillData (Windmill *windmill, int tstep)
 
StatData getStatData (StatType, Aggreg, int wfType)
 
StatData getStatData (StatType, Aggreg)
 

Public Attributes

const FieldDef< FieldType::Integer > fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldWindfarmId = makeFieldDef("WindarmId",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldWindfarmType = makeFieldDef("WindfarmType",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Real > fldKwh = makeFieldDef("Kwh", FieldType::Real())
 
const FieldDef< FieldType::Real > fldKwhProduction = makeFieldDef("KwhProduction", FieldType::Real())
 

Member Enumeration Documentation

◆ Aggreg

Enumerator
Sum 
Min 
Max 
Avg 

◆ StatType

Enumerator
Kwh 
KwhProduction 

Constructor & Destructor Documentation

◆ WindfarmsTable()

WindfarmsTable::WindfarmsTable ( std::shared_ptr< SQLiteStorage >  db,
std::string  name 
)

◆ ~WindfarmsTable()

WindfarmsTable::~WindfarmsTable ( )
defaultnoexcept

Member Function Documentation

◆ dropAndCreate()

void WindfarmsTable::dropAndCreate ( )

◆ exportWindmillData()

void WindfarmsTable::exportWindmillData ( Windmill windmill,
int  tstep 
)

◆ getStatData() [1/2]

WindfarmsTable::StatData WindfarmsTable::getStatData ( WindfarmsTable::StatType  stattype,
WindfarmsTable::Aggreg  aggreg,
int  wfType 
)

◆ getStatData() [2/2]

WindfarmsTable::StatData WindfarmsTable::getStatData ( WindfarmsTable::StatType  stattype,
WindfarmsTable::Aggreg  aggreg 
)

Member Data Documentation

◆ fldKwh

const FieldDef<FieldType::Real> WindfarmsTable::fldKwh = makeFieldDef("Kwh", FieldType::Real())

◆ fldKwhProduction

const FieldDef<FieldType::Real> WindfarmsTable::fldKwhProduction = makeFieldDef("KwhProduction", FieldType::Real())

◆ fldTStep

const FieldDef<FieldType::Integer> WindfarmsTable::fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull()

◆ fldWindfarmId

const FieldDef<FieldType::Integer> WindfarmsTable::fldWindfarmId = makeFieldDef("WindarmId",FieldType::Integer()).notNull()

◆ fldWindfarmType

const FieldDef<FieldType::Integer> WindfarmsTable::fldWindfarmType = makeFieldDef("WindfarmType",FieldType::Integer()).notNull()

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