4#include "SeapodymCohortAbstract.h"
7#ifndef SEAPODYM_COHORT_FAKE
8#define SEAPODYM_COHORT_FAKE
22 long long milliseconds_step;
28 std::vector<double> data;
37 SeapodymCohortFake(
int milliseconds_step, std::size_t data_size,
int id) : milliseconds_step(milliseconds_step), id(id) {
38 this->data.resize(data_size);
84 void save(
const std::string& restartFile)
const;
Abstract class for a cohort object. Specific implementation must derive from this class and override ...
Definition SeapodymCohortAbstract.h:13
std::vector< double > getArrayFromState() const
Serialize the state.
Definition SeapodymCohortFake.cpp:40
void setStateFromArray(const std::vector< double > &array)
Definition SeapodymCohortFake.cpp:35
void save(const std::string &restartFile) const
Save the current state to a file.
Definition SeapodymCohortFake.cpp:46
void stepForward(const dvar_vector ¶mVector)
Step forward.
Definition SeapodymCohortFake.cpp:30
SeapodymCohortFake(int milliseconds_step, std::size_t data_size, int id)
Constructor.
Definition SeapodymCohortFake.h:37