public class Processor extends Object
Modifier and Type | Field and Description |
---|---|
private long |
mEndTime
The end time of the current scheduled job.
|
private long |
mStartTime
The start time of the current scheduled job.
|
Constructor and Description |
---|
Processor()
The default constructor.
|
Modifier and Type | Method and Description |
---|---|
long |
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.
|
private long mStartTime
private long mEndTime
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 jobCopyright © 2011 The University of Southern California. All Rights Reserved.