DISPLACE
1.0
A spatial model of fisheries to help sustainable fishing and maritime spatial planning
|
#include <vesselslogliketable.h>
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() |
VesselsLoglikeTable::VesselsLoglikeTable | ( | std::shared_ptr< sqlite::SQLiteStorage > | db, |
std::string | name | ||
) |
|
defaultnoexcept |
void VesselsLoglikeTable::dropAndCreate | ( | ) |
size_t VesselsLoglikeTable::insertLog | ( | const Log & | log | ) |
const FieldDef<FieldType::Real> VesselsLoglikeTable::BER = makeFieldDef("BER",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::CRBER = makeFieldDef("CRBER",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::cumFuelCons = makeFieldDef("cumFuelCons",FieldType::Real()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldId = makeFieldDef("Id", FieldType::Integer()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldLastHarbour = makeFieldDef("lastHarbour",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldMetierId = makeFieldDef("metierId",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldNodeId = makeFieldDef("NodeId",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::fldRevenueAV = makeFieldDef("revenueAV",FieldType::Real()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldRowId = makeFieldDef("RowId", FieldType::Integer()).primaryKey() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldTStep = makeFieldDef("TStep",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::fldTStepDep = makeFieldDef("TStepDep",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::fuelCost = makeFieldDef("fuelCost",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::gav = makeFieldDef("gav",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::GrossProfit = makeFieldDef("GrossProfit",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::GVA = makeFieldDef("GVA",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::GVAPerFTE = makeFieldDef("GVAPerFTE",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::GVAPerRevenue = makeFieldDef("GVAPerRevenue",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::LabourSurplus = makeFieldDef("LabourSurplus",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::NetPresentValue = makeFieldDef("NetPresentValue",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::NetProfit = makeFieldDef("NetProfit",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::NetProfitMargin = makeFieldDef("NetProfitMargin",FieldType::Real()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::numTrips = makeFieldDef("numTrips",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Integer> VesselsLoglikeTable::reasonToGoBack = makeFieldDef("reasonToGoBack",FieldType::Integer()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::revenueExAV = makeFieldDef("revenueExAV",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::revenuePerSweptArea = makeFieldDef("revenuePerSweptArea",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::RoFTA = makeFieldDef("RoFTA",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::sweptArea = makeFieldDef("sweptArea",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::timeAtSea = makeFieldDef("timeAtSea",FieldType::Real()).notNull() |
const FieldDef<FieldType::Real> VesselsLoglikeTable::vpuf = makeFieldDef("vpuf",FieldType::Real()).notNull() |