Esempio n. 1
0
        /// <summary>
        /// Creates a new relation with the given name and adds it to this utterance.
        /// </summary>
        /// <param name="name">The name of the new relation.</param>
        /// <returns>the newly created relation</returns>
        public virtual Relation createRelation(string name)
        {
            Relation relation = new Relation(name, this);

            relations.setObject(name, relation);
            return(relation);
        }
Esempio n. 2
0
 /// <summary>
 /// Sets the named feature.
 /// </summary>
 /// <param name="name">The name of the feature.</param>
 /// <param name="value">The value of the feature.</param>
 public virtual void setObject(string name, object value)
 {
     features.setObject(name, value);
 }