medisyn
Class Request

java.lang.Object
  extended by medisyn.Request
All Implemented Interfaces:
java.lang.Cloneable

public class Request
extends java.lang.Object
implements java.lang.Cloneable

Represents a session-request for a file

Author:
Leo Bosnjak

Field Summary
private  int fileID
          The id of the file being requested.
private  java.lang.String logFile
          Tells from which file the request came from (or better: should tell)
private  int operation
          1==play (others not supported)
private  int sessionDuration
          The duration of a session in seconds
private  int sessionStart
          not implemented yet
private  int startTime
          Time offset from simulation-start in seconds
 
Constructor Summary
Request(java.lang.String logFile)
          construct+init a request object
 
Method Summary
protected  Request clone()
          clone the object
 int getFileID()
           
 int getOperation()
           
 int getSessionDuration()
           
 int getSessionStart()
           
 int getStartTime()
           
 void setFileID(int fileID)
           
 void setOperation(int operation)
           
 void setSessionDuration(int sessionDuration)
           
 void setSessionStart(int sessionStart)
           
 void setStartTime(int startTime)
           
 java.lang.String toString()
          return String-representation of object
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

startTime

private int startTime
Time offset from simulation-start in seconds


fileID

private int fileID
The id of the file being requested.


sessionStart

private int sessionStart
not implemented yet


sessionDuration

private int sessionDuration
The duration of a session in seconds


operation

private int operation
1==play (others not supported)


logFile

private java.lang.String logFile
Tells from which file the request came from (or better: should tell)

Constructor Detail

Request

public Request(java.lang.String logFile)
construct+init a request object

Method Detail

getFileID

public int getFileID()
Returns:
the fileID

setFileID

public void setFileID(int fileID)
Parameters:
fileID - the fileID to set

getOperation

public int getOperation()
Returns:
the operation

setOperation

public void setOperation(int operation)
Parameters:
operation - the operation to set

getSessionDuration

public int getSessionDuration()
Returns:
the sessionDuration

setSessionDuration

public void setSessionDuration(int sessionDuration)
Parameters:
sessionDuration - the sessionDuration to set

getSessionStart

public int getSessionStart()
Returns:
the sessionStart

setSessionStart

public void setSessionStart(int sessionStart)
Parameters:
sessionStart - the sessionStart to set

getStartTime

public int getStartTime()
Returns:
the startTime

setStartTime

public void setStartTime(int startTime)
Parameters:
startTime - the startTime to set

clone

protected Request clone()
                 throws java.lang.CloneNotSupportedException
clone the object

Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException

toString

public java.lang.String toString()
return String-representation of object

Overrides:
toString in class java.lang.Object