A.3.6 CADISimulationFactory::Instantiate()

This method instantiates and returns a CADI simulation that is based on the given parameter values.

Errors occurring during system initialization are signaled through the given error callback CADIErrorCallback.

Note:

This call can take a long time to complete. The call does not return until the instantiation is completed.
virtual CADISimulation *CADISimulationFactory::Instantiate(
                        CADIParameterValue_t *parameterValues,
                        CADIErrorCallback *errorCallbackObject,
                        CADISimulationCallback *simulationCallbackObject,
                        char simulationCallbacksEnable[CADI_SIM_CB_Count]) = 0;
parameterValues
are the parameter values for the simulation as specified by the parameter infos returned by GetParameterInfos().
errorCallbackObject
is the error callback object to be used for signaling error conditions during simulation.
simulationCallbackObject
is the callback object to be used for signaling model-wide conditions.
simulationCallbacksEnable

The elements of this array enable or disable specific simulation callbacks.

Note:

The simulation must always check if the callbacks are enabled or not. Do not call them if they are disabled. The listener might not want to be called in certain cases.
return value

is the pointer to the created simulation or NULL if instantiation failed.

Non-ConfidentialPDF file icon PDF version100963_0200_03_en
Copyright © 2014–2018 Arm Limited or its affiliates. All rights reserved.