Changeset 1411


Ignore:
Timestamp:
03/25/09 13:09:55 (12 years ago)
Author:
abeham
Message:

fixing SubScopeMessageDecomposer (#538)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Communication.Operators/SubScopeMessageDecomposer.cs

    r1207 r1411  
    2020    public override IOperation Apply(IScope scope) {
    2121      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");
    2323      int i = 0;
    2424      foreach (IVariable var in message.Give) {
    2525        scope.SubScopes[i].AddVariable(var);
     26        i++;
    2627      }
    2728      IVariableInfo info = GetVariableInfo("Message");
Note: See TracChangeset for help on using the changeset viewer.