Package jmt.engine.dataAnalysis

Examples of jmt.engine.dataAnalysis.SimParameters


      // Create a class SimParameter, whose parameters will be shared by all
      // dynamic data analyzer in order to compute confidence intervals.
      // For example, number of batches, batch size, ecc..

      //this constructor will use default values
      SimParameters simParam = new SimParameters();

      //TODO: qui dovrei mettere blocchi tipo if (has attribute("batch")) then set(..) ecc
      //una volta aggiunti nello schema dell'xml, vanno letti e
      //inseriti coi rispettivi metodi set

      // {......}

      //TODO: finita la parte con parsing e set degli attributi, si mette questo metodo
      //(che per il momento si limita a settare i valori di default)

      //sets the reference in sim object
      sim.setSimParameters(simParam);

      //gets the default value of maxsamples
      //(max number of samples for each measure)
      int maxSamples = simParam.getMaxSamples();

      // Gets the timestamp value
      simParam.setTimestampValue(Long.toString(System.currentTimeMillis()));

      //-------------- end SIM PARAMETERS -------------------//

      // NEW Bertoli Marco -- Read MAX Samples if specified
      if (root.getAttribute("maxSamples") != "") {
        maxSamples = Integer.parseInt(root.getAttribute("maxSamples"));
        simParam.setMaxSamples(maxSamples);
      }
      // END

      // NEW Bertoli Marco -- Disables condidence interval as stopping criteria
      if (root.hasAttribute("disableStatisticStop")) {
        simParam.setDisableStatisticStop(root.getAttribute("disableStatisticStop").equalsIgnoreCase(Boolean.TRUE.toString()));
      }
      //END

      // MF08 0.7.4  Michael Fercu (Bertoli Marco) -- re-defines global logger attributes
      // for the purpose of passing them to the Logger constructor
      if (root.hasAttribute("logPath")) {
        String temp_lp = root.getAttribute("logPath");
        simParam.setLogPath(temp_lp);
      }
      if (root.hasAttribute("logDelimiter")) {
        String temp_ld = root.getAttribute("logDelimiter");
        simParam.setLogDelimiter(temp_ld);

      }
      if (root.hasAttribute("logDecimalSeparator")) {
        String temp_ld = root.getAttribute("logDecimalSeparator");
        simParam.setLogDecimalSeparator(temp_ld);

      }
      if (root.hasAttribute("logReplaceMode")) {
        String temp_lr = root.getAttribute("logReplaceMode");
        simParam.setLogReplaceMode(temp_lr);
      }
      if (root.hasAttribute("lastRunTime")) {
        String temp_ltv = root.getAttribute("lastRunTime");
        simParam.setTimestampValue(temp_ltv);
      }
      //END MF08
     
      //FIXME read measure logging attributes here...
View Full Code Here

TOP

Related Classes of jmt.engine.dataAnalysis.SimParameters

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.