Show / Hide Table of Contents

Class WMProcessor

General class which provdies an abstract, language-independent implementation of a DecisionModel processor.

Inheritance
object
WMProcessor
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Quantellia.WMServer.Execution
Assembly: WMServer.dll
Syntax
public class WMProcessor

Constructors

WMProcessor(Evaluation, IProcessor, object)

Declaration
public WMProcessor(Evaluation eval, IProcessor processor, object compiledCode)
Parameters
Type Name Description
Evaluation eval

Metadata for this processor.

IProcessor processor

The IProcessor to run in this WMProcessor.

object compiledCode

The compiled code to run in the processor

Properties

Evaluation

Declaration
public Evaluation Evaluation { get; set; }
Property Value
Type Description
Evaluation

ID

Declaration
public string ID { get; }
Property Value
Type Description
string

IsReset

Declaration
public bool IsReset { get; set; }
Property Value
Type Description
bool

ResetReason

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

Methods

Constraints()

Tests user specified constraints

Declaration
public Task<bool> Constraints()
Returns
Type Description
Task<bool>

true if constraints are satisfied, false if a constraint is broken

Init(object, EvaluationArgs, WMPrincipal)

Initialize this WMProcessor

Declaration
[Obsolete("This method was originally called on the first run of a WMProcessor, and all subsequent calls went to WMProcessor.Run(). This is unnecessary, since the return and input values of Init() and Run() are essentially the same. Initialization has been moved into Run() with a _FirstRun flag.")]
public Task<ElementValue> Init(object compiledCode, EvaluationArgs args, WMPrincipal principal)
Parameters
Type Name Description
object compiledCode
EvaluationArgs args
WMPrincipal principal
Returns
Type Description
Task<ElementValue>

Reset(string)

Declaration
public void Reset(string reason)
Parameters
Type Name Description
string reason

Run(EvaluationArgs, WMPrincipal)

Runs the IProcessor internal to this WMProcessor. If this is the first run, additional setup is also called.

Declaration
public Task<ElementValue> Run(EvaluationArgs args, WMPrincipal principal)
Parameters
Type Name Description
EvaluationArgs args
WMPrincipal principal
Returns
Type Description
Task<ElementValue>

Stop()

Checks if the simulation has reached a stopping condition

Declaration
public Task<bool> Stop()
Returns
Type Description
Task<bool>

true if the simulation has stopped, false otherwise

UpdateArgs()

Updates internal arguments with a user specified sampling algorithm

Declaration
public Task<Dictionary<string, object>> UpdateArgs()
Returns
Type Description
Task<Dictionary<string, object>>
In this article
Back to top Copyright © 2025 Quantellia LLC.    Version 2.0.0 Revision 399     Last Updated 11/16/2025    DRAFT DOCUMENTATION. SUBJECT TO CHANGE