Changeset 14542 for branches/symbreg-factors-2650/HeuristicLab.Problems.Instances.Scheduling/3.3/JSSPORLIBInstanceProvider.cs
- Timestamp:
- 01/04/17 16:33:37 (7 years ago)
- Location:
- branches/symbreg-factors-2650
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/symbreg-factors-2650
- Property svn:mergeinfo changed
/trunk/sources merged: 14504,14506-14509,14516-14517,14519,14522-14523,14527-14529,14531-14533
- Property svn:mergeinfo changed
-
branches/symbreg-factors-2650/HeuristicLab.Problems.Instances.Scheduling/3.3/JSSPORLIBInstanceProvider.cs
r14185 r14542 67 67 var parser = new JSSPORLIBParser(); 68 68 parser.Parse(stream); 69 var instance = Load(parser); 70 instance.Name = id.Name; 71 instance.Description = id.Description; 72 73 return instance; 69 return Load(parser); 74 70 } 75 71 } … … 82 78 var parser = new JSSPORLIBParser(); 83 79 parser.Parse(path); 84 var instance = Load(parser); 85 instance.Name = Path.GetFileName(path); 86 instance.Description = "Loaded from file \"" + path + "\" on " + DateTime.Now.ToString(); 87 return instance; 80 return Load(parser); 88 81 } 89 82 90 83 private JSSPData Load(JSSPORLIBParser parser) { 91 84 var instance = new JSSPData { 85 Name = parser.Name, 86 Description = parser.Description, 92 87 Jobs = parser.Jobs, 93 88 Resources = parser.Resources,
Note: See TracChangeset
for help on using the changeset viewer.