umontreal.iro.lecuyer.simprocs
Class UserRecord
- java.lang.Object
-
- umontreal.iro.lecuyer.simprocs.UserRecord
-
public class UserRecord extends java.lang.ObjectThis class represents a record object to store information related to the request of a process for aResourceor forBintokens, or when a process waits for aCondition. AUserRecordis created for each process request. The record contains the number of units requested or used, the associated process, and the simulation time when the request was made. Lists of processes waiting for aResource,Bin, orCondition, for example, containUserRecordobjects.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intgetNumUnits()Returns the number of units requested or used by the associated process.SimProcessgetProcess()Returns the process object associated with this record.doublegetRequestTime()Returns the time of creation of this record.
-
-
-
Method Detail
-
getNumUnits
public int getNumUnits()
Returns the number of units requested or used by the associated process.- Returns:
- the number of requested or used units
-
getProcess
public SimProcess getProcess()
Returns the process object associated with this record.- Returns:
- the process associated to this record
-
getRequestTime
public double getRequestTime()
Returns the time of creation of this record.- Returns:
- the simulation time of the record creation
-
-
DMelt 3.0 © DataMelt by jWork.ORG