Пример #1
0
 /** Inform simulation and editBox of new positions. */
 @Override
 public void dragged(Vec3d dist) {
   KeywordIndex kw =
       InputAgent.formatPointsInputs(pointsInput.getKeyword(), pointsInput.getValue(), dist);
   InputAgent.apply(this, kw);
   super.dragged(dist);
 }
Пример #2
0
  @Override
  public void earlyInit() {
    super.earlyInit();

    logTime = 0.0d;

    // Close the file if it is already open
    if (file != null) {
      file.close();
      file = null;
    }

    // Create the report file
    StringBuilder tmp = new StringBuilder(InputAgent.getReportFileName(InputAgent.getRunName()));
    tmp.append("-").append(this.getName());
    tmp.append(".log");
    file = new FileEntity(tmp.toString());
  }