Class Creator

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Creator
All Implemented Interfaces:
java.lang.Runnable

public class Creator
extends java.lang.Thread
implements java.lang.Runnable


Field Summary
 Queue FIFO
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void create()
          Create a new process
 boolean getArrType()
          Accesor method to read the arrival process type
 boolean getProcType()
          Accesor method to read the process duration distribution
 int getServiceTime()
          Accesor method to read the service time parameter
 void pause()
          Pause the execution of the creator
 void run()
          Call create method and sleep
 void setArrivalTime(float newArrivalTime)
          Accesor method to modify the arrivalTime
 void setArrType(boolean type)
          Accesor method to modify the arrival process type
 void setProcType(boolean type)
          Accesor method to modify the process duration distribution
 void setServiceTime(float newServiceTime)
          Accesor method to modify the service time parameter
 void turnoff()
          Stop the execution of the creator
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

FIFO

public Queue FIFO
Method Detail

setArrivalTime

public void setArrivalTime(float newArrivalTime)
Accesor method to modify the arrivalTime
Parameters:
newArrivalTime - float new Arrival Time value

getArrType

public boolean getArrType()
Accesor method to read the arrival process type

setArrType

public void setArrType(boolean type)
Accesor method to modify the arrival process type
Parameters:
type - boolean new arrival type value

getServiceTime

public int getServiceTime()
Accesor method to read the service time parameter

setServiceTime

public void setServiceTime(float newServiceTime)
Accesor method to modify the service time parameter
Parameters:
newServiceTime - float new service time value

getProcType

public boolean getProcType()
Accesor method to read the process duration distribution

setProcType

public void setProcType(boolean type)
Accesor method to modify the process duration distribution
Parameters:
type - boolean new proc type value

create

public void create()
Create a new process

pause

public void pause()
Pause the execution of the creator

turnoff

public void turnoff()
Stop the execution of the creator

run

public void run()
Call create method and sleep
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread