Free cookie consent management tool by TermsFeed Policy Generator

Changeset 1761 for trunk


Ignore:
Timestamp:
05/08/09 13:27:14 (15 years ago)
Author:
gkronber
Message:

added progress calculation to hive-engine (just reads variable "Progress" vom global scope) #545 (Engine which can be executed in the Hive)

Location:
trunk/sources/HeuristicLab.Hive.Engine/3.2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/HeuristicLab.Hive.Engine-3.2.csproj

    r1589 r1761  
    106106      <Name>HeuristicLab.DataAccess-3.2</Name>
    107107    </ProjectReference>
     108    <ProjectReference Include="..\..\HeuristicLab.Data\3.2\HeuristicLab.Data-3.2.csproj">
     109      <Project>{F473D9AF-3F09-4296-9F28-3C65118DAFFA}</Project>
     110      <Name>HeuristicLab.Data-3.2</Name>
     111    </ProjectReference>
    108112    <ProjectReference Include="..\..\HeuristicLab.Hive.Contracts\3.2\HeuristicLab.Hive.Contracts-3.2.csproj">
    109113      <Project>{134F93D7-E7C8-4ECD-9923-7F63259A60D8}</Project>
  • trunk/sources/HeuristicLab.Hive.Engine/3.2/Job.cs

    r1655 r1761  
    2727using HeuristicLab.Hive.JobBase;
    2828using System.Xml;
     29using HeuristicLab.Data;
    2930
    3031namespace HeuristicLab.Hive.Engine {
     
    6869
    6970    public double Progress {
    70       get { return 0.0; }
     71      get {
     72        DoubleData progress = Engine.GlobalScope.GetVariableValue<DoubleData>("Progress", false,
     73          false);
     74        return progress == null ? 0.0 : progress.Data;
     75      }
    7176      set { throw new NotSupportedException(); }
    7277    }
Note: See TracChangeset for help on using the changeset viewer.