|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectttsolver.model.TimeLocation
public class TimeLocation
Time part of placement.
| Constructor Summary | |
|---|---|
TimeLocation(int dayCode,
int startTime,
int length,
int pref)
Constructor |
|
TimeLocation(edu.purdue.smas.timetable.data.pattern.TimePatternModel timePatternModel,
int day,
int time)
Constructor |
|
| Method Summary | |
|---|---|
int |
getDayCode()
Days (combination of 1 for Monday, 2 for Tuesday, ...) |
String |
getDayHeader()
Days for printing purposes |
String |
getEndTimeHeader()
End time for printing purposes |
Collection |
getIntersection(TimeLocation anotherLocation)
Set of overlapping slots |
int |
getLength()
Length |
edu.purdue.smas.timetable.data.pattern.TimePatternModel |
getModel()
Time pattern model (can be null) |
double |
getNormalizedPreference()
Normalized preference |
int |
getNrHalfHoursPerMeeting()
Length |
int |
getNrMeetings()
Number of meetings |
int |
getPreference()
Preference |
int[] |
getSlots()
Used slots |
int |
getStartSlot()
Start slot |
int[] |
getStartSlots()
Used start slots (for each meeting) |
String |
getStartTimeHeader()
Start time for printing purposes |
String |
getText()
Text representation |
int |
getTimeCode()
Used slots in a day (combination of 1..first, 2..second,...) |
int |
hashCode()
|
boolean |
hasIntersection(TimeLocation anotherLocation)
true if overlap |
boolean |
shareDays(TimeLocation anotherLocation)
true if days overlap |
boolean |
shareHours(TimeLocation anotherLocation)
true if hours overlap |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeLocation(edu.purdue.smas.timetable.data.pattern.TimePatternModel timePatternModel,
int day,
int time)
timePatternModel - time pattern modelday - day in time pattern modeltime - time in time pattern model
public TimeLocation(int dayCode,
int startTime,
int length,
int pref)
dayCode - days (combination of 1 for Monday, 2 for Tuesday, ...)startTime - start slotlength - number of slotspref - time preference| Method Detail |
|---|
public int getNrMeetings()
public int getDayCode()
public String getDayHeader()
public String getStartTimeHeader()
public String getEndTimeHeader()
public int getStartSlot()
public int getTimeCode()
public boolean shareDays(TimeLocation anotherLocation)
public boolean shareHours(TimeLocation anotherLocation)
public boolean hasIntersection(TimeLocation anotherLocation)
public Collection getIntersection(TimeLocation anotherLocation)
public int[] getSlots()
public int[] getStartSlots()
public String getText()
public int getPreference()
public int getLength()
public int getNrHalfHoursPerMeeting()
public double getNormalizedPreference()
public edu.purdue.smas.timetable.data.pattern.TimePatternModel getModel()
public String toString()
toString in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||