コード例 #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;
 }
コード例 #2
0
ファイル: PlanGraph.cs プロジェクト: tmaierhofer/grgen
        /// <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;
        }
コード例 #3
0
        protected SearchPlanNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem)
        {
            NodeType  = nodeType;
            ElementID = elemID;
            IsPreset  = isPreset;

            PatternElement = patternElem;
        }
コード例 #4
0
        protected SearchPlanNode(PlanNode planNode)
        {
            NodeType  = planNode.NodeType;
            ElementID = planNode.ElementID;
            IsPreset  = planNode.IsPreset;

            PatternElement = planNode.PatternElement;
        }
コード例 #5
0
ファイル: PlanGraph.cs プロジェクト: tmaierhofer/grgen
        /// <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;
        }
コード例 #6
0
ファイル: PlanGraph.cs プロジェクト: tmaierhofer/grgen
 /// <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);
 }
コード例 #7
0
 public static Type GetType(PlanNodeType type)
 {
     return(DerivedTypeToType[type]);
 }
コード例 #8
0
 public SearchPlanNodeNode(PlanNodeType nodeType, int elemID, bool isPreset, PatternElement patternElem)
     : base(nodeType, elemID, isPreset, patternElem)
 {
 }
コード例 #9
0
ファイル: PlanGraph.cs プロジェクト: jblomer/GrGen.NET
        /// <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;
        }
コード例 #10
0
ファイル: PlanGraph.cs プロジェクト: jblomer/GrGen.NET
        /// <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;
        }
コード例 #11
0
ファイル: PlanGraph.cs プロジェクト: jblomer/GrGen.NET
 /// <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);
 }