nl.tudelft.simulation.examples.dsol.timesharedcomputer
Class Job

java.lang.Object
  extended by nl.tudelft.simulation.examples.dsol.timesharedcomputer.Job

public class Job
extends Object

The Computer job as published in Simulation Modeling and Analysis by A.M. Law & W.D. Kelton section 1.4 and 2.4.
(c) copyright 2003 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: General Public License (GPL) , no warranty

Version:
1.1 02.04.2003
Author:
Peter Jacobs

Constructor Summary
Job(DistContinuous serviceTimeDistribution, StationInterface source, double creationTime)
          constructs a new Job
 
Method Summary
 double getCreationTime()
          gets the creationTime of the Job
 StationInterface getOwner()
          returns the source
 double getServiceTime()
          returns the serviceTime
 void setServiceTime(double serviceTime)
          sets the serviceTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Job

public Job(DistContinuous serviceTimeDistribution,
           StationInterface source,
           double creationTime)
constructs a new Job

Parameters:
serviceTimeDistribution - the distribution from which to draw the serviceTime
source - the source of the job
creationTime - time of creation
Method Detail

getCreationTime

public double getCreationTime()
gets the creationTime of the Job

Returns:
double the time of creation

getServiceTime

public double getServiceTime()
returns the serviceTime

Returns:
double the time

setServiceTime

public void setServiceTime(double serviceTime)
sets the serviceTime

Parameters:
serviceTime - the time

getOwner

public StationInterface getOwner()
returns the source

Returns:
StationInterface the owning terminal


Copyright © 2002-2010 Delft University of Technology, the Netherlands. All Rights Reserved.