edu.cmu.emulator.sched
Class Reservation

java.lang.Object
  extended by edu.cmu.emulator.sched.Reservation

public class Reservation
extends Object


Field Summary
protected  Timestamp end
           
protected  String[] nodes
           
protected  boolean reboot
           
protected  int reservationID
           
protected  Timestamp start
           
protected  int userID
           
protected  String userName
           
 
Constructor Summary
protected Reservation(int reservationID, int userID, String userName, Timestamp start, Timestamp end)
           
  Reservation(int reservationID, int userID, String userName, Timestamp start, Timestamp end, ArrayList<String> nodeList)
           
  Reservation(int reservationID, int userID, String userName, Timestamp start, Timestamp end, String[] nodes)
           
 
Method Summary
 Timestamp getEnd()
           
 String[] getNodes()
           
 int getNumNodes()
           
 boolean getReboot()
           
 int getReservationID()
           
 Timestamp getStart()
           
 int getUserID()
           
 String getUserName()
           
 long millisElapsed()
           
 long millisElapsed(long curTime)
           
 long millisRemaining()
           
 long millisRemaining(long curTime)
           
 boolean noInactivityCheck()
           
 boolean reserved(String uName)
           
 boolean reserved(String uName, long time)
           
 boolean reserved(String uName, Timestamp ts)
           
 int secondsRemaining()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reservationID

protected int reservationID

userID

protected int userID

userName

protected String userName

start

protected Timestamp start

end

protected Timestamp end

nodes

protected String[] nodes

reboot

protected boolean reboot
Constructor Detail

Reservation

protected Reservation(int reservationID,
                      int userID,
                      String userName,
                      Timestamp start,
                      Timestamp end)

Reservation

public Reservation(int reservationID,
                   int userID,
                   String userName,
                   Timestamp start,
                   Timestamp end,
                   String[] nodes)

Reservation

public Reservation(int reservationID,
                   int userID,
                   String userName,
                   Timestamp start,
                   Timestamp end,
                   ArrayList<String> nodeList)
Method Detail

getReservationID

public int getReservationID()

getUserID

public int getUserID()

getUserName

public String getUserName()

getStart

public Timestamp getStart()

getEnd

public Timestamp getEnd()

millisElapsed

public long millisElapsed()

millisElapsed

public long millisElapsed(long curTime)

millisRemaining

public long millisRemaining(long curTime)

millisRemaining

public long millisRemaining()

secondsRemaining

public int secondsRemaining()

reserved

public boolean reserved(String uName,
                        Timestamp ts)

reserved

public boolean reserved(String uName,
                        long time)

reserved

public boolean reserved(String uName)

getNodes

public String[] getNodes()

getNumNodes

public int getNumNodes()

getReboot

public boolean getReboot()

noInactivityCheck

public boolean noInactivityCheck()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.