Classes | |
class | TRuntimeControls |
Wrapper class for all the runtime control information required to initialize a TProblem object in order to make a simulation run. More... | |
class | TGlobalSettings |
Class acts as repository of global control settings defined at the problem level. More... | |
class | TComponentSettings |
Class acts as repository of settings defined for each component. More... | |
class | TPreferenceSettings |
Wrapper class to store and manipulate information required to initialize the settings for the solution methods for each component. More... | |
class | TProblem |
Representation of a problem object in the SPARK solver. More... | |
class | TProblem::TState |
Interface class defining the methods used to save and restore the state of the problem using the TProblem::Save() and TProblem::Restore() methods. More... | |
class | TComponent |
Class that solves the set of DAE equations generated by setupcpp. More... | |
class | XAssertion |
Base class for all SPARK exceptions. More... | |
class | XDimension |
Indicates that a runtime error occured due to mismatched dimension. More... | |
class | XOutOfRange |
Indicates that a runtime error occured due to an out of range access operation on a container. More... | |
class | XMemory |
Indicates that a runtime error occured because memory could not be allocated. More... | |
class | XInitialization |
Indicates that a runtime error occured while initializing an object. More... | |
class | XIO |
Indicates that a runtime error occured while performing an IO operation. More... | |
class | XTimeStep |
Indicates that a runtime error occured while adapting the time step. More... | |
class | XStepper |
Inidicates that stepping to the next step failed. More... | |
class | TObject |
Class used to represent an instance of an inverse. More... | |
class | TInverse |
Class that defines the callbacks for an inverse. More... | |
Functions to manage the SPARK solving environment | |
void | Start (const char *sessionName, const char *runLogFilename, const char *errorLogFilename, const char *debugLogFilename, bool verbose=true) throw (SPARK::XInitialization) |
Starts the SPARK solving environment. | |
void | End () |
Terminates the SPARK solving environment. | |
void | ExitWithError (SPARK::ExitCodes ec, const std::string &callingSub, const std::string &msg, const SPARK::TProblem *problem=0) |
Terminates program execution with exit code. | |
Utility functions | |
char * | GetFileName (unsigned argc, char *argv[], const char *extension) throw (SPARK::XInitialization) |
Returns the pointer to the first string in the argv[] that has the specified extension. If cannot find file with desired extension, returns 0. | |
void | Log (std::ostream &os, const char *strFileName, const char *strSenderName, const char *strMsg, const SPARK::TProblem *problem=0) |
Writes a message to the specified log file. | |
void | Log (std::ostream &os, const SPARK::TInverse *sender, unsigned line, const char *strMsg) |
Writes a message to the specified log file from a static callback file in a SPARK atomic class. | |
void | Log (std::ostream &os, const SPARK::TObject *sender, unsigned line, const char *strMsg) |
Writes a message to the specified log file from a non-static callback file in a SPARK atomic class. | |
Access methods | |
const char * | GetProgramName () |
Returns the name of the program as specified during the call to SPARK::Start(). | |
const char * | GetBaseName () |
Returns the base name of the program name (i.e., the program name witout path and without any extension). | |
const char * | GetVersion () |
Returns the version of the solver library being used. | |
std::ostream & | GetRunLog () |
Returns the output stream for the run log. | |
std::ostream & | GetErrorLog () |
Returns the output stream for the error log. | |
const char * | GetRunLogFilename () |
Returns the name of the run log file as specified during the call to SPARK::Start(). | |
const char * | GetErrorLogFilename () |
Returns the name of the error log file as specified during the call to SPARK::Start(). | |
const char * | GetDebugLogFilename () |
Returns the name of the debug log file as specified during the call to SPARK::Start(). | |
Enumerations | |
enum | ExitCodes { ExitCode_OK = 0, ExitCode_ERROR_IO = 100, ExitCode_ERROR_LEX_SCAN = 101, ExitCode_ERROR_URL = 102, ExitCode_ERROR_OUT_OF_MEMORY = 120, ExitCode_ERROR_NULL_POINTER = 121, ExitCode_ERROR_COMMAND_LINE = 130, ExitCode_ERROR_INVALID_RUN_CONTROLS = 131, ExitCode_ERROR_INVALID_PREFERENCES = 132, ExitCode_ERROR_INVALID_PROBLEM = 133, ExitCode_ERROR_EXIT_SPARK_FACTORY = 140, ExitCode_ERROR_RUNTIME_ERROR = 150, ExitCode_ERROR_INVALID_VARIABLE_NAME = 151, ExitCode_ERROR_INVALID_FEATURE = 152, ExitCode_ERROR_NUMERICAL = 160 } |
Exit codes returned by the SPARK solver. More... | |
enum | CallbackTypes { CallbackType_EVALUATE = 0, CallbackType_PREDICT, CallbackType_CONSTRUCT, CallbackType_DESTRUCT, CallbackType_PREPARE_STEP, CallbackType_ROLLBACK, CallbackType_COMMIT, CallbackType_CHECK_INTEGRATION_STEP, CallbackType_STATIC_CONSTRUCT, CallbackType_STATIC_DESTRUCT, CallbackType_STATIC_PREPARE_STEP, CallbackType_STATIC_ROLLBACK, CallbackType_STATIC_COMMIT, CallbackType_STATIC_CHECK_INTEGRATION_STEP, CALLBACKTYPES_L, CallbackType_NONE = CALLBACKTYPES_L } |
Enum for callback types. More... | |
enum | ProtoTypes { ProtoType_MODIFIER = 0, ProtoType_NON_MODIFIER, ProtoType_PREDICATE, ProtoType_STATIC_NON_MODIFIER, ProtoType_STATIC_PREDICATE, PROTOTYPES_L, ProtoType_NONE = PROTOTYPES_L } |
Enum for callback prototypes. More... | |
enum | ReturnTypes { ReturnType_VALUE = 0, ReturnType_RESIDUAL, RETURNTYPES_L, ReturnType_NONE = RETURNTYPES_L } |
Enum for return types from modifier callbacks. More... | |
enum | VariableTypes { VariableType_GLOBAL_TIME = 0, VariableType_GLOBAL_TIME_STEP, VariableType_PARAMETER, VariableType_INPUT, VariableType_UNKNOWN, VARIABLETYPES_L, VariableType_NONE = VARIABLETYPES_L } |
Enum for the various variable types in the problem. More... | |
enum | RequestTypes { RequestType_ABORT = 0, RequestType_STOP, RequestType_SET_STOP_TIME, RequestType_REPORT, RequestType_SNAPSHOT, RequestType_SET_MEETING_POINT, RequestType_CLEAR_MEETING_POINTS, RequestType_RESTART, RequestType_SET_TIME_STEP, RequestType_SET_DYNAMIC_STEPPER, REQUESTTYPES_L, RequestType_NONE = REQUESTTYPES_L } |
|
|
Enum for callback types.
|
|
Enum for callback prototypes.
|
|
Enum for return types from modifier callbacks.
|
|
Enum for the various variable types in the problem.
|
|
Enum for the various atomic class requests The values are specified by the following bit masks that can be combined using the bitwise OR ( | ) operator.
|
|
Starts the SPARK solving environment.
|
|
Terminates the SPARK solving environment. Closes all log files. Performs garbage collection for all problems loaded at runtime.
|
|
Terminates program execution with exit code.
Writes out to the run log output stream the error message contained in
|
|
Returns the pointer to the first string in the argv[] that has the specified extension. If cannot find file with desired extension, returns 0. This function is more versatile than the SPARK::StaticBuild::ParseCommandLine() and SPARK::DynamicBuild::ParseCommandLine() functions as it lets you retrieve one file at a time for the specified extension.
|
|
Writes a message to the specified log file.
|
|
Writes a message to the specified log file from a static callback file in a SPARK atomic class.
|
|
Writes a message to the specified log file from a non-static callback file in a SPARK atomic class.
|
|
Returns the name of the program as specified during the call to SPARK::Start().
|
|
Returns the base name of the program name (i.e., the program name witout path and without any extension).
|
|
Returns the version of the solver library being used.
|
|
Returns the output stream for the run log.
|
|
Returns the output stream for the error log.
|
|
Returns the name of the run log file as specified during the call to SPARK::Start().
|
|
Returns the name of the error log file as specified during the call to SPARK::Start().
|
|
Returns the name of the debug log file as specified during the call to SPARK::Start().
|