Show / Hide Table of Contents

Class DecisionModel

Represents a Decision Model.

Inheritance
object
DecisionModelBase
DecisionModel
Implements
IDocumentedEntity
INamedEntity
IDbEntity
IWMEntity
IWMPrincipalOwned
Inherited Members
DecisionModelBase.ID
DecisionModelBase.CreatedBy
DecisionModelBase.CreatedDate
DecisionModelBase.LastUpdatedBy
DecisionModelBase.LastUpdatedDate
DecisionModelBase.Name
DecisionModelBase.Summary
DecisionModelBase.Documentation
DecisionModelBase.DocumentationMIMEType
DecisionModelBase.Create(Type, string)
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.DecisionModeler
Assembly: WMServer.dll
Syntax
[HasDTO(typeof(DecisionModel))]
public class DecisionModel : DecisionModelBase, IDocumentedEntity, INamedEntity, IDbEntity, IWMEntity, IWMPrincipalOwned

Constructors

DecisionModel()

Default constructor.

Declaration
public DecisionModel()

DecisionModel(string)

Constructor that specifyies the ID of the new object.

Declaration
public DecisionModel(string ID)
Parameters
Type Name Description
string ID

Properties

Assets

Collection of assets that are referenced by the DecisionModel

Declaration
public virtual ICollection<IWMAsset>? Assets { get; set; }
Property Value
Type Description
ICollection<IWMAsset>

Elements

Collection of elements that make up the DecisionModel

Declaration
public virtual ICollection<DecisionModelElement>? Elements { get; set; }
Property Value
Type Description
ICollection<DecisionModelElement>

Owner

Reference to the principal of this model.

Declaration
public virtual WMPrincipal? Owner { get; set; }
Property Value
Type Description
WMPrincipal

Methods

AddElementDTOs(WMPrincipal, IEnumerable<DecisionModelElementDTO>?, WMAppDbContext)

Declaration
public Task<List<DecisionModelElementDTO>> AddElementDTOs(WMPrincipal principal, IEnumerable<DecisionModelElementDTO>? elements, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
IEnumerable<DecisionModelElementDTO> elements
WMAppDbContext context
Returns
Type Description
Task<List<DecisionModelElementDTO>>

CreateFullyQualifiedName(IFullyQualifiable, string)

Declaration
public static string CreateFullyQualifiedName(IFullyQualifiable parent, string name)
Parameters
Type Name Description
IFullyQualifiable parent
string name
Returns
Type Description
string

Get(WMPrincipal, string, WMAppDbContext)

Declaration
public static Task<DecisionModel> Get(WMPrincipal principal, string id, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal
string id
WMAppDbContext context
Returns
Type Description
Task<DecisionModel>

GetSimulations(WMPrincipal, string, WMAppDbContext)

Returns all Quantellia.WMServer.Simulation instances under the provided decision model

Declaration
public static Task<IEnumerable<OpenDISimulation>> GetSimulations(WMPrincipal principal, string ID, WMAppDbContext context)
Parameters
Type Name Description
WMPrincipal principal

The user

string ID

The ID of the decision model.

WMAppDbContext context
Returns
Type Description
Task<IEnumerable<OpenDISimulation>>

Implements

IDocumentedEntity
INamedEntity
IDbEntity
IWMEntity
IWMPrincipalOwned
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 1/15/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE