- Timestamp:
- 03/18/08 16:00:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Scheduling.JSSP/ItemListIndexer.cs
r2 r77 45 45 ItemList list = GetVariableValue<ItemList>("List", scope, true); 46 46 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")); 49 49 } 50 50 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())); 52 52 } 53 53 return null;
Note: See TracChangeset
for help on using the changeset viewer.