![]() |
helics
3.6.1
|
Functions related to using helics apps. More...
#include "helicsCore.h"Go to the source code of this file.
Functions | |
| HelicsBool | helicsAppEnabled () |
| HelicsApp | helicsCreateApp (const char *appName, const char *appType, const char *configFile, HelicsFederateInfo fedInfo, HelicsError *err) |
| HelicsFederate | helicsAppGetFederate (HelicsApp app, HelicsError *err) |
| void | helicsAppLoadFile (HelicsApp app, const char *configFile, HelicsError *err) |
| void | helicsAppInitialize (HelicsApp app, HelicsError *err) |
| void | helicsAppRun (HelicsApp app, HelicsError *err) |
| void | helicsAppRunTo (HelicsApp app, HelicsTime stopTime, HelicsError *err) |
| void | helicsAppFinalize (HelicsApp app, HelicsError *err) |
| void | helicsAppFree (HelicsApp app) |
| void | helicsAppDestroy (HelicsApp app) |
| HelicsBool | helicsAppIsActive (HelicsApp app) |
Functions related to using helics apps.
| void helicsAppDestroy | ( | HelicsApp | app | ) |
Disconnect and free a HelicsApp.
| app | The app to destroy. |
References helicsAppFinalize(), and helicsAppFree().
| HelicsBool helicsAppEnabled | ( | ) |
HELICS_TRUE if the app library is enabled
References HELICS_TRUE.
| void helicsAppFinalize | ( | HelicsApp | app, |
| HelicsError * | err | ||
| ) |
Finalize the HelicsApp.
| app | The app to finalize. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
Referenced by helicsAppDestroy().
| void helicsAppFree | ( | HelicsApp | app | ) |
Free the HelicsApp object.
| app | The app to free. |
References helics::CoreFactory::cleanUpCores().
Referenced by helicsAppDestroy().
| HelicsFederate helicsAppGetFederate | ( | HelicsApp | app, |
| HelicsError * | err | ||
| ) |
Run the HelicsApp.
Execute the HelicsApp to completion
| app | The app to execute. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
| void helicsAppInitialize | ( | HelicsApp | app, |
| HelicsError * | err | ||
| ) |
Initialize the HelicsApp federate.
Generate all the interfaces and load data for the application.
| app | The app to initialize. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
| HelicsBool helicsAppIsActive | ( | HelicsApp | app | ) |
Check if the HelicsApp is active and ready to run.
| app | The app to check. |
References HELICS_FALSE, and HELICS_TRUE.
| void helicsAppLoadFile | ( | HelicsApp | app, |
| const char * | configFile, | ||
| HelicsError * | err | ||
| ) |
Load a file to an App.
Loads a configuration file for an app.
| app | The app to load a file. | |
| configFile | Configuration file or string to pass into the app, can be NULL or empty. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
| void helicsAppRun | ( | HelicsApp | app, |
| HelicsError * | err | ||
| ) |
Run the HelicsApp.
Execute the app to completion.
| app | The app to execute. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
| void helicsAppRunTo | ( | HelicsApp | app, |
| HelicsTime | stopTime, | ||
| HelicsError * | err | ||
| ) |
Run a HelicsApp to a specified stop time.
It is possible to call this method repeatedly with different times.
| app | The app to run. | |
| stopTime | The desired stop time. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
| HelicsApp helicsCreateApp | ( | const char * | appName, |
| const char * | appType, | ||
| const char * | configFile, | ||
| HelicsFederateInfo | fedInfo, | ||
| HelicsError * | err | ||
| ) |
Create a HelicsApp object.
Create a HelicsApp object.
| appName | A string with the name of the app, can be NULL or an empty string to pull the default name from fedInfo or the config file. | |
| appType | The type of app to create. | |
| configFile | Configuration file or string to pass into the app, can be NULL or empty. | |
| fedInfo | The federate information to pass into the app, can be NULL. | |
| [in,out] | err | An error object that will contain an error code and string if any error occurred during the execution of the function. |
References HelicsError::error_code, HELICS_ERROR_INVALID_ARGUMENT, and helics::loadFederateInfo().