Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/10 10:26:55 (14 years ago)
Author:
cneumuel
Message:
  • Refactored HL.Hive.Experiment. JobItems are not called HiveJobs and OptimizerJobs do not contain a hierarchy anymore.
  • Dynamic generation of jobs on a slave are not reflected on the client user interface.
  • Optimizer-Trees are now strictly synchronized with the HiveJob-Trees (also the ComputeInParallel property is taken into account when the Child HiveJobs are created)
  • Improved the way a class can report progress and lock the UI (IProgressReporter, IProgress, Progress, ProgressView)
  • Changes were made to the config-files, so that server and clients work with blade12.hpc.fh-hagenberg.at
  • Lots of small changes and bugfixes
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.3-Hive/sources/HeuristicLab.Hive/HeuristicLab.Hive.Contracts/3.3/BusinessObjects/SerializedJob.cs

    r4133 r4423  
    2727using HeuristicLab.Persistence.Default.CompositeSerializers.Storable;
    2828using HeuristicLab.Common;
     29using System.IO;
     30using HeuristicLab.Persistence.Default.Xml;
     31using HeuristicLab.Hive.JobBase;
    2932
    3033namespace HeuristicLab.Hive.Contracts.BusinessObjects {
     
    5255      return Clone(new Cloner());
    5356    }
     57
     58    public static byte[] Serialize(object obj) {
     59      MemoryStream memStream = new MemoryStream();
     60      XmlGenerator.Serialize(obj, memStream);
     61      byte[] jobByteArray = memStream.ToArray();
     62      memStream.Dispose();
     63      return jobByteArray;
     64    }
     65
     66    public static T Deserialize<T>(byte[] sjob) {
     67      MemoryStream memStream = new MemoryStream(sjob);
     68      T job = XmlParser.Deserialize<T>(memStream);
     69      memStream.Dispose();
     70      return job;
     71    }
    5472  }
    5573}
Note: See TracChangeset for help on using the changeset viewer.