21#include "libopenm/common/xz_crc64.h"
64 void writeOutputTable(
const char * i_name,
size_t i_size, forward_list<unique_ptr<
double[]> > & io_accValues)
override;
77 virtual void writeDbMicrodata(
int i_entityKind, uint64_t i_microdataKey,
const void * i_entityThis)
override;
80 virtual void writeCsvMicrodata(
int i_entityKind, uint64_t i_microdataKey,
int i_eventId,
bool i_isSameEntity,
const void * i_entityThis)
override;
105 TableDoneItem(
const TableDicRow & i_tableRow) : tableId(i_tableRow.tableId), isDone(false)
108 vector<TableDoneItem> tableDoneVec;
111 ModelBase(
const ModelBase & i_model) =
delete;
112 ModelBase & operator=(
const ModelBase & i_model) =
delete;
model sub-value run base class
Definition: model.h:32
int tableIdByName(const char *i_name) const override
return id of output table by name
Definition: model.h:58
int subValueCount(void) const noexcept override
number of sub-values
Definition: model.h:46
void writeOutputTable(const char *i_name, size_t i_size, forward_list< unique_ptr< double[]> > &io_accValues) override
write result into output table and release accumulators memory.
Definition: modelBase.cpp:115
bool isSuppressed(const char *i_name) const override
check by name if output table suppressed.
Definition: model.h:61
static ModelBase * create(int i_runId, int i_subCount, int i_subId, RunController *i_runCtrl, const MetaHolder *i_metaStore)
model factory: create new model sub-value run.
Definition: modelBase.cpp:59
virtual void writeDbMicrodata(int i_entityKind, uint64_t i_microdataKey, const void *i_entityThis) override
write microdata into the database.
Definition: modelBase.cpp:166
void updateProgress(int i_count, double i_value=0.0) override
set modeling progress count and value
Definition: model.h:67
int parameterSubValueIndex(const char *i_name) const override
return index of parameter sub-value in the storage array for current modeling thread
Definition: modelBase.cpp:75
virtual void writeCsvMicrodata(int i_entityKind, uint64_t i_microdataKey, int i_eventId, bool i_isSameEntity, const void *i_entityThis) override
write microdata into CSV file or into trace
Definition: modelBase.cpp:188
const RunOptions * runOptions(void) const override
return model run options
Definition: model.h:55
int subValueId(void) const noexcept override
sub-value index of current modeling thread
Definition: model.h:49
run controller: create new model run(s) and support data exchange.
Definition: runController.h:24
RunStateHolder & runStateStore(void)
return holder of all sub-values modeling run states
Definition: runController.h:71
bool updateProgress(int i_runId, int i_subId, int i_count, double i_value)
set modeling progress count and value, return false if not exist
Definition: modelRunState.cpp:192
OpenM++ modeling library: implementation.
openM++ namespace
Definition: log.h:32
OpenM++ common file utilities.
OpenM++: public interface for log and trace support.
OpenM++ modeling library: public interface.
OpenM++ modeling library: public base class for run controller to run modeling process.
model sub-value run public interface
Definition: omModel.h:136
basic model run options
Definition: omModel.h:26
int subValueId
sub-value index for current modeling thread
Definition: omModel.h:31
int subValueCount
number of sub-values
Definition: omModel.h:28
table_dic table row.
Definition: dbMetaRow.h:741