|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSession
public class Session
A session is defined by the test subjects (students), the room, the start time, and the duration. Note that duration includes both the active experiment time and the inter-session turn-around time.
| Field Summary | |
|---|---|
static int |
DEFAULT_DURATION
The default duration of a session, in minutes. |
| Constructor Summary | |
|---|---|
Session()
Construct Session object with default duration. |
|
Session(Time theDuration)
Construct Session object with specified duration. |
|
Session(Time theDuration,
Room theRoom,
Time theStartTime)
Construct Session object with specified duration, room and start time. |
|
| Method Summary | |
|---|---|
void |
addSubject(Student newSubject)
Add a test subject. |
Time |
getDuration()
Return the duration of this session. |
int |
getNumberOfSubjects()
Return the number of test subjects currently assigned to this session. |
Room |
getRoom()
Return the room of this session. |
Time |
getStartTime()
Return the start time of this session. |
Student |
getSubject(int which)
Return a specific test subject. |
ArrayList<Student> |
getSubjects()
Return the test subjects in this session. |
void |
setDuration(Time newDuration)
Change the duration of this session. |
void |
setRoom(Room newRoom)
Change the room of this session. |
void |
setStartTime(Time newStartTime)
Change the start time of this session. |
void |
setSubjects(ArrayList<Student> newSubjects)
Change the test subjects in this session. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_DURATION
| Constructor Detail |
|---|
public Session()
null.
The list of test subjects is set to the empty list.
public Session(Time theDuration)
null.
The list of test subjects is set to the empty list.
theDuration - the duration
public Session(Time theDuration,
Room theRoom,
Time theStartTime)
theDuration - the durationtheRoom - the roomtheStartTime - the start time| Method Detail |
|---|
public int getNumberOfSubjects()
public Time getDuration()
public Time getStartTime()
public Room getRoom()
public ArrayList<Student> getSubjects()
public Student getSubject(int which)
which - the index of the test subject
public void setDuration(Time newDuration)
newDuration - the new duration (in minutes)public void setStartTime(Time newStartTime)
newStartTime - the new start timepublic void setRoom(Room newRoom)
newRoom - the new roompublic void setSubjects(ArrayList<Student> newSubjects)
newSubjects - the new test subjectspublic void addSubject(Student newSubject)
newSubject - the new test subject
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||