Package jmt.engine.dataAnalysis

Examples of jmt.engine.dataAnalysis.Log


  /**
   * Used only for test.
   */
  public static boolean test(String fileName) {
    Log writer = new Log(fileName);
    Exponential e = new Exponential();
    ExponentialPar p = null;
    try {
      p = new ExponentialPar(1.0);
    } catch (IncorrectDistributionParameterException e1) {
      e1.printStackTrace();
    }
    for (int i = 0; i < 5; i++) {
      try {
        writer.write(e.nextRand(p));
      } catch (IncorrectDistributionParameterException e1) {
        e1.printStackTrace();
      }
    }
    writer.close();
    ReplayerPar reader = new ReplayerPar(fileName);
    for (int i = 0; i < 15; i++) {
      System.out.println(reader.getNext());
    }
    return false;
View Full Code Here

TOP

Related Classes of jmt.engine.dataAnalysis.Log

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.