Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
03/18/08 16:00:00 (16 years ago)
Author:
swagner
Message:

Fixed ticket #67

  • adapted accessing of variables in operators due to changes of variable lookup and the new name aliasing mechanism (actual/formal name translations should not be done directly anymore; instead the new method Scope.TranslateName should be used)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Scheduling.JSSP/ItemListIndexer.cs

    r2 r77  
    4545      ItemList list = GetVariableValue<ItemList>("List", scope, true);
    4646      int index = GetVariableValue<IntData>("Index", scope, true).Data;
    47       if(scope.GetVariable(GetVariableInfo("Object").ActualName) != null) {
    48         scope.RemoveVariable(GetVariableInfo("Object").ActualName);
     47      if(scope.GetVariable(scope.TranslateName("Object")) != null) {
     48        scope.RemoveVariable(scope.TranslateName("Object"));
    4949      }
    5050      if((list != null) && (index < list.Count)) {
    51         scope.AddVariable(new Variable(GetVariableInfo("Object").ActualName, (IItem)list[index].Clone()));
     51        scope.AddVariable(new Variable(scope.TranslateName("Object"), (IItem)list[index].Clone()));
    5252      }
    5353      return null;
Note: See TracChangeset for help on using the changeset viewer.