edu.isi.pegasus.planner.selector.site.heft
Class Processor

java.lang.Object
  extended by edu.isi.pegasus.planner.selector.site.heft.Processor

public class Processor
extends Object

A data class that is used to simulate a processor on a site.

Version:
$Revision: 2050 $
Author:
Karan Vahi

Field Summary
private  long mEndTime
          The end time of the current scheduled job.
private  long mStartTime
          The start time of the current scheduled job.
 
Constructor Summary
Processor()
          The default constructor.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mStartTime

private long mStartTime
The start time of the current scheduled job.


mEndTime

private long mEndTime
The end time of the current scheduled job.

Constructor Detail

Processor

public Processor()
The default constructor.

Method Detail

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


Copyright © 2011 The University of Southern California. All Rights Reserved.