|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectresources.Conflict
public class Conflict
This class contains information regarding a conflict
between 2 Sched objects. The reason detected, eg.,
professor or the room has been double-booked is also
maintained here.
| Field Summary |
|---|
| Fields inherited from interface resources.Constants |
|---|
BUILDING, COURSE, COURSE_FIELD, COURSE_NUMBER, LASTNAME, NAME, PROF_DOUBLE_BOOKED, ROOM, ROOM_DOUBLE_BOOKED, SECTION_NUMBER |
| Constructor Summary | |
|---|---|
Conflict(SchedCourse sched1,
SchedCourse sched2,
int reason)
|
|
| Method Summary | |
|---|---|
int |
getReason()
Gets the Reason |
SchedCourse |
getSched1()
Gets Schedule 1 |
SchedCourse |
getSched2()
Gets Schedule 2 |
java.lang.String |
toString()
a string is formatted to translate the conflict reason codes into self explanatory descriptions |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Conflict(SchedCourse sched1,
SchedCourse sched2,
int reason)
sched1 - the schedule1sched2 - the schedule2reason - | Method Detail |
|---|
public int getReason()
integer specifying the conflict reason codepublic SchedCourse getSched1()
Sched specifying the schedule 1public SchedCourse getSched2()
Sched specifying the schedule 2public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||