Show / Hide Table of Contents

Class DecisionModel

Represents a Decision Model.

Inheritance
object
WMAssetBase
DecisionModel
Implements
IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
IWMVersionableAsset
IWMOwnableResource
IWMResource
Inherited Members
WMAssetBase.ID
WMAssetBase.CreatedBy
WMAssetBase.CreatedDate
WMAssetBase.LastUpdatedBy
WMAssetBase.LastUpdatedDate
WMAssetBase.Name
WMAssetBase.Documentation
WMAssetBase.DocumentationMIMEType
WMAssetBase.Summary
WMAssetBase.ParentDirectory
WMAssetBase.FullPathName
WMAssetBase.Properties
WMAssetBase.Version
WMAssetBase.VersionName
WMAssetBase.Status
WMAssetBase.IsDeleted
WMAssetBase.Owner
WMAssetBase.OwnerID
WMAssetBase.OwnerType
WMAssetBase.CreateFullPathName(WMAssetDirectory, string)
WMAssetBase.GetFullPath(WMPrincipal, WMAssetIdentifier, string, WMAppDbContext)
WMAssetBase.GetIdentifier(bool)
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 : WMAssetBase, IWMAsset, IDbEntity, IWMEntity, IDocumentedEntity, INamedEntity, IWMAssetDirectoryMember, IWMPrincipalOwned, IWMVersionableAsset, IWMOwnableResource, IWMResource

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>

ImageUrl

URL of image to display

Declaration
public string? ImageUrl { get; set; }
Property Value
Type Description
string

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>>

ResourceDefinition()

The resource operation definition for this asset.

Declaration
public static WMResourceOperationsDefinition ResourceDefinition()
Returns
Type Description
WMResourceOperationsDefinition

Implements

IWMAsset
IDbEntity
IWMEntity
IDocumentedEntity
INamedEntity
IWMAssetDirectoryMember
IWMPrincipalOwned
IWMVersionableAsset
IWMOwnableResource
IWMResource
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