- Timestamp:
- 04/13/12 08:09:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
xssim/branches/tpiontek/src/simulator/stats/implementation/GSSimStatistics.java
r241 r263 305 305 306 306 if (configuration.creatediagrams_processors) { 307 createPE GanttDiagram(basicResStats);307 createPEAppGanttDiagram(basicResStats); 308 308 } 309 309 … … 822 822 } 823 823 } 824 825 private void createPEAppGanttDiagram(Map<String,List<ResStat>> basicResStats) { 826 for(String peName: basicResStats.keySet()){ 827 TimetableEventSource pe = new TimetableEventSource(peName); 828 ganttDiagramPeTimetable.addEventSource(pe); 829 peGanttMap.put(peName, pe); 830 for(ResStat resStat: basicResStats.get(peName)){ 831 832 pe = peGanttMap.get(resStat.getPeName()); 833 if(pe == null){ 834 //pe = new TimetableEventSource(resStat.getPeName()); 835 // ganttDiagramPeTimetable.addEventSource(pe); 836 // peGanttMap.put(resStat.getPeName(), pe); 837 } 838 String taskID = resStat.getTaskID().split("_")[0]; 839 Integer taskGroupID = Integer.parseInt(taskID) % 4; 840 TimetableEventGroup task = taskGanttMap.get(taskGroupID); 841 long startDate = resStat.getStartDate(); 842 long endDate = resStat.getEndDate(); 843 if (task == null) { 844 task = new TimetableEventGroup(taskGroupID.toString()); 845 taskGanttMap.put(taskGroupID.toString(), task); 846 ganttDiagramPeTimetable.addEventGroup(task); 847 } 848 ganttDiagramPeTimetable.addEvent(pe, task, 849 new FixedMillisecond(startDate), new FixedMillisecond(endDate)); 850 } 851 } 852 } 853 854 824 855 825 856 private void createResourceLoadDiagram(ResourceUsageStats resStats) {
Note: See TracChangeset
for help on using the changeset viewer.