|
From: <mar...@us...> - 2007-10-14 23:06:24
|
Revision: 69
http://gridsim.svn.sourceforge.net/gridsim/?rev=69&view=rev
Author: marcos_dias
Date: 2007-10-14 16:06:27 -0700 (Sun, 14 Oct 2007)
Log Message:
-----------
A small bug that prevents the ResourceWindow from displaying the latest job scheduled has been fixed.
Modified Paths:
--------------
branches/gridsim4.0-branch3/source/gridsim/gui/ResourceWindow.java
Modified: branches/gridsim4.0-branch3/source/gridsim/gui/ResourceWindow.java
===================================================================
--- branches/gridsim4.0-branch3/source/gridsim/gui/ResourceWindow.java 2007-10-12 09:02:49 UTC (rev 68)
+++ branches/gridsim4.0-branch3/source/gridsim/gui/ResourceWindow.java 2007-10-14 23:06:27 UTC (rev 69)
@@ -95,7 +95,7 @@
* the status of the scheduling queue. The jobs are drawn as boxes in
* this panel.
* + the right panel has a list of gridlets or advance reservations
- * received by the Grid resource allong with a panel that shows detailed
+ * received by the Grid resource along with a panel that shows detailed
* information about a gridlet or advance reservation selected
* in the list.
*/
@@ -217,10 +217,10 @@
case AllocationAction.GRIDLET_COMPLETED:
case AllocationAction.SCHEDULE_CHANGED:
- updateResourceWindow();
break;
}
+ updateResourceWindow();
return true;
}
@@ -553,8 +553,8 @@
(int)(timeSpan * scaleX) - 40, SHIFT_Y - 20);
}
- /**
- * Draws the boxes representing the gridlets
+ /*
+ * Draws the boxes representing the gridlets or advance reservations
*/
private void drawSchedulingQueue(ArrayList<ScheduleItem> queue,
float scaleY, float scaleX, Graphics g2D) {
@@ -690,7 +690,8 @@
}
/*
- * Highlight a job
+ * Highlights a schedule item. This method basically draws the item
+ * in the resource window with red lines.
*/
private void highlightItem(Graphics2D g2D, ScheduleItem item,
float scaleY, float scaleX) {
@@ -907,7 +908,9 @@
}
/**
- * Inserts a Gridlet to the JList and the vector of Gridlets
+ * Inserts a Gridlet to the JList and the vector of Gridlets
+ * @param insertItem the item to be inserted in the vector of
+ * schedule items and the JList
*/
private int insertNewItem(ScheduleItem insertItem) {
int sizeVector = items_.size();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|