Click or drag to resize

IAction Interface

An object representing an executable rule.

Namespace:  de.unika.ipd.grGen.libGr
Assembly:  libGr (in libGr.dll) Version: GrGen.NET 4.5
Syntax
C#
public interface IAction : IActionCore

The IAction type exposes the following members.

Properties
  NameDescription
Public propertyName
The name of the action
(Inherited from IActionCore.)
Public propertyPackage
null if this is a global type, otherwise the package the type is contained in.
(Inherited from IActionCore.)
Public propertyPackagePrefixedName
The name of the type in case of a global type, the name of the type prefixed by the name of the package otherwise.
(Inherited from IActionCore.)
Public propertyRulePattern
The RulePattern object from which this IAction object has been created.
(Inherited from IActionCore.)
Top
Methods
  NameDescription
Public methodApply(IActionExecutionEnvironment)
Tries to apply this rule to the given graph processing environment/its current graph once. Only applicable for parameterless rules. Shows better performance than the normal Apply called without parameters. No Matched/Finished events are triggered by this function (needed for visual debugging).
Public methodApply(IActionExecutionEnvironment, Object)
Tries to apply this rule to the given processing environment/its current graph once. No Matched/Finished events are triggered by this function (needed for visual debugging). The null parameter check is omitted also.
Public methodApplyAll(Int32, IActionExecutionEnvironment)
Tries to apply this rule to all occurrences in the current graph of the graph processing environment "at once". Only applicable for parameterless rules. Shows better performance than the normal ApplyAll called without parameters. No Matched/Finished events are triggered by this function (needed for visual debugging).
Public methodApplyAll(Int32, IActionExecutionEnvironment, Object)
Tries to apply this rule to all occurrences in the current graph of the graph processing environment "at once". No Matched/Finished events are triggered by this function (needed for visual debugging). The null parameter check is omitted also.
Public methodApplyMinMax(IActionExecutionEnvironment, Int32, Int32)
Applies this rule to The action execution environment/its current graph at most max times. Only applicable for parameterless rules. Shows better performance than the normal ApplyMinMax called without parameters. No Matched/Finished events are triggered by this function (needed for visual debugging).
Public methodApplyMinMax(IActionExecutionEnvironment, Int32, Int32, Object)
Applies this rule to the given processing environment/its current graph at most max times. No Matched/Finished events are triggered by this function (needed for visual debugging). The null parameter check is omitted also.
Public methodApplyPlus(IActionExecutionEnvironment)
Applies this rule to the given processing environment/its current graph as often as possible. Only applicable for parameterless rules. Shows better performance than the normal ApplyPlus called without parameters. No Matched/Finished events are triggered by this function (needed for visual debugging).
Public methodApplyPlus(IActionExecutionEnvironment, Object)
Applies this rule to the given processing environment/its current graph as often as possible. No Matched/Finished events are triggered by this function (needed for visual debugging). The null parameter check is omitted also.
Public methodApplyStar(IActionExecutionEnvironment)
Applies this rule to the given processing environment/its current graph as often as possible. Only applicable for parameterless rules. Shows better performance than the normal ApplyStar called without parameters. No Matched/Finished events are triggered by this function (needed for visual debugging).
Public methodApplyStar(IActionExecutionEnvironment, Object)
Applies this rule to the given processing environment/its current graph as often as possible. No Matched/Finished events are triggered by this function (needed for visual debugging). The null parameter check is omitted also.
Public methodFilter
Filters the matches found by this action
(Inherited from IActionCore.)
Public methodMatch
Searches for a graph pattern as specified by RulePattern in the current graph of the graph processing environment.
(Inherited from IActionCore.)
Public methodModify
Performs the rule specific modifications to the current graph of the graph processing environment with the given match. The graph and match object must have the correct type for the used backend (and this action).
(Inherited from IActionCore.)
Public methodModifyAll
Performs the rule specific modifications to the current graph of the graph processing environment with all of the given matches. The graph and match object must have the correct type for the used backend. No OnRewritingNextMatch events are triggered by this function (needed for visual debugging), in contrast to the Replace function of the action execution environment.
Public methodReserve
Returns a list of arrays with the given number of list elements; the array size is as needed for storing the return values. The list/its members are only valid until the next allocate or graph rewrite with this rule. Internal memory optimization.
(Inherited from IActionCore.)
Top
See Also