Exemplo n.º 1
0
 /**
  * Creates a new relation with the given name and adds it to this utterance.
  *
  * @param name the name of the new relation
  * @return the newly created relation
  */
 public Relation createRelation(String name) {
   Relation relation = new Relation(name, this);
   relations.setObject(name, relation);
   return relation;
 }
Exemplo n.º 2
0
 /**
  * Sets the named feature.
  *
  * @param name the name of the feature
  * @param value the value of the feature
  */
 public void setObject(String name, Object value) {
   features.setObject(name, value);
 }