@Override public String toString(){
  String str=id;
  str+=" [triggers=";
  for (  Template trigger : triggers) {
    str+="(" + trigger + ")"+ " v ";
  }
  str=str.substring(0,str.length() - 3) + "] with " + rules.size()+ " rules: ";
  for (  Rule rule : rules) {
    str+=rule.getRuleId() + ",";
  }
  return str.substring(0,str.length() - 1);
}

@ Override public String toString ( ) { String str = id ; str += " [triggers=" ; for ( Template trigger : triggers ) { str += "(" + trigger + ")" + " v " ; } str = str . substring ( 0 , str . length ( ) - 3 ) + "] with " + rules . size ( ) + " rules: " ; for ( Rule rule : rules ) { str += rule . getRuleId ( ) + "," ; } return str . substring ( 0 , str . length ( ) - 1 ) ; }
returns the string representation of the model
