Table of Contents

Class VolatileVariableLookup

Namespace
Hi.NcParsers.EvaluationSyntaxs.Evaluation
Assembly
HiMech.dll

Reads Fanuc-style non-retained common variables (#100-#499) from Vars.Volatile on the current SyntaxPiece JSON, walking Previous until the entry is found. Self-gates the id range so the evaluator's RuntimeVariableLookups chain can fall through to the next lookup for out-of-range keys.

Stateless and dependency-free — instances are interchangeable. Reads use the same dict-merge carry that VolatileVariableReadingSyntax writes; the two stay decoupled (read side here; write side in the reader).

public class VolatileVariableLookup : IRuntimeVariableLookup
Inheritance
VolatileVariableLookup
Implements
Inherited Members
Extension Methods

Methods

Get(string, LazyLinkedListNode<SyntaxPiece>, IReadOnlyList<INcDependency>)

Returns the value of the variable identified by key in the context of node and dependencies, or null if the key is outside this lookup's range or the value is vacant.

public double? Get(string key, LazyLinkedListNode<SyntaxPiece> node, IReadOnlyList<INcDependency> dependencies)

Parameters

key string
node LazyLinkedListNode<SyntaxPiece>
dependencies IReadOnlyList<INcDependency>

Returns

double?