Package org.jamesii.asf.integrationtest.bogus.application.simulator

Examples of org.jamesii.asf.integrationtest.bogus.application.simulator.BogusSimulatorFactoryA


    testTree1 = new SelectionTree(null);
    SelectedFactoryNode sfn1 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock(),
            new BogusSimulatorFactoryA()));
    testTree1.addVertex(sfn1);
    testTree1.addEdge(new Edge<>(sfn1, testTree1.getRoot()));

    testTree2 = new SelectionTree(null);
    SelectedFactoryNode sfn2 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock(),
            new BogusSimulatorFactoryA()));
    testTree2.addVertex(sfn2);
    testTree2.addEdge(new Edge<>(sfn2, testTree2.getRoot()));

    testTree3 = new SelectionTree(null);
    SelectedFactoryNode sfn3 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, (new ParameterBlock()).addSubBl(
                FlexibleBogusSimulatorFactory.SIM_PROPERTIES,
                TEST_PARAMETER_VALUE), new FlexibleBogusSimulatorFactory()));
    testTree3.addVertex(sfn3);
    testTree3.addEdge(new Edge<>(sfn3, testTree3.getRoot()));

    testTree4 = new SelectionTree(null);
    SelectedFactoryNode sfn4 =
        new SelectedFactoryNode(new SelectionInformation<>(
            AbstractProcessorFactory.class, new ParameterBlock().addSubBl(
                "test1", 1.0).addSubBl("test2", 2.0),
            new BogusSimulatorFactoryA()));
    testTree4.addVertex(sfn4);
    testTree4.addEdge(new Edge<>(sfn4, testTree4.getRoot()));
  }
View Full Code Here


    ParameterBlock pb = si.getParameter();
    pb.addSubBl("test1", 1.0).addSubBl("test2", 2.0);

    SelectionInformation<?> newSelectionInformation =
        new SelectionInformation<>(
            AbstractProcessorFactory.class, pb, new BogusSimulatorFactoryA());
    SelectedFactoryNode newFactoryNode =
        new SelectedFactoryNode(newSelectionInformation);
    testTree1.removeVertex(factoryNode);
    assertEquals(1, testTree1.getVertexCount());
    testTree1.addVertex(newFactoryNode);
View Full Code Here

    ParameterBlock pb2 = testTree2.toParamBlock();

    assertEquals(0, pb1.compareTo(pb2));
    assertNotNull(pb1.getSubBlock(ProcessorFactory.class.getName()));
    assertEquals(pb1.getSubBlockValue(ProcessorFactory.class.getName()),
        (new BogusSimulatorFactoryA()).getClass().getName());
  }
View Full Code Here

TOP

Related Classes of org.jamesii.asf.integrationtest.bogus.application.simulator.BogusSimulatorFactoryA

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.