Class WMProcessor
General class which provdies an abstract, language-independent implementation of a DecisionModel processor.
Assembly: WMServer.dll
Syntax
Constructors
WMProcessor(Evaluation, IProcessor)
Declaration
public WMProcessor(Evaluation eval, IProcessor processor)
Parameters
Properties
Evaluation
Declaration
public Evaluation Evaluation { get; set; }
Property Value
ID
Declaration
public string ID { get; }
Property Value
IsReset
Declaration
public bool IsReset { get; set; }
Property Value
ResetReason
Declaration
public string ResetReason { 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, WMPrincipal)
Declaration
public Task<ElementValue> Init(object compiledCode, EvaluationArgs args, WMPrincipal principal)
Parameters
Returns
Reset(string)
Declaration
public void Reset(string reason)
Parameters
Type |
Name |
Description |
string |
reason |
|
Run(EvaluationArgs)
Declaration
public Task<ElementValue> Run(EvaluationArgs args)
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