예제 #1
0
 public GraphAssemblerTests()
 {
     coordinateFactory = new TestCoordinateFactory();
     vertexFactory     = new TestVertexFactory();
     costFactory       = new TestCostFactory();
     graphFactory      = new TestGraphFactory();
     radarFactory      = new CoordinateAroundRadarFactory();
     graphAssembler    = new GraphAssemble(vertexFactory,
                                           coordinateFactory, graphFactory, costFactory, radarFactory);
 }
예제 #2
0
 public GraphSerializerTests()
 {
     formatter       = new BinaryFormatter();
     graphFactory    = new TestGraphFactory();
     radarFactory    = new CoordinateAroundRadarFactory();
     vertexConverter = new TestVertexInfoSerializationConverter(radarFactory);
     vertexFactory   = new TestVertexFactory();
     notSerializableCoordinateFactory = new NotSerializableCoordinateFactory();
     coordinateFactory = new TestCoordinateFactory();
     costFactory       = new TestCostFactory();
 }
예제 #3
0
 public GraphAssemble(
     IVertexFactory vertexFactory,
     ICoordinateFactory coordinateFactory,
     IGraphFactory graphFactory,
     IVertexCostFactory costFactory,
     ICoordinateRadarFactory radarFactory)
 {
     this.vertexFactory     = vertexFactory;
     this.coordinateFactory = coordinateFactory;
     this.graphFactory      = graphFactory;
     this.costFactory       = costFactory;
     this.radarFactory      = radarFactory;
     percentRange           = new ValueRange(100, 0);
 }
예제 #4
0
        public AlgorithmTest()
        {
            radarFactory      = new CoordinateAroundRadarFactory();
            graphFactory      = new TestGraphFactory();
            vertexFactory     = new TestVertexFactory();
            costFactory       = new TestVertexCostFactory();
            coordinateFactory = new TestCoordinateFactory();

            graphAssemble = new GraphAssemble(vertexFactory,
                                              coordinateFactory,
                                              graphFactory,
                                              costFactory,
                                              radarFactory);

            testAssemble = new TestGraphAssemble(graphAssemble);
        }
예제 #5
0
 public VertexSerializationInfoConverter(ICoordinateRadarFactory factory)
 {
     radarFactory = factory;
 }
예제 #6
0
 public Vertex3DSerializationInfoConverter(ICoordinateRadarFactory factory, IModel3DFactory model3DFactory)
 {
     this.factory        = factory;
     this.model3DFactory = model3DFactory;
 }
예제 #7
0
 public TestVertexInfoSerializationConverter(ICoordinateRadarFactory factory)
 {
     this.factory = factory;
 }