Exemplo n.º 1
0
 public StringSolution convert() {
   StringSolution s = new StringSolution();
   for (Action a : actions) {
     s.actions.add(a.toString());
     s.domain = domain;
     s.domainName = domainName;
     s.generatingConditions = generatingConditions;
     s.problem = problem;
     s.seed = seed;
   }
   return s;
 }
Exemplo n.º 2
0
 public StringSolution convert(String template) {
   StringSolution s = new StringSolution();
   Template t;
   try {
     t = Template.readTemplate(new StringReader(template));
     for (Action a : actions) {
       s.actions.add(t.apply_template(a));
       s.domain = domain;
       s.domainName = domainName;
       s.generatingConditions = generatingConditions;
       s.problem = problem;
       s.seed = seed;
     }
     return s;
   } catch (Exception e) {
     // TODO Auto-generated catch block
     // e.printStackTrace();
     return convert();
   }
 }