예제 #1
0
  public void generate() {
    HTMLReport report = new HTMLReport();
    report.beginHTML();
    String title = "Encog Workbench v" + EncogWorkBench.VERSION;
    report.title(title);
    report.beginBody();
    report.h1(title);
    report.para(
        "Encog Workbench is released under the Apache License.  For more information see the license file released with the Encog Workbench.");
    report.h3(EncogWorkBench.COPYRIGHT);

    report.beginTable();
    report.tablePair("Java Version", System.getProperty("java.version"));
    report.tablePair("Java 64/32-Bit", System.getProperty("sun.arch.data.model"));
    report.tablePair("Processor Count", "" + Runtime.getRuntime().availableProcessors());
    report.tablePair("OS Name/Version", "" + ByteOrder.nativeOrder().toString());
    report.tablePair("Encog Core Version", "" + Encog.VERSION);
    report.endTable();

    report.h3("Active JAR Files");
    report.beginList();
    for (final String file : this.jars) {
      report.listItem(file);
    }
    report.endList();
    report.endBody();
    report.endHTML();

    this.display(report.toString());
  }
 public UnknownObjectTab(ProjectEGFile encogObject) {
   super(encogObject);
   HTMLReport report = new HTMLReport();
   report.beginHTML();
   String title = "Unknown Encog Object Type";
   report.title(title);
   report.beginBody();
   report.h1(title);
   report.para("Unknown Object: " + encogObject.getEncogType());
   report.endBody();
   report.endHTML();
   this.display(report.toString());
 }
  public void init() {
    HTMLReport report = new HTMLReport();
    report.beginHTML();
    String title = "Unknown File Type";
    report.title(title);
    report.beginBody();
    report.h1(title);
    report.para("Unknown file type.  Do not know how to display.");

    report.beginTable();
    report.tablePair("File Size", Format.formatMemory(this.getEncogObject().getFile().length()));
    report.tablePair(
        "Last Modified", new Date(this.getEncogObject().getFile().lastModified()).toString());

    report.endTable();

    report.endBody();
    report.endHTML();
    this.display(report.toString());
  }