haifa.shopsim.algorithms
Class FBFSPriorityAlgorithm

java.lang.Object
  |
  +--haifa.shopsim.algorithms.AbstractAlgorithm
        |
        +--haifa.shopsim.algorithms.BufferPriorityAlgorithm
              |
              +--haifa.shopsim.algorithms.FBFSPriorityAlgorithm
All Implemented Interfaces:
ShopAlgorithm

public class FBFSPriorityAlgorithm
extends BufferPriorityAlgorithm

Given two operations (r1,o1) and (r2,o2). If o1


Inner Class Summary
(package private)  class FBFSPriorityAlgorithm.FBFSComparator
          A comparator that is designed to compare Operation objects.
 
Fields inherited from class haifa.shopsim.algorithms.BufferPriorityAlgorithm
EXPLANATION, priorityMaps
 
Fields inherited from class haifa.shopsim.algorithms.AbstractAlgorithm
log, shopData, shopSimulation, shopState
 
Constructor Summary
FBFSPriorityAlgorithm()
           
FBFSPriorityAlgorithm(ShopData shopData_)
          Creates new FBFSPriorityAlgorithm
 
Method Summary
 java.lang.String getAlgorithmName()
          Returns a name of the algorithm.
protected  void setPriority(java.util.Map map, java.util.List ops)
          Gets an empty map that is to be filled with priorites.
static java.lang.String StaticGetAlgorithmName()
           
 
Methods inherited from class haifa.shopsim.algorithms.BufferPriorityAlgorithm
explanationString, isDeterministic, setShopData, whatNow
 
Methods inherited from class haifa.shopsim.algorithms.AbstractAlgorithm
quitCalled, reset, setEnabled, setLog, setShopSimulationObject, setShopStateObject, toString
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

FBFSPriorityAlgorithm

public FBFSPriorityAlgorithm(ShopData shopData_)
Creates new FBFSPriorityAlgorithm

FBFSPriorityAlgorithm

public FBFSPriorityAlgorithm()
Method Detail

setPriority

protected void setPriority(java.util.Map map,
                           java.util.List ops)
Description copied from class: BufferPriorityAlgorithm
Gets an empty map that is to be filled with priorites. And gets a list of operations of all of the operations on a machine. Should set a unique priority for each operation.
Overrides:
setPriority in class BufferPriorityAlgorithm

StaticGetAlgorithmName

public static java.lang.String StaticGetAlgorithmName()

getAlgorithmName

public java.lang.String getAlgorithmName()
Description copied from interface: ShopAlgorithm
Returns a name of the algorithm.