Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
WildcardEvaluator.cs
6
8{
13 {
14 private readonly ChunkedList<IElement> elements = new ChunkedList<IElement>();
15
21 : base(Node)
22 {
23 }
24
28 public override void RestartEvaluator()
29 {
30 this.elements.Clear();
31 }
32
37 public override void AggregateElement(IElement Element)
38 {
39 this.elements.Add(Element);
40 }
41
45 public override IElement GetAggregatedResult()
46 {
47 return VectorDefinition.Encapsulate(this.elements, false, this.Node);
48 }
49
58 {
59 if (Variables is ObjectProperties Properties)
60 return Expression.Encapsulate(Properties.Object);
61 else
62 return ObjectValue.Null;
63 }
64 }
65}
A chunked list is a linked list of chunks of objects of type T .
Definition: ChunkedList.cs:54
Base class for all types of elements.
Definition: Element.cs:14
Class managing a script expression.
Definition: Expression.cs:41
static IElement Encapsulate(object Value)
Encapsulates an object.
Definition: Expression.cs:5241
An interative evaluator of a leaf script node.
ScriptLeafNode Node
Node being evaluated.
static readonly ObjectValue Null
Null value.
Definition: ObjectValue.cs:88
static IElement Encapsulate(Array Elements, bool CanEncapsulateAsMatrix, ScriptNode Node)
Encapsulates the elements of a vector.
override void RestartEvaluator()
Restarts the evaluator.
override IElement GetAggregatedResult()
Gets the aggregated result.
override IElement Evaluate(Variables Variables)
Evaluates the evaluator, using the variables provided in the Variables collection and an object inst...
override void AggregateElement(IElement Element)
Aggregates one new element.
WildcardEvaluator(Wildcard Node)
Wildcard (*) iterative evaluator
Represents the Wildcard symbol *
Definition: Wildcard.cs:12
Collection of variables.
Definition: Variables.cs:25
Basic interface for all types of elements.
Definition: IElement.cs:21