Exemplo n.º 1
0
        /// <summary>
        /// Generates the facts for this object as a member of a collection.
        /// </summary>
        /// <param name="parent">The parent path.</param>
        /// <param name="parentObject">The parent object.</param>
        /// <returns>An IList of facts.</returns>
        public virtual IList <WME> GenerateFactsForObjectInCollection(string parent, ObjectRelationBase parentObject)
        {
            List <WME> list = new List <WME>();

            parent = MakePredicate(parent, GetType().Name);
            list.Add(new WME(new ObjectRelationTerm(parentObject), parent, new EntityObjectTerm(this)));
            MakeFacts(list, parent);
            return(list);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ObjectRelationTerm"/> class.
 /// </summary>
 /// <param name="objectRelation">The object relation.</param>
 public ObjectRelationTerm(ObjectRelationBase objectRelation)
     : base(objectRelation)
 {
     _termType = TermType.ObjectRelation;
 }
 /// <summary>
 /// Generates the facts for this object as a member of a collection.
 /// </summary>
 /// <param name="parent">The parent path.</param>
 /// <param name="parentObject">The parent object.</param>
 /// <returns>An IList of facts.</returns>
 public virtual IList<WME> GenerateFactsForObjectInCollection(string parent, ObjectRelationBase parentObject)
 {
     List<WME> list = new List<WME>();
     parent = MakePredicate(parent, GetType().Name);
     list.Add(new WME(new ObjectRelationTerm(parentObject), parent, new EntityObjectTerm(this)));
     MakeFacts(list, parent);
     return list;
 }
Exemplo n.º 4
0
 /// <summary>
 /// Generates the facts for this object as a member of a collection.
 /// </summary>
 /// <param name="parent">The parent path.</param>
 /// <param name="parentObject">The parent object.</param>
 /// <returns>An IList of facts.</returns>
 public IList <WME> GenerateFactsForObjectInCollection(string parent, ObjectRelationBase parentObject)
 {
     throw new Exception("The method or operation is not implemented.");
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ObjectRelationTerm"/> class.
 /// </summary>
 /// <param name="objectRelation">The object relation.</param>
 public ObjectRelationTerm(ObjectRelationBase objectRelation) : base(objectRelation)
 {
     _termType = TermType.ObjectRelation;
 }
Exemplo n.º 6
0
 /// <summary>
 /// Generates the facts for this object as a member of a collection.
 /// </summary>
 /// <param name="parent">The parent path.</param>
 /// <param name="parentObject">The parent object.</param>
 /// <returns>An IList of facts.</returns>
 public IList<WME> GenerateFactsForObjectInCollection(string parent, ObjectRelationBase parentObject)
 {
     throw new Exception("The method or operation is not implemented.");
 }