- Timestamp:
- 03/25/09 13:09:55 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Communication.Operators/SubScopeMessageDecomposer.cs
r1207 r1411 20 20 public override IOperation Apply(IScope scope) { 21 21 Message message = GetVariableValue<Message>("Message", scope, false); 22 if (message. Expect.Count > scope.SubScopes.Count) throw new InvalidOperationException("ERROR in SubScopeMessageDecomposer: There are not enough subscopes to put the contents of the message into");22 if (message.Give.Count > scope.SubScopes.Count) throw new InvalidOperationException("ERROR in SubScopeMessageDecomposer: There are not enough subscopes to put the contents of the message into"); 23 23 int i = 0; 24 24 foreach (IVariable var in message.Give) { 25 25 scope.SubScopes[i].AddVariable(var); 26 i++; 26 27 } 27 28 IVariableInfo info = GetVariableInfo("Message");
Note: See TracChangeset
for help on using the changeset viewer.