haifa.shopsim.kernel
Class RouteStart

java.lang.Object
  |
  +--haifa.shopsim.kernel.RouteStart
All Implemented Interfaces:
JobHolder, SimulationEntity

public class RouteStart
extends java.lang.Object
implements JobHolder

This Simulation Entity is the pile of jobs at the start of the route.


Field Summary
(package private)  Machine firstMachine
           
(package private)  javaSimulation.Head jobQueue
           
(package private)  int routeNumber
           
(package private)  ShopData shopData
           
 
Constructor Summary
RouteStart(ShopData shopData_, int routeNumber_)
           
 
Method Summary
 void bindRoute(Machine[] machines, RouteEnd end)
          This method interconnects (by references) the route starting at this route start and going thourgh all the machines to the routeEnd
 void getJob(Job job)
          When another SimualationEntity passes the job onto this entity, it should use this method by calling it on the reciveing object.
 void passJobs()
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

shopData

ShopData shopData

routeNumber

int routeNumber

firstMachine

Machine firstMachine

jobQueue

javaSimulation.Head jobQueue
Constructor Detail

RouteStart

public RouteStart(ShopData shopData_,
                  int routeNumber_)
Method Detail

getJob

public void getJob(Job job)
Description copied from interface: JobHolder
When another SimualationEntity passes the job onto this entity, it should use this method by calling it on the reciveing object.
Specified by:
getJob in interface JobHolder

passJobs

public void passJobs()

bindRoute

public void bindRoute(Machine[] machines,
                      RouteEnd end)
This method interconnects (by references) the route starting at this route start and going thourgh all the machines to the routeEnd