Free cookie consent management tool by TermsFeed Policy Generator

source: branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/ResponseCalendar.cs @ 4133

Last change on this file since 4133 was 4133, checked in by cneumuel, 14 years ago
  • Made HiveExperiment storable, so that a running HiveExperiment can be disconnected, stored and later resumed. (#1115)
  • Added Log to each JobItem (#1115)
File size: 898 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Runtime.Serialization;
6using HeuristicLab.Hive.Contracts.BusinessObjects;
7using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
8
9namespace HeuristicLab.Hive.Contracts {
10  [StorableClass]
11  public class ResponseCalendar : Response {
12    [Storable]
13    [DataMember]
14    public bool ForceFetch { get; set; }
15    [Storable]
16    [DataMember]
17    public IEnumerable<AppointmentDto> Appointments { get; set; }
18
19    public override Common.IDeepCloneable Clone(Common.Cloner cloner) {
20      ResponseCalendar clone = (ResponseCalendar) base.Clone(cloner);
21      clone.Appointments = (from a in this.Appointments
22                           select (AppointmentDto)cloner.Clone(a)).ToList();
23      clone.ForceFetch = this.ForceFetch;
24      return clone;
25    }
26  }
27}
Note: See TracBrowser for help on using the repository browser.