|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectifs.model.Value
ttsolver.model.Placement
public class Placement
Placement (value).
It combines room and time location
| Field Summary |
|---|
| Fields inherited from class ifs.model.Value |
|---|
iValue |
| Constructor Summary | |
|---|---|
Placement(Lecture lecture,
TimeLocation timeLocation,
RoomLocation roomLocation)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
By default, comparison is made on unique ids |
String |
getBuildingId()
Building id |
String |
getDescription()
Values description -- for printing purposes |
static double |
getDistance(Placement p1,
Placement p2)
Distance between two placements |
String |
getInstructorId()
Instructor id |
String |
getName()
Values name -- for printing purposes (E.g., Monday 7:30) |
String |
getRoomId()
Room id |
RoomLocation |
getRoomLocation()
Room location |
TimeLocation |
getTimeLocation()
Time location |
boolean |
isInitial()
Is initial placement |
void |
setInitial(boolean initial)
Is initial placement |
static boolean |
shareDays(Placement p1,
Placement p2)
True if the two given placements are using at one same day |
String |
toString()
|
| Methods inherited from class ifs.model.Value |
|---|
assigned, compareTo, conflicts, countAssignments, getExtra, getId, hashCode, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, toInt, unassigned, valueEquals, variable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Placement(Lecture lecture,
TimeLocation timeLocation,
RoomLocation roomLocation)
lecture - lecturetimeLocation - time locationroomLocation - room location| Method Detail |
|---|
public TimeLocation getTimeLocation()
public String getRoomId()
public String getBuildingId()
public RoomLocation getRoomLocation()
public String getInstructorId()
public String getName()
Value
getName in class Valuepublic boolean isInitial()
public void setInitial(boolean initial)
public boolean equals(Object object)
Value
equals in class Valuepublic String toString()
toString in class Valuepublic String getDescription()
Value
getDescription in class Value
public static double getDistance(Placement p1,
Placement p2)
public static boolean shareDays(Placement p1,
Placement p2)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||