Examples of IHardwareSetup


Examples of org.jamesii.perfdb.entities.IHardwareSetup

    Iterator<?> results =
        session.createQuery(
            "from HardwareSetup where networkTopology='" + nwTopology
                + "' and networkSpeed=" + nwSpeed).iterate();
    while (results.hasNext()) {
      IHardwareSetup setup = (IHardwareSetup) results.next();
      if (setup.getMachines().equals(machines)) {
        return setup;
      }
    }
    HardwareSetup hwSetup =
        new HardwareSetup(name, desc, nwTopology, nwSpeed, machines);
View Full Code Here

Examples of org.jamesii.perfdb.entities.IHardwareSetup

    HashSet<IMachine> otherMachines = new HashSet<>(machines);
    IMachine hal9000 =
        perfDB.newMachine("HAL 9000", "I'm sorry, Dave...",
            Strings.getMACAddressString(new byte[] { 2, 0, 0, 1 }), -1);
    otherMachines.add(hal9000);
    IHardwareSetup halSetup =
        perfDB.newHardwareSetup("TestSetup2", "which also is unique!",
            "strong", 0, otherMachines);
    List<IHardwareSetup> setups = perfDB.getAllHardwareSetups();
    assertEquals(2, setups.size());
    assertEquals(false, perfDB.deleteMachine(hal9000));
View Full Code Here

Examples of org.jamesii.perfdb.entities.IHardwareSetup

    SelectionTree selectionTree = new SelectionTree(null);
    IRuntimeConfiguration runtimeConfiguration =
        perfDB.newRuntimeConfiguration(selectionTree, false);
    perfDB.newRuntimeConfiguration(selectionTree, false);

    IHardwareSetup hardwareSetup = perfDB.getAllHardwareSetups().get(0);
    perfDB.newApplication(problemInstance, runtimeConfiguration, hardwareSetup,
        new MyJamesSimDataProvider());
    perfDB.newApplication(
        perfDB.newProblemInstance(problemDefinition, 1234L, SimSystem
            .getRNGGenerator().getRNGFactory().getFactoryInstance().getClass()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.