31 #ifndef KIM_SIMULATOR_MODEL_H_ 32 #define KIM_SIMULATOR_MODEL_H_ 35 #ifndef KIM_LOG_VERBOSITY_DEFINED_ 36 #define KIM_LOG_VERBOSITY_DEFINED_ 45 #ifndef KIM_SIMULATOR_MODEL_DEFINED_ 46 #define KIM_SIMULATOR_MODEL_DEFINED_ 88 char const **
const simulatorName,
89 char const **
const simulatorVersion);
101 int *
const numberOfSupportedSpecies);
114 char const **
const speciesName);
148 char const *
const key,
149 char const *
const value);
172 int *
const numberOfSimulatorFields);
184 int const fieldIndex,
186 char const **
const fieldName);
198 int const fieldIndex,
200 char const **
const lineValue);
212 char const **
const directoryName);
224 char const **
const specificationFileName);
236 int *
const numberOfParameterFiles);
252 char const **
const parameterFileName);
265 char const **
const parameterFileBasename);
308 char const *
const logID);
void KIM_SimulatorModel_CloseTemplateMap(KIM_SimulatorModel const *const simulatorModel)
Close the template map and perform template substitutions.
void KIM_SimulatorModel_OpenAndInitializeTemplateMap(KIM_SimulatorModel const *const simulatorModel)
Open and initialize the template map for simulator field line substitutions.
struct KIM_SimulatorModel KIM_SimulatorModel
Provides the primary interface to a KIM API SimulatorModel object and is meant to be used by simulato...
void KIM_SimulatorModel_GetParameterFileDirectoryName(KIM_SimulatorModel const *const simulatorModel, char const **const directoryName)
Get absolute path name of the temporary directory where parameter files provided by the simulator mod...
int KIM_SimulatorModel_GetSimulatorFieldMetadata(KIM_SimulatorModel const *const simulatorModel, int const fieldIndex, int *const extent, char const **const fieldName)
Get the metadata for the simulator field of interest.
void KIM_SimulatorModel_GetNumberOfSimulatorFields(KIM_SimulatorModel const *const simulatorModel, int *const numberOfSimulatorFields)
Get the number of simulator fields provided by the SimulatorModel.
CollectionItemType const simulatorModel
The standard simulatorModel CollectionItemType.
void KIM_SimulatorModel_GetSimulatorNameAndVersion(KIM_SimulatorModel const *const simulatorModel, char const **const simulatorName, char const **const simulatorVersion)
Get the SimulatorModel's simulator name and version.
void KIM_SimulatorModel_GetNumberOfSupportedSpecies(KIM_SimulatorModel const *const simulatorModel, int *const numberOfSupportedSpecies)
Get the number of species supported by the SimulatorModel.
void KIM_SimulatorModel_PopLogVerbosity(KIM_SimulatorModel *const simulatorModel)
Pop a LogVerbosity from the SimulatorModel object's Log object verbosity stack.
int KIM_SimulatorModel_GetParameterFileBasename(KIM_SimulatorModel const *const simulatorModel, int const index, char const **const parameterFileBasename)
Get the basename (file name without path) of a particular parameter file. The file is located in the ...
void KIM_SimulatorModel_GetSimulatorBufferPointer(KIM_SimulatorModel const *const simulatorModel, void **const ptr)
Get the Simulator's buffer pointer from the SimulatorModel object.
void KIM_SimulatorModel_SetSimulatorBufferPointer(KIM_SimulatorModel *const simulatorModel, void *const ptr)
Set the Simulator's buffer pointer within the SimulatorModel object.
void KIM_SimulatorModel_Destroy(KIM_SimulatorModel **const simulatorModel)
Destroy a previously SimulatorModel::Create'd object.
void KIM_SimulatorModel_GetNumberOfParameterFiles(KIM_SimulatorModel const *const simulatorModel, int *const numberOfParameterFiles)
Get the number of parameter files provided by the SimulatorModel.
void KIM_SimulatorModel_GetSpecificationFileName(KIM_SimulatorModel const *const simulatorModel, char const **const specificationFileName)
Get the SimulatorModel's specification file basename (file name without path). The file is located in...
void KIM_SimulatorModel_PushLogVerbosity(KIM_SimulatorModel *const simulatorModel, KIM_LogVerbosity const logVerbosity)
Push a new LogVerbosity onto the SimulatorModel object's Log object verbosity stack.
An Extensible Enumeration for the LogVerbosity's supported by the KIM API.
int KIM_SimulatorModel_AddTemplateMap(KIM_SimulatorModel const *const simulatorModel, char const *const key, char const *const value)
Add a new key-value entry to the template map.
int KIM_SimulatorModel_Create(char const *const simulatorModelName, KIM_SimulatorModel **const simulatorModel)
Create a new KIM API SimulatorModel object.
char const * KIM_SimulatorModel_ToString(KIM_SimulatorModel const *const simulatorModel)
Get a string representing the internal state of the SimulatorModel object.
int KIM_SimulatorModel_GetSimulatorFieldLine(KIM_SimulatorModel const *const simulatorModel, int const fieldIndex, int const lineIndex, char const **const lineValue)
Get a line for the simulator field of interest with all template substitutions performed (Requires th...
int KIM_SimulatorModel_GetSupportedSpecies(KIM_SimulatorModel const *const simulatorModel, int const index, char const **const speciesName)
Get a species name supported by the SimulatorModel.
int KIM_SimulatorModel_GetParameterFileName(KIM_SimulatorModel const *const simulatorModel, int const index, char const **const parameterFileName)
Get the basename (file name without path) of a particular parameter file. The file is located in the ...
int KIM_SimulatorModel_TemplateMapIsOpen(KIM_SimulatorModel const *const simulatorModel)
Determine if the template map is open.
void KIM_SimulatorModel_SetLogID(KIM_SimulatorModel *const simulatorModel, char const *const logID)
Set the identity of the Log object associated with the SimulatorModel object.