source: trunk/CrypPlugins/PeerToPeerJobs/IJobResult.cs @ 1448

Last change on this file since 1448 was 1448, checked in by Sven Rech, 12 years ago

replaced all BigInteger stuff with the new BigInteger class from .net 4.0

But there are still problems with some plugins (Keysearcher, BigInteger Operations...)

File size: 1.8 KB
Line 
1/* Copyright 2010 Team CrypTool (Christian Arnold), Uni Duisburg-Essen
2
3   Licensed under the Apache License, Version 2.0 (the "License");
4   you may not use this file except in compliance with the License.
5   You may obtain a copy of the License at
6
7       http://www.apache.org/licenses/LICENSE-2.0
8
9   Unless required by applicable law or agreed to in writing, software
10   distributed under the License is distributed on an "AS IS" BASIS,
11   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12   See the License for the specific language governing permissions and
13   limitations under the License.
14*/
15
16using System;
17using System.Collections.Generic;
18using System.Linq;
19using System.Text;
20using Cryptool.PluginBase.Miscellaneous;
21using System.Numerics;
22
23namespace Cryptool.Plugins.PeerToPeer.Jobs
24{
25    public interface IJobResult<JobResultType>
26    {
27        /// <summary>
28        /// in this context a unique identifier for the job, whose
29        /// Result is represented by this class
30        /// </summary>
31        BigInteger JobId { get; set; }
32        /// <summary>
33        /// You can allow intermediate results by using this flag
34        /// </summary>
35        bool IsIntermediateResult { get; set; }
36        /// <summary>
37        /// Timespan between start and end processing
38        /// </summary>
39        TimeSpan ProcessingTime { get; set; }
40        JobResultType Result { get; set; }
41        /// <summary>
42        /// serializes this class, so you can recover all class information by deserializing.
43        /// HINT: You can Deserialize a byte[] representation of this class by using the constructor with
44        /// the byte[] parameter!
45        /// </summary>
46        /// <returns>serialized byte[] representation of this class</returns>
47        byte[] Serialize();
48    }
49}
Note: See TracBrowser for help on using the repository browser.