Free cookie consent management tool by TermsFeed Policy Generator

source: branches/MPI/HeuristicLab.Operators.MPISupport/3.3/BinaryTransport/Data/DoubleValueTransfer.cs @ 13847

Last change on this file since 13847 was 7544, checked in by svonolfe, 13 years ago

Improved performance, added MPISolutionsCreator (#1542)

File size: 688 bytes
Line 
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using HeuristicLab.Core;
6using HeuristicLab.Data;
7
8namespace HeuristicLab.Operators.MPISupport.BinaryTransport {
9  [Serializable]
10  class DoubleValueTransfer {
11    public double Value { get; set; }
12
13    public static DoubleValueTransfer Convert(DoubleValue item) {
14      DoubleValueTransfer result = new DoubleValueTransfer();
15
16      result.Value = item.Value;
17
18      return result;
19    }
20
21    public static DoubleValue Convert(DoubleValueTransfer item) {
22      DoubleValue result = new DoubleValue();
23
24      result.Value = item.Value;
25
26      return result;
27    }
28  }
29}
Note: See TracBrowser for help on using the repository browser.