Class EvaluationValueRange
To support frontend caching of a wide range of values, Evaluation supports evaluating a single set of parameters, as well as ranges of parameters. Arguments that should iterate over a range of values should implement this format.
Inherited Members
Namespace: Quantellia.WMServer.Execution.Model
Assembly: WMServer.dll
Syntax
public class EvaluationValueRange
Properties
Type
The type of this value range.
Declaration
[JsonConverter(typeof(StringEnumConverter))]
public EvaluationValueRange.ValueRanges Type { get; set; }
Property Value
| Type | Description |
|---|---|
| EvaluationValueRange.ValueRanges |
Values
The values in this value range.
Declaration
public object Values { get; set; }
Property Value
| Type | Description |
|---|---|
| object |
Methods
ParseArgumentRange(Dictionary<string, object>)
Arguments defines a set of arguments to be evaluated by a decision model in an /evaluation call. The individual elements in Arguments can also be an EvaluationValueRange which defines a set of values to be evaluated, instead of a single value. For multiple EvaluationValueRange elements, there can potentially be a very large parameter space to calculate over. Instead of calculating each permutation and storing them in memory, this function iterates over each permutation and evaluates them immediately.
Declaration
public static IEnumerable<Dictionary<string, object>> ParseArgumentRange(Dictionary<string, object> arguments)
Parameters
| Type | Name | Description |
|---|---|---|
| Dictionary<string, object> | arguments |
Returns
| Type | Description |
|---|---|
| IEnumerable<Dictionary<string, object>> |