Class Processor
java.lang.Object
edu.isi.pegasus.planner.selector.site.heft.Processor
A data class that is used to simulate a processor on a site.
- Version:
- $Revision$
- Author:
- Karan Vahi
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate long
The end time of the current scheduled job.private long
The start time of the current scheduled job. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getAvailableTime
(long start) Returns the earliest time the processor is available for scheduling a job.void
scheduleJob
(long start, long end) Schedules a job on to a processor.
-
Field Details
-
mStartTime
private long mStartTimeThe start time of the current scheduled job. -
mEndTime
private long mEndTimeThe end time of the current scheduled job.
-
-
Constructor Details
-
Processor
public Processor()The default constructor.
-
-
Method Details
-
getAvailableTime
public long getAvailableTime(long start) Returns the earliest time the processor is available for scheduling a job. It is non insertion based scheduling policy.- Parameters:
start
- the time at which to start the search.- Returns:
- long
-
scheduleJob
public void scheduleJob(long start, long end) Schedules a job on to a processor.- Parameters:
start
- the start time of the job.end
- the end time for the job
-