Examples of resetInstance()


Examples of de.cesr.parma.core.PmParameterManager.resetInstance()

    PmParameterManager pm = PmParameterManager.getNewInstance();
    pm.setParam(PmBasicPa.NUM_AGENTS, new Integer(15));

    assertEquals(pm.getParam(PmBasicPa.NUM_AGENTS), new Integer(15));

    pm.resetInstance();
    assertEquals(pm.getParam(PmBasicPa.NUM_AGENTS),
        PmBasicPa.NUM_AGENTS.getDefaultValue());

    assertEquals(PmParameterManager.getParameter(PmBasicPa.NUM_AGENTS),
        new Integer(10));
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.