public static RulesEngineGraphData GetGraphData(this RulesEngine engine)
		{
			var visitor = new GraphRulesEngineVisitor();
			engine.Visit(visitor);

			return visitor.GetGraphData();
		}
        RulesEngineGraph CreateRulesEngineGraph(OdoyuleRulesEngine machine)
        {
            var visitor = new GraphRulesEngineVisitor();
            machine.Accept(visitor);

            return visitor.Graph;
        }
        public static RulesEngineGraph GetGraph(this OdoyuleRulesEngine rulesEngine)
        {
            var inspector = new GraphRulesEngineVisitor();

            rulesEngine.Accept(inspector);

            return inspector.Graph;
        }
示例#4
0
        public static RulesEngineGraphData GetGraphData(this RulesEngine engine)
        {
            var visitor = new GraphRulesEngineVisitor();

            engine.Visit(visitor);

            return(visitor.GetGraphData());
        }
        RulesEngineGraph CreateRulesEngineGraph(RulesEngine machine)
        {
            var visitor = new GraphRulesEngineVisitor();

            machine.Accept(visitor);

            return(visitor.Graph);
        }
示例#6
0
        public static RulesEngineGraph GetGraph(this OdoyuleRulesEngine rulesEngine)
        {
            var inspector = new GraphRulesEngineVisitor();

            rulesEngine.Accept(inspector);

            return(inspector.Graph);
        }
        public static void ShowVisualizer(this RulesEngine engine)
        {
            var visitor = new GraphRulesEngineVisitor();
            engine.Accept(visitor);

            RulesEngineGraph graph = visitor.Graph;

            RulesEngineDebugVisualizer.Show(graph);
        }
示例#8
0
        public static void ShowVisualizer(this RulesEngine engine)
        {
            var visitor = new GraphRulesEngineVisitor();

            engine.Accept(visitor);

            RulesEngineGraph graph = visitor.Graph;

            RulesEngineDebugVisualizer.Show(graph);
        }
        public Graph CreateGraph(RulesEngine engine)
        {
            var visitor = new GraphRulesEngineVisitor();
            engine.Visit(visitor);

            var graph = new AdjacencyGraph<Vertex, Edge<Vertex>>();

            visitor.Vertices.Each(x => graph.AddVertex(x));
            visitor.Edges.Each(x => graph.AddEdge(new Edge<Vertex>(x.From, x.To)));

            GleeGraphPopulator<Vertex, Edge<Vertex>> glee = graph.CreateGleePopulator();

            glee.NodeAdded += NodeStyler;
            glee.EdgeAdded += EdgeStyler;
            glee.Compute();

            Graph gleeGraph = glee.GleeGraph;

            return gleeGraph;
        }