Class LCFSstrategy
java.lang.Object
NetStrategies.QueueGetStrategy
NetStrategies.QueueGetStrategies.LCFSstrategy
- All Implemented Interfaces:
AutoCheck
This class implements a LCFS strategy (Last Come First Served).
- Author:
- Francesco Radaelli
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget(JobInfoList queue) Implements the LCFS strategy.get(JobInfoList queue, JobClass jobClass) Implements the LCFS strategy.get(JobInfoList queue, NetNode ownerNode) This method should be overridden to implement a specific job strategy.intMethods inherited from class QueueGetStrategy
check
-
Constructor Details
-
LCFSstrategy
public LCFSstrategy()
-
-
Method Details
-
get
Implements the LCFS strategy.- Specified by:
getin classQueueGetStrategy- Parameters:
queue- Job queue.- Returns:
- Last job in the queue.
-
get
Description copied from class:QueueGetStrategyThis method should be overridden to implement a specific job strategy.- Specified by:
getin classQueueGetStrategy- Parameters:
queue- Job queue.ownerNode- ownerNode- Returns:
- Job selected and removed from the queue.
-
get
Implements the LCFS strategy.- Specified by:
getin classQueueGetStrategy- Parameters:
queue- Job queue.jobClass- Job class.- Returns:
- Last job of specified class in the queue.
-
GetJobClassIdOfNextJob
- Specified by:
GetJobClassIdOfNextJobin classQueueGetStrategy
-