// .partialPlanStats,.sequence,.transactions
  public String[] toOutputString() {
    StringBuffer pps = new StringBuffer();
    for (Iterator it = partialPlans.values().iterator(); it.hasNext(); ) {
      PwPartialPlanImpl partialPlan = (PwPartialPlanImpl) it.next();
      pps.append(id.toString()).append("\t").append(partialPlan.getId().toString()).append("\t");
      pps.append(partialPlan.getStepNumber()).append("\t");
      pps.append(partialPlan.getTokenList().size()).append("\t");
      pps.append(partialPlan.getVariableList().size()).append("\t");
      pps.append(partialPlan.getConstraintList().size()).append("\t0\n");
    }
    StringBuffer seq = new StringBuffer(url);
    seq.append((char) Integer.parseInt(DbConstants.SEQ_COL_SEP, 16));
    seq.append(id.toString()).append((char) Integer.parseInt(DbConstants.SEQ_COL_SEP, 16));
    // fake rule text -- dummy path must match paths in rules file
    seq.append("--begin /dummy/rulesource/model.nddl\n");
    seq.append("class Rover{\npredicate At{\n Locations m_location;\n eq(duration, 1);\n}}");
    seq.append((char) Integer.parseInt(DbConstants.SEQ_LINE_SEP, 16));

    StringBuffer trans = new StringBuffer();
    for (Iterator it = transactions.values().iterator(); it.hasNext(); ) {
      PwDBTransaction t = (PwDBTransaction) it.next();
      trans.append(t.toOutputString());
    }
    return new String[] {pps.toString(), seq.toString(), trans.toString()};
  }
 // for testing only
 public void addPartialPlan(final PwPartialPlanImpl partialPlan, final boolean forTesting) {
   partialPlans.put(partialPlan.getName(), partialPlan);
   planNamesInFilesystem.add(partialPlan.getName());
 }
 private void loadPartialPlanFiles(final String name) throws ResourceNotFoundException {
   if (MySQLDB.getPartialPlanIdByName(id, name) == null) {
     PwPartialPlanImpl.loadFiles(new File(url + System.getProperty("file.separator") + name));
   }
 }
 public void addPartialPlan(final PwPartialPlanImpl partialPlan) {
   partialPlans.put(partialPlan.getName(), partialPlan);
   planNamesInDb.add(partialPlan.getName());
 }