Show / Hide Table of Contents

Class JSProcessor

Implements a DecisionModel processor for expressions compiled from the JavaScript language using JSCompiler

Inheritance
object
JSProcessor
Implements
IProcessor
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.JS
Assembly: WMServer.dll
Syntax
public class JSProcessor : IProcessor

Constructors

JSProcessor(ScriptEngine)

Declaration
public JSProcessor(ScriptEngine engine = null)
Parameters
Type Name Description
ScriptEngine engine

Properties

Engine

Declaration
public object Engine { get; set; }
Property Value
Type Description
object

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, WMProcessor, WMPrincipal)

Declaration
public Task<ElementValue> Init(object compiledCode, EvaluationArgs args, WMProcessor proc, WMPrincipal principal)
Parameters
Type Name Description
object compiledCode
EvaluationArgs args
WMProcessor proc
WMPrincipal principal
Returns
Type Description
Task<ElementValue>
Exceptions
Type Condition
NotImplementedException

Run(EvaluationArgs, WMProcessor)

Declaration
public Task<ElementValue> Run(EvaluationArgs args, WMProcessor proc)
Parameters
Type Name Description
EvaluationArgs args
WMProcessor proc
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

Remarks

If no stop condition has been defined, true will be returned, and it will be assumed that the simulation will stop when the maximum number of runs has been reached.

UpdateArgs()

Updates internal arguments with a user specified sampling algorithm

Declaration
public Task<Dictionary<string, object>> UpdateArgs()
Returns
Type Description
Task<Dictionary<string, object>>

Implements

IProcessor
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