Esempio n. 1
0
 public Fact(FactType factType, DateInfo date, PlaceReference place, String value)
 {
     SetType(factType);
     SetDate(date);
     SetPlace(place);
     SetValue(value);
 }
Esempio n. 2
0
 public Fact(FactType factType, DateInfo date, PlaceReference place, String value)
 {
     SetType(factType);
     SetDate(date);
     SetPlace(place);
     SetValue(value);
 }
 /// <summary>
 /// Visits the place reference.
 /// </summary>
 /// <param name="place">The place reference to visit.</param>
 public override void VisitPlaceReference(Gx.Conclusion.PlaceReference place)
 {
     if (place.Id != null)
     {
         this.dictionary.Add(place.Id, place);
     }
     base.VisitPlaceReference(place);
 }
 public virtual void VisitPlaceReference(PlaceReference place)
 {
     this.contextStack.Push(place);
     List<Field> fields = place.Fields;
     if (fields != null)
     {
         foreach (Field field in fields)
         {
             field.Accept(this);
         }
     }
     this.contextStack.Pop();
 }
Esempio n. 5
0
 /**
  * Create a date/place event with the passed in type and values.
  *
  * @param EventType the event type.
  * @param date The date of applicability of this event.
  * @param place The place of applicability of this event.
  */
 public Event(EventType EventType, DateInfo date, PlaceReference place)
 {
     SetType(EventType);
     SetDate(date);
     SetPlace(place);
 }
Esempio n. 6
0
 /**
  * Build up this event with a place.
  *
  * @param place The place.
  * @return this.
  */
 public Event SetPlace(PlaceReference place)
 {
     Place = place;
     return(this);
 }
Esempio n. 7
0
 /**
  * Build out this coverage with spatial coverage.
  *
  * @param spatial The spatial coverage.
  * @return this.
  */
 public Coverage SetSpatial(PlaceReference spatial)
 {
     Spatial = spatial;
     return this;
 }
 /// <summary>
 /// Visits the place reference.
 /// </summary>
 /// <param name="place">The place reference to visit.</param>
 public virtual void VisitPlaceReference(PlaceReference place)
 {
     this.contextStack.Push(place);
     if (place.Fields != null)
     {
         foreach (Field field in place.Fields)
         {
             VisitField(field);
         }
     }
     this.contextStack.Pop();
 }
Esempio n. 9
0
 /**
  * Create a date/place event with the passed in type and values.
  *
  * @param EventType the event type.
  * @param date The date of applicability of this event.
  * @param place The place of applicability of this event.
  */
 public Event(EventType EventType, DateInfo date, PlaceReference place)
 {
     SetType(EventType);
     SetDate(date);
     SetPlace(place);
 }
Esempio n. 10
0
 /**
  * Build up this event with a place.
  *
  * @param place The place.
  * @return this.
  */
 public Event SetPlace(PlaceReference place)
 {
     Place = place;
     return this;
 }
Esempio n. 11
0
 public Fact(FactType factType, DateInfo date, PlaceReference place)
     :this(factType, date, place, null)
 {
 }
 public override void VisitPlaceReference(PlaceReference place)
 {
     BindIfNeeded(place);
     base.VisitPlaceReference(place);
 }
Esempio n. 13
0
 public Fact(FactType factType, DateInfo date, PlaceReference place)
     : this(factType, date, place, null)
 {
 }