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

#include <vesselslogliketable.h>

Inheritance diagram for VesselsLoglikeTable:

Classes

struct  Impl
 
struct  Log
 

Public Member Functions

 VesselsLoglikeTable (std::shared_ptr< sqlite::SQLiteStorage > db, std::string name)
 
 ~VesselsLoglikeTable () noexcept
 
void dropAndCreate ()
 
size_t insertLog (const Log &log)
 

Public Attributes

const FieldDef< FieldType::Integer > fldRowId = makeFieldDef("RowId", FieldType::Integer()).primaryKey()
 
const FieldDef< FieldType::Integer > fldId = makeFieldDef("Id", FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldTStepDep = makeFieldDef("TStepDep",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldNodeId = makeFieldDef("NodeId",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldMetierId = makeFieldDef("metierId",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Integer > fldLastHarbour = makeFieldDef("lastHarbour",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Real > fldRevenueAV = makeFieldDef("revenueAV",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > revenueExAV = makeFieldDef("revenueExAV",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > timeAtSea = makeFieldDef("timeAtSea",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Integer > reasonToGoBack = makeFieldDef("reasonToGoBack",FieldType::Integer()).notNull()
 
const FieldDef< FieldType::Real > cumFuelCons = makeFieldDef("cumFuelCons",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > vpuf = makeFieldDef("vpuf",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > fuelCost = makeFieldDef("fuelCost",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > gav = makeFieldDef("gav",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > sweptArea = makeFieldDef("sweptArea",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > revenuePerSweptArea = makeFieldDef("revenuePerSweptArea",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > GVA = makeFieldDef("GVA",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > GVAPerRevenue = makeFieldDef("GVAPerRevenue",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > LabourSurplus = makeFieldDef("LabourSurplus",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > GrossProfit = makeFieldDef("GrossProfit",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > NetProfit = makeFieldDef("NetProfit",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > NetProfitMargin = makeFieldDef("NetProfitMargin",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > RoFTA = makeFieldDef("RoFTA",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > GVAPerFTE = makeFieldDef("GVAPerFTE",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > BER = makeFieldDef("BER",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > CRBER = makeFieldDef("CRBER",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Real > NetPresentValue = makeFieldDef("NetPresentValue",FieldType::Real()).notNull()
 
const FieldDef< FieldType::Integer > numTrips = makeFieldDef("numTrips",FieldType::Integer()).notNull()
 

Constructor & Destructor Documentation

◆ VesselsLoglikeTable()

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

◆ ~VesselsLoglikeTable()

VesselsLoglikeTable::~VesselsLoglikeTable ( )
defaultnoexcept

Member Function Documentation

◆ dropAndCreate()

void VesselsLoglikeTable::dropAndCreate ( )

◆ insertLog()

size_t VesselsLoglikeTable::insertLog ( const Log log)

Member Data Documentation

◆ BER

const FieldDef<FieldType::Real> VesselsLoglikeTable::BER = makeFieldDef("BER",FieldType::Real()).notNull()

◆ CRBER

const FieldDef<FieldType::Real> VesselsLoglikeTable::CRBER = makeFieldDef("CRBER",FieldType::Real()).notNull()

◆ cumFuelCons

const FieldDef<FieldType::Real> VesselsLoglikeTable::cumFuelCons = makeFieldDef("cumFuelCons",FieldType::Real()).notNull()

◆ fldId

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldId = makeFieldDef("Id", FieldType::Integer()).notNull()

◆ fldLastHarbour

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldLastHarbour = makeFieldDef("lastHarbour",FieldType::Integer()).notNull()

◆ fldMetierId

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldMetierId = makeFieldDef("metierId",FieldType::Integer()).notNull()

◆ fldNodeId

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldNodeId = makeFieldDef("NodeId",FieldType::Integer()).notNull()

◆ fldRevenueAV

const FieldDef<FieldType::Real> VesselsLoglikeTable::fldRevenueAV = makeFieldDef("revenueAV",FieldType::Real()).notNull()

◆ fldRowId

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldRowId = makeFieldDef("RowId", FieldType::Integer()).primaryKey()

◆ fldTStep

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

◆ fldTStepDep

const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldTStepDep = makeFieldDef("TStepDep",FieldType::Integer()).notNull()

◆ fuelCost

const FieldDef<FieldType::Real> VesselsLoglikeTable::fuelCost = makeFieldDef("fuelCost",FieldType::Real()).notNull()

◆ gav

const FieldDef<FieldType::Real> VesselsLoglikeTable::gav = makeFieldDef("gav",FieldType::Real()).notNull()

◆ GrossProfit

const FieldDef<FieldType::Real> VesselsLoglikeTable::GrossProfit = makeFieldDef("GrossProfit",FieldType::Real()).notNull()

◆ GVA

const FieldDef<FieldType::Real> VesselsLoglikeTable::GVA = makeFieldDef("GVA",FieldType::Real()).notNull()

◆ GVAPerFTE

const FieldDef<FieldType::Real> VesselsLoglikeTable::GVAPerFTE = makeFieldDef("GVAPerFTE",FieldType::Real()).notNull()

◆ GVAPerRevenue

const FieldDef<FieldType::Real> VesselsLoglikeTable::GVAPerRevenue = makeFieldDef("GVAPerRevenue",FieldType::Real()).notNull()

◆ LabourSurplus

const FieldDef<FieldType::Real> VesselsLoglikeTable::LabourSurplus = makeFieldDef("LabourSurplus",FieldType::Real()).notNull()

◆ NetPresentValue

const FieldDef<FieldType::Real> VesselsLoglikeTable::NetPresentValue = makeFieldDef("NetPresentValue",FieldType::Real()).notNull()

◆ NetProfit

const FieldDef<FieldType::Real> VesselsLoglikeTable::NetProfit = makeFieldDef("NetProfit",FieldType::Real()).notNull()

◆ NetProfitMargin

const FieldDef<FieldType::Real> VesselsLoglikeTable::NetProfitMargin = makeFieldDef("NetProfitMargin",FieldType::Real()).notNull()

◆ numTrips

const FieldDef<FieldType::Integer> VesselsLoglikeTable::numTrips = makeFieldDef("numTrips",FieldType::Integer()).notNull()

◆ reasonToGoBack

const FieldDef<FieldType::Integer> VesselsLoglikeTable::reasonToGoBack = makeFieldDef("reasonToGoBack",FieldType::Integer()).notNull()

◆ revenueExAV

const FieldDef<FieldType::Real> VesselsLoglikeTable::revenueExAV = makeFieldDef("revenueExAV",FieldType::Real()).notNull()

◆ revenuePerSweptArea

const FieldDef<FieldType::Real> VesselsLoglikeTable::revenuePerSweptArea = makeFieldDef("revenuePerSweptArea",FieldType::Real()).notNull()

◆ RoFTA

const FieldDef<FieldType::Real> VesselsLoglikeTable::RoFTA = makeFieldDef("RoFTA",FieldType::Real()).notNull()

◆ sweptArea

const FieldDef<FieldType::Real> VesselsLoglikeTable::sweptArea = makeFieldDef("sweptArea",FieldType::Real()).notNull()

◆ timeAtSea

const FieldDef<FieldType::Real> VesselsLoglikeTable::timeAtSea = makeFieldDef("timeAtSea",FieldType::Real()).notNull()

◆ vpuf

const FieldDef<FieldType::Real> VesselsLoglikeTable::vpuf = makeFieldDef("vpuf",FieldType::Real()).notNull()

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