|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.isi.pegasus.planner.selector.site.heft.Site
public class Site
A data class that models a site as a collection of processors. The number of processors can only be specified in the constructor.
| Field Summary | |
|---|---|
private int |
mCurrentProcessorIndex
The index to the processor that is to be used for scheduling a job. |
private String |
mName
The logical name assigned to the site. |
private int |
mNumProcessors
The number of processors making up a site. |
private List |
mProcessors
A list of processors making up the site. |
| Constructor Summary | |
|---|---|
Site(String name)
The default constructor. |
|
Site(String name,
int num)
The overloaded constructor. |
|
| Method Summary | |
|---|---|
int |
getAvailableProcessors()
Returns the number of available processors. |
long |
getAvailableTime(long start)
Returns the earliest time the site is available for scheduling a job. |
String |
getName()
Returns the name of the site. |
void |
scheduleJob(long start,
long end)
Schedules a job to the site. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int mNumProcessors
private List mProcessors
private int mCurrentProcessorIndex
private String mName
| Constructor Detail |
|---|
public Site(String name)
name - the name to be assigned to the site.
public Site(String name,
int num)
name - the name to be assigned to the site.num - the number of processors.| Method Detail |
|---|
public long getAvailableTime(long start)
start - the time at which to start the search.
public void scheduleJob(long start,
long end)
start - the start time of the job.end - the end time for the jobpublic String getName()
public int getAvailableProcessors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||