Class WMProcessor
General class which provdies an abstract, language-independent implementation of a DecisionModel processor.
Assembly: WMServer.dll
Syntax
Constructors
WMProcessor(Evaluation, IProcessor, object)
Declaration
public WMProcessor(Evaluation eval, IProcessor processor, object compiledCode)
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)
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
Returns
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
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