From: <jsa...@us...> - 2008-11-17 17:05:14
|
Revision: 106 http://flexotask.svn.sourceforge.net/flexotask/?rev=106&view=rev Author: jsauerbach Date: 2008-11-17 17:05:08 +0000 (Mon, 17 Nov 2008) Log Message: ----------- Javadoc edits Modified Paths: -------------- trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskGlobalSchedulingElement.java trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskSchedulingData.java Modified: trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskGlobalSchedulingElement.java =================================================================== --- trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskGlobalSchedulingElement.java 2008-11-17 16:31:23 UTC (rev 105) +++ trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskGlobalSchedulingElement.java 2008-11-17 17:05:08 UTC (rev 106) @@ -32,14 +32,14 @@ * a stream graph. Defaults to 1. */ private int numCores; - /** Create an 'empty' (all zeros) FlexotaskGlobalSchedulingElement */ + /** Create an 'empty' FlexotaskGlobalSchedulingElement (zeros for heap size initial and maximum, and one core) */ public FlexotaskGlobalSchedulingElement() { this(0, 0, 1); } /** - * Create a new FlexotaskGlobalSchedulingElement + * Create a new FlexotaskGlobalSchedulingElement specifying the initial and maximum heap size but letting cores default to 1 * @param initialHeapSize the initial heap size * @param maxHeapSize the maximum heap size */ Modified: trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskSchedulingData.java =================================================================== --- trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskSchedulingData.java 2008-11-17 16:31:23 UTC (rev 105) +++ trunk/flexotask/src/com/ibm/realtime/flexotask/scheduling/FlexotaskSchedulingData.java 2008-11-17 17:05:08 UTC (rev 106) @@ -43,14 +43,17 @@ } /** - * Convenience constructor for use with the AbstractSchedulingData's implementation of getHeapSize(), - * and where all tasks are assumed to have the same WCA. This jump-starts working with - * scheduling data + * Create a complete FlexotaskSchedulingData on the simplified assumption that all tasks in the template have the same WCA and no + * WCET information is to be provided. This is often good enough for simple graphs. Also, this starting point can be modified + * by replacing individual task's information or adding connection information. + * @param template the FlexotaskTemplate whose tasks are to be assigned the common WCA + * @param WCA the common WCA to be assigned to all tasks + * @param globalData the FlexotaskGlobalSchedulingElement to use (this may be used to specify total heap space) */ - public FlexotaskSchedulingData(FlexotaskTemplate spec, long WCA, FlexotaskGlobalSchedulingElement globalData) + public FlexotaskSchedulingData(FlexotaskTemplate template, long WCA, FlexotaskGlobalSchedulingElement globalData) { setGlobalScheduling(globalData); - for (Iterator iter = spec.getTasks().iterator(); iter.hasNext();) { + for (Iterator iter = template.getTasks().iterator(); iter.hasNext();) { FlexotaskTaskTemplate task = (FlexotaskTaskTemplate) iter.next(); FlexotaskTaskSchedulingElement taskWCA = new FlexotaskTaskSchedulingElement(); taskWCA.setWCA(WCA); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |