Changeset 34 for trunk/sources/HeuristicLab.DistributedEngine
- Timestamp:
- 03/01/08 15:19:15 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.DistributedEngine/DistributedEngine.cs
r33 r34 90 90 if(runningEngines.Count != 0) { 91 91 Guid engineGuid = runningEngines[0]; 92 byte[] scopeXml = server.TryEndExecuteEngine(engineGuid,100);93 if( scopeXml != null) {94 GZipStream stream = new GZipStream(new MemoryStream( scopeXml), CompressionMode.Decompress);95 IScope newScope = (IScope)PersistenceManager.Load(stream);92 byte[] resultXml = server.TryEndExecuteEngine(engineGuid,100); 93 if(resultXml != null) { 94 GZipStream stream = new GZipStream(new MemoryStream(resultXml), CompressionMode.Decompress); 95 ProcessingEngine resultEngine = (ProcessingEngine)PersistenceManager.Load(stream); 96 96 IScope oldScope = engineOperations[engineGuid].Scope; 97 97 oldScope.Clear(); 98 foreach(IVariable variable in newScope.Variables) {98 foreach(IVariable variable in resultEngine.InitialOperation.Scope.Variables) { 99 99 oldScope.AddVariable(variable); 100 100 } 101 foreach(IScope subScope in newScope.SubScopes) {101 foreach(IScope subScope in resultEngine.InitialOperation.Scope.SubScopes) { 102 102 oldScope.AddSubScope(subScope); 103 103 }
Note: See TracChangeset
for help on using the changeset viewer.