Click or drag to resize

PropertyPackageTerminate Method

Initially, this method was only present in the ICapeUnit interface. Since ICapeUtilities.Terminate is now available for any kind of PMC, ICapeUnit.Terminate is deprecated. The PME will order the PMC to get destroyed through this method. Any uninitialization that could fail must be placed here. ‘Terminate’ is guaranteed to be the last method called by the client (except low level methods such as class destructors). ‘Terminate’ may be called at any time, but may be only called once. When this method returns an error, the PME should report the user. However, after that the PME is not allowed to use the PMC anymore. The Unit specification stated that “Terminate may check if the data has been saved and return an error if not.” It is suggested not to follow this recommendation, since it’s the PME responsibility to save the state of the PMC before terminating it. In the case that a user wants to close a simulation case without saving it, it’s better to leave the PME to handle the situation instead of each PMC providing a different implementation.

Namespace: DWSIM.Thermodynamics.PropertyPackages
Assembly: DWSIM.Thermodynamics (in DWSIM.Thermodynamics.dll) Version: 8.8.1.0
Syntax
public virtual void Terminate()
Request Example View Source

Implements

ICapeUtilities.Terminate
See Also