PropertyPackagesimulationContext Property |
Allows the PME to convey the PMC a reference to the former’s simulation context.
Namespace: DWSIM.Thermodynamics.PropertyPackagesAssembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax public virtual Object simulationContext { set; }
Public Overridable WriteOnly Property simulationContext As Object
Set
Request Example
View SourceProperty Value
ObjectThe reference to the PME’s simulation context class. For the PMC to
use this class, this reference will have to be converted to each of the
defined CO Simulation Context interfaces.
Implements
ICapeUtilities.simulationContextRemarks The simulation context
will be PME objects which will expose a given set of CO interfaces. Each of these interfaces will allow the
PMC to call back the PME in order to benefit from its exposed services (such as creation of material
templates, diagnostics or measurement unit conversion). If the PMC does not support accessing the
simulation context, it is recommended to raise the ECapeNoImpl error.
Initially, this method was only present in the ICapeUnit interface. Since ICapeUtilities.SetSimulationContext
is now available for any kind of PMC, ICapeUnit. SetSimulationContext is deprecated.
See Also