haifa.shopsim.algorithms
Class LBFSPriorityAlgorithm

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

public class LBFSPriorityAlgorithm
extends BufferPriorityAlgorithm


Inner Class Summary
(package private)  class LBFSPriorityAlgorithm.LBFSComparator
          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
LBFSPriorityAlgorithm()
          Creates new LBFSPriorityAlgorithm
LBFSPriorityAlgorithm(ShopData shopData_)
           
 
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

LBFSPriorityAlgorithm

public LBFSPriorityAlgorithm()
Creates new LBFSPriorityAlgorithm

LBFSPriorityAlgorithm

public LBFSPriorityAlgorithm(ShopData shopData_)
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

getAlgorithmName

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

StaticGetAlgorithmName

public static java.lang.String StaticGetAlgorithmName()