Esempio n. 1
0
        /// <summary>
        /// Initialises a new instance of the <see cref="RawObservations"/> class.
        /// </summary>
        public RawObservations()
        {
            this.version   = 3;
            this.location  = string.Empty;
            this.date      = string.Empty;
            this.notes     = string.Empty;
            this.length    = ObservationLength.Unspecified;
            this.intensity = ObservationIntensity.NotRecorded;
            this.timeOfDay = ObservationTimeOfDay.NotRecorded;
            this.weather   = ObservationWeather.NotRecorded;

            this.habitats = new RawHabitats();
            this.species  = new TypeString();
            this.heard    = new TypeString();
        }
Esempio n. 2
0
 /// <summary>
 /// Set a new length in the model.
 /// </summary>
 /// <param name="newLength">new length</param>
 public void SetLength(ObservationLength newLength)
 {
     this.observations.Length = newLength;
 }
Esempio n. 3
0
 /// <summary>
 /// Set the new observation length
 /// </summary>
 /// <param name="newLength">new length</param>
 private void NewObservationLength(ObservationLength newLength)
 {
     this.observations.SetLength(newLength);
 }