Free cookie consent management tool by TermsFeed Policy Generator

source: branches/SimulationCore/HeuristicLab.SimulationCore/3.3/DiscreteEvent/Reporter.cs @ 10450

Last change on this file since 10450 was 10450, checked in by abeham, 10 years ago

#1610: Added a base infrastructure for discrete event simulation

File size: 730 bytes
Line 
1using HeuristicLab.Common;
2using HeuristicLab.Optimization;
3using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
4
5namespace HeuristicLab.SimulationCore {
6  [StorableClass]
7  public abstract class Reporter<TModel> : IReporter<TModel> where TModel : IModel {
8
9    [StorableConstructor]
10    protected Reporter(bool deserializing) { }
11    protected Reporter(Reporter<TModel> original, Cloner cloner) {
12      cloner.RegisterClonedObject(original, this);
13    }
14    protected Reporter() { }
15
16    public abstract void UpdateReporting(TModel model, ResultCollection results);
17
18    public object Clone() { return Clone(new Cloner()); }
19    public abstract IDeepCloneable Clone(Cloner cloner);
20  }
21}
Note: See TracBrowser for help on using the repository browser.