Ejemplo n.º 1
0
 public SearchPlanEdgeNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem,
                           SearchPlanNodeNode patEdgeSrc, SearchPlanNodeNode patEdgeTgt)
     : base(nodeType, elemID, isPreset, patternElem)
 {
     PatternEdgeSource = patEdgeSrc;
     PatternEdgeTarget = patEdgeTgt;
 }
Ejemplo n.º 2
0
        /// <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;
        }
Ejemplo n.º 3
0
        protected SearchPlanNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem)
        {
            NodeType  = nodeType;
            ElementID = elemID;
            IsPreset  = isPreset;

            PatternElement = patternElem;
        }
Ejemplo n.º 4
0
        protected SearchPlanNode(PlanNode planNode)
        {
            NodeType  = planNode.NodeType;
            ElementID = planNode.ElementID;
            IsPreset  = planNode.IsPreset;

            PatternElement = planNode.PatternElement;
        }
Ejemplo n.º 5
0
        /// <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;
        }
Ejemplo n.º 6
0
 /// <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);
 }
Ejemplo n.º 7
0
 public static Type GetType(PlanNodeType type)
 {
     return(DerivedTypeToType[type]);
 }
Ejemplo n.º 8
0
 public SearchPlanNodeNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem)
     : base(nodeType, elemID, isPreset, patternElem)
 {
 }
Ejemplo n.º 9
0
        /// <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;
        }
Ejemplo n.º 10
0
        /// <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;
        }
Ejemplo n.º 11
0
 /// <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);
 }