Class LineageGlueRule
Represents a tree element creation rule.
public abstract class LineageGlueRule : Descriptor, IEquatable<Descriptor>, IComparable<Descriptor>
- Inheritance
-
LineageGlueRule
- Implements
- Derived
- Inherited Members
Constructors
LineageGlueRule(string, string, string, string, Action)
Creates a new rule (with no before/after dependencies).
protected LineageGlueRule(string displayName, string description, string sourceFlavorName, string outputFlavorName, LineageGlueRule.Action action)
Parameters
displayNamestringThe name of rule.
descriptionstringA short description of the rule.
sourceFlavorNamestringThe name of the flavor this rule applies to.
outputFlavorNamestringThe name of the flavor to which the created elements belong to.
actionLineageGlueRule.ActionThe action performed by the glue rule upon execution.
LineageGlueRule(string, string, string, string, Action, string[], string[])
Creates a new rule.
protected LineageGlueRule(string displayName, string description, string sourceFlavorName, string outputFlavorName, LineageGlueRule.Action action, string[] after, string[] before)
Parameters
displayNamestringThe name of rule.
descriptionstringA short description of the rule.
sourceFlavorNamestringThe name of the flavor this rule applies to.
outputFlavorNamestringThe name of the flavor to which the created elements belong to.
actionLineageGlueRule.ActionThe action this glue rule performs.
afterstring[]A list of rule names which are required to be executed before this rule. Only rules registered for the same source flavor can be specified (topological sorting within source flavor).
beforestring[]A list of rule names which are required to be executed after this rule. Only rules registered for the same source flavor can be specified (topological sorting within source flavor).
Properties
After
A list of rule names which are required to be executed before this rule.
public IList<string> After { get; }
Property Value
Remarks
Only rules registered for the same source flavor will be considered (topological sorting within source flavor).
Before
A list of rule names which are required to be executed after this rule.
public IList<string> Before { get; }
Property Value
Remarks
Only rules registered for the same source flavor will be considered (topological sorting within source flavor).
ExecutionAction
Gets the action this glue rule performs on the source element and/or element bucket upon execution.
public LineageGlueRule.Action ExecutionAction { get; }
Property Value
- LineageGlueRule.Action
The execution action.
OutputFlavor
The name of the flavor to which the created elements belong to.
public Flavor OutputFlavor { get; }
Property Value
SourceFlavor
The name of the flavor this rule applies to.
public Flavor SourceFlavor { get; }
Property Value
Methods
Execute(GlueRuleExecutionState)
Executes the rule.
public abstract void Execute(GlueRuleExecutionState state)
Parameters
stateGlueRuleExecutionStateThe current rule execution state.
Remarks
This has to be implemented by the rule classes.