GrGen.NET v4.4 API: the libGr class library (the type exact interface gets generated)
Sequence Class
A sequence object with references to child sequences. A sequence is basically a rule application or a computation, or an operator combining them.
Declaration Syntax
C#
public abstract class Sequence : SequenceBase
Members
All MembersConstructorsMethodsPropertiesFields



IconMemberDescription
Sequence(SequenceType)
Initializes a new Sequence object with the given sequence type.

Apply(IGraphProcessingEnvironment)
Applies this sequence.

ApplyImpl(IGraphProcessingEnvironment)
Applies this sequence. This function represents the actual implementation of the sequence.

Check(SequenceCheckingEnvironment)
Checks the sequence for errors utilizing the given checking environment reports them by exception default behavior: check all the children
(Overrides SequenceBase.Check(SequenceCheckingEnvironment).)
Children
Enumerates all child sequence objects

ChildrenBase (Overrides SequenceBase.ChildrenBase.)
ExecutionState
the state of executing this sequence

GetCurrentlyExecutedSequence()()()()
Returns the innermost sequence beneath this as root which gets currently executed (for sequences on call stack this is the call). A path in the sequence tree gets executed, the innermost is the important one.

GetLocalVariables(Dictionary<(Of <<'(SequenceVariable, SetValueType>)>>), List<(Of <<'(SequenceExpressionContainerConstructor>)>>), Sequence)
Walks the sequence tree from this on to the given target sequence (inclusive), collecting all variables found on the way into the variables dictionary, and all container constructors used into the constructors array.

id
stores the sequence /expression unique id
(Inherited from SequenceBase.)
Id
returns the sequence /expresion id - every sequence /expression is assigned a unique id used in xgrs code generation for copies the old id is just taken over, does not cause problems as code is only generated once per defined sequence
(Inherited from SequenceBase.)
NoElems
Precedence
The precedence of this operator. Zero is the highest priority, int.MaxValue the lowest. Used to add needed parentheses for printing sequences /expressions TODO: WTF? das ist im Parser genau umgekehrt implementiert!
(Inherited from SequenceBase.)
ResetExecutionState()()()()
Reset the execution state after a run (for following runs). The sequence to be iterated gets reset before each iteration.

SequenceType
The type of the sequence (e.g. LazyOr or Transaction)

SetNeedForProfiling(Boolean)
sets for the very node the profiling flag (does not recurse)
(Inherited from SequenceBase.)
SetNeedForProfilingRecursive(Boolean)
sets for the node and all children, i.e. the entire tree the profiling flag
(Inherited from SequenceBase.)
Symbol
A string symbol representing this sequence /expression kind.
(Inherited from SequenceBase.)
Type(SequenceCheckingEnvironment)
Returns the type of the sequence, which is "boolean"
(Overrides SequenceBase.Type(SequenceCheckingEnvironment).)
Inheritance Hierarchy

Assembly: libGr (Module: libGr) Version: 4.4.0.0 (4.4.0.0)