haifa.shopsim
Interface ShopState

All Superinterfaces:
java.util.EventListener, ShopChangeListener
All Known Implementing Classes:
ShopStateImpl

public interface ShopState
extends ShopChangeListener


Method Summary
 void addShopChangeListener(ShopChangeListener scl)
          Register a listener to the state.
 java.util.Collection getBusyMachines()
          Returns a collection of all of the busy machines at the current time.
 int getNumFinishedJobs(int route)
          Returns the number of finsihed jobs on a particular route.
 java.util.Map getQMap()
           
 java.util.Collection getSchedulableOperations()
          Returns a collection of the schedulable operations.
 double getTime()
          Returns the time as registered with the state.
 int getTotalFinishedJobs()
          Returns the total number of finished jobs.
 void shopChanged(ShopChangeEvent sce)
           
 

Method Detail

addShopChangeListener

public void addShopChangeListener(ShopChangeListener scl)
Register a listener to the state.

shopChanged

public void shopChanged(ShopChangeEvent sce)
Specified by:
shopChanged in interface ShopChangeListener

getTime

public double getTime()
Returns the time as registered with the state.

getBusyMachines

public java.util.Collection getBusyMachines()
Returns a collection of all of the busy machines at the current time.

getSchedulableOperations

public java.util.Collection getSchedulableOperations()
Returns a collection of the schedulable operations.

getTotalFinishedJobs

public int getTotalFinishedJobs()
Returns the total number of finished jobs.

getNumFinishedJobs

public int getNumFinishedJobs(int route)
Returns the number of finsihed jobs on a particular route.

getQMap

public java.util.Map getQMap()