| java.lang.Object org.griphyn.cPlanner.selector.site.heft.Site
Site | public class Site (Code) | | A data class that models a site as a collection of processors.
The number of processors can only be specified in the constructor.
author: Karan Vahi version: $Revision: 297 $ |
Constructor Summary | |
public | Site(String name) The default constructor. | public | Site(String name, int num) The overloaded constructor. |
Method Summary | |
public int | getAvailableProcessors() Returns the number of available processors. | public long | getAvailableTime(long start) Returns the earliest time the site is available for scheduling
a job. | public String | getName() Returns the name of the site. | public void | scheduleJob(long start, long end) Schedules a job to the site. |
Site | public Site(String name)(Code) | | The default constructor.
Parameters: name - the name to be assigned to the site. |
Site | public Site(String name, int num)(Code) | | The overloaded constructor.
Parameters: name - the name to be assigned to the site. Parameters: num - the number of processors. |
getAvailableProcessors | public int getAvailableProcessors()(Code) | | Returns the number of available processors.
number of available processors. |
getAvailableTime | public long getAvailableTime(long start)(Code) | | Returns the earliest time the site is available for scheduling
a job. It is non insertion based scheduling policy.
Parameters: start - the time at which to start the search. long |
getName | public String getName()(Code) | | Returns the name of the site.
name of the site. |
scheduleJob | public void scheduleJob(long start, long end)(Code) | | Schedules a job to the site.
Parameters: start - the start time of the job. Parameters: end - the end time for the job |
|
|