|
OpenM++ runtime library (libopenm)
|
model sub-value run base class More...
#include <model.h>


Public Member Functions | |
| int | subValueCount (void) const noexcept override |
| number of sub-values | |
| int | subValueId (void) const noexcept override |
| sub-value index of current modeling thread | |
| int | parameterSubValueIndex (const char *i_name) const override |
| return index of parameter sub-value in the storage array for current modeling thread | |
| const RunOptions * | runOptions (void) const override |
| return model run options | |
| int | tableIdByName (const char *i_name) const override |
| return id of output table by name | |
| bool | isSuppressed (const char *i_name) const override |
| check by name if output table suppressed. | |
| 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. | |
| void | updateProgress (int i_count, double i_value=0.0) override |
| set modeling progress count and value | |
| virtual void | writeDbMicrodata (int i_entityKind, uint64_t i_microdataKey, const void *i_entityThis) override |
| write microdata into the database. | |
| 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 | |
Public Member Functions inherited from openm::IModel | |
| virtual | ~IModel (void) noexcept=0 |
| model sub-value run public interface | |
| virtual void | writeOutputTable (const char *i_name, size_t i_size, std::forward_list< std::unique_ptr< double[]> > &io_accValues)=0 |
| write output result table: sub values | |
Static Public Member Functions | |
| 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. | |
model sub-value run base class
|
static |
model factory: create new model sub-value run.
create new model sub-value run
|
inlineoverridevirtual |
check by name if output table suppressed.
Implements openm::IModel.
|
overridevirtual |
return index of parameter sub-value in the storage array for current modeling thread
Implements openm::IModel.
|
inlineoverridevirtual |
return model run options
Implements openm::IModel.
|
inlineoverridevirtualnoexcept |
number of sub-values
Implements openm::IModel.
|
inlineoverridevirtualnoexcept |
sub-value index of current modeling thread
Implements openm::IModel.
|
inlineoverridevirtual |
return id of output table by name
Implements openm::IModel.
|
inlineoverridevirtual |
set modeling progress count and value
Implements openm::IModel.
|
overridevirtual |
write microdata into CSV file or into trace
write microdata into the CSV file or into trace.
| i_entityKind | entity kind id: model metadata entity id in database. |
| i_microdataKey | unique entity instance id. |
| i_eventId | event id, if microdata events enabled. |
| i_isSameEntity | if true then event entity the same as microdata entity. |
| i_entityThis | entity class instance this pointer. |
Implements openm::IModel.
|
overridevirtual |
write microdata into the database.
| i_entityKind | entity kind id: model metadata entity id in database. |
| i_microdataKey | unique entity instance id. |
| i_entityThis | entity class instance this pointer. |
Pair of (i_entityKind, i_microdataKey) must provide a unique key of microdata record for this model run.
Implements openm::IModel.
|
override |
write result into output table and release accumulators memory.
| [in] | i_name | output table name |
| [in] | i_size | number of cells for each accumulator |
| [in,out] | io_accValues | accumulator values |
usage example: