|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.ObjectSchedule
public class Schedule
A schedule for the Psychology experiment application.
| Constructor Summary | |
|---|---|
Schedule()
Construct a Schedule object. |
|
| Method Summary | |
|---|---|
ArrayList<Session> |
createSessions()
Generate all of the sessions necessary for the set of students in this schedule. |
void |
displaySessions(ArrayList<Session> sessions)
Display a set of sessions. |
int |
numPeriods(int numExperimenters)
Determine the number of periods necessary to have a given number of trained experimenters. |
int |
numSessions(int numStudents)
Calculate the number of sessions needed for a given number of students. |
int |
numTrainers(int numPeriods)
Calculate the number of trained experimenters available after a given amount of training periods. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Schedule()
| Method Detail |
|---|
public int numSessions(int numStudents)
numStudents - the number of students
public ArrayList<Session> createSessions()
public void displaySessions(ArrayList<Session> sessions)
sessions - the set of sessions to displaypublic int numTrainers(int numPeriods)
numPeriods - the number of training periods
public int numPeriods(int numExperimenters)
numExperimenters - the desired number of experimenters
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||