public SearchPlanEdgeNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem, SearchPlanNodeNode patEdgeSrc, SearchPlanNodeNode patEdgeTgt) : base(nodeType, elemID, isPreset, patternElem) { PatternEdgeSource = patEdgeSrc; PatternEdgeTarget = patEdgeTgt; }
/// <summary> /// Instantiates a node plan node. /// </summary> /// <param name="patNode">The pattern node for this plan node.</param> /// <param name="elemID">The element ID for this plan node.</param> /// <param name="isPreset">True, if this element is a known element.</param> public PlanNode(PatternNode patNode, int elemID, bool isPreset) { NodeType = PlanNodeType.Node; ElementID = elemID; IsPreset = isPreset; PatternElement = patNode; }
protected SearchPlanNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem) { NodeType = nodeType; ElementID = elemID; IsPreset = isPreset; PatternElement = patternElem; }
protected SearchPlanNode(PlanNode planNode) { NodeType = planNode.NodeType; ElementID = planNode.ElementID; IsPreset = planNode.IsPreset; PatternElement = planNode.PatternElement; }
/// <summary> /// Instantiates an edge plan node. /// </summary> /// <param name="patEdge">The pattern edge for this plan node.</param> /// <param name="elemID">The element ID for this plan node.</param> /// <param name="isPreset">True, if this element is a known element.</param> /// <param name="patternEdgeSource">The plan node corresponding to the source of the pattern edge.</param> /// <param name="patternEdgeTarget">The plan node corresponding to the target of the pattern edge.</param> public PlanNode(PatternEdge patEdge, int elemID, bool isPreset, PlanNode patternEdgeSource, PlanNode patternEdgeTarget) { NodeType = PlanNodeType.Edge; ElementID = elemID; IsPreset = isPreset; PatternElement = patEdge; PatternEdgeSource = patternEdgeSource; PatternEdgeTarget = patternEdgeTarget; }
/// <summary> /// Instantiates a root plan node. /// </summary> /// <param name="rootName">The name for the root plan node.</param> public PlanNode(String rootName) { NodeType = PlanNodeType.Root; PatternElement = new PatternNode(-1, null, "", rootName, rootName, null, null, 0.0f, -1, false, null, null, null, null, null, null, false, null); }
public static Type GetType(PlanNodeType type) { return(DerivedTypeToType[type]); }
public SearchPlanNodeNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem) : base(nodeType, elemID, isPreset, patternElem) { }