Class OpenDIDecisionModel
Representation of a Decision Model that is compliant witht the OpenDI standard.
Inherited Members
Namespace: Quantellia.WMServer.OpenDI
Assembly: WMServer.dll
Syntax
public class OpenDIDecisionModel : OpenDIAsset
Constructors
OpenDIDecisionModel()
Default Constructor
Declaration
public OpenDIDecisionModel()
OpenDIDecisionModel(DecisionModel)
Constructor that initializes the OpenDIDecisionModel with values read from the specified Quantellia.WMServer.DecisionModeler.
Declaration
public OpenDIDecisionModel(DecisionModel dm)
Parameters
| Type | Name | Description |
|---|---|---|
| DecisionModel | dm | The World Modeler Decision Model used to initialize this OpenDIDecisionModel |
Properties
elements
Collection of elements that belong to this Decision Model.
Declaration
public virtual ICollection<JObject>? elements { get; set; }
Property Value
| Type | Description |
|---|---|
| ICollection<JObject> |
Methods
ToDTODefault()
Create a new IWMAssetBaseDTO object that contains the properties of this OpenDIAsset. Throws an exception if null values without default are encountered.
Declaration
public DecisionModelDTO ToDTODefault()
Returns
| Type | Description |
|---|---|
| DecisionModelDTO | A IWMAssetBaseDTO object that contains the properties (or default values) of this OpenDIAsset |
ToDTOPartial()
Create a new IWMAssetBaseDTO object that contains only the properties of this OpenDIAsset with no defaults.
Declaration
public DecisionModelDTO ToDTOPartial()
Returns
| Type | Description |
|---|---|
| DecisionModelDTO | A IWMAssetBaseDTO object that contains the properties of this OpenDIAsset |