jasima.shopSim.prioRules.basic.SRPTPerPT Maven / Gradle / Ivy
/*******************************************************************************
* This file is part of jasima, v1.3, the Java simulator for manufacturing and
* logistics.
*
* Copyright (c) 2015 jasima solutions UG
* Copyright (c) 2010-2015 Torsten Hildebrandt and jasima contributors
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*******************************************************************************/
package jasima.shopSim.prioRules.basic;
import jasima.shopSim.core.PR;
import jasima.shopSim.core.PrioRuleTarget;
/**
* This class implements the Remaining Processing Time per Imminent Processing
* Time rule. This is rule 10 in Blackwater et al. (1982)
* "A state-of-the-art survey of dispatching rules for job shop operations". It
* seems to perform well especially for the makespan objective.
*
* @author Torsten Hildebrandt, 2011-12-01
* @version
* "$Id: SRPTPerPT.java 753 2015-07-27 15:29:49Z [email protected] $"
*/
public class SRPTPerPT extends PR {
private static final long serialVersionUID = -6242815299110537440L;
@Override
public double calcPrio(PrioRuleTarget job) {
return job.remainingProcTime() / job.getCurrentOperation().procTime;
}
}