Class JSProcessor
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
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
Returns
Exceptions
Run(EvaluationArgs, WMProcessor)
Declaration
public Task<ElementValue> Run(EvaluationArgs args, WMProcessor proc)
Parameters
Returns
Stop()
Checks if the simulation has reached a stopping condition.
Declaration
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
Implements