|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.cpsolver.coursett.model.RoomLocation
public class RoomLocation
Room part of placement.
Constructor Summary | |
---|---|
RoomLocation(Long id,
String name,
Long bldgId,
int preference,
int size,
int x,
int y,
boolean ignoreTooFar,
RoomConstraint rc)
Constructor |
Method Summary | |
---|---|
int |
compareTo(Object o)
|
boolean |
equals(Object o)
|
Long |
getBuildingId()
Building id |
double |
getDistance(RoomLocation roomLocation)
|
Long |
getId()
Room id |
boolean |
getIgnoreTooFar()
|
String |
getName()
Room name |
int |
getPosX()
X-position of the building |
int |
getPosY()
Y-position of the building |
int |
getPreference()
Room preference |
RoomConstraint |
getRoomConstraint()
|
int |
getRoomSize()
Room size |
int |
hashCode()
|
void |
setCoordinates(int x,
int y)
Position of the building |
void |
setPreference(int preference)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RoomLocation(Long id, String name, Long bldgId, int preference, int size, int x, int y, boolean ignoreTooFar, RoomConstraint rc)
id
- room idname
- room namebldgId
- building idpreference
- soft preferencesize
- room sizex
- x-position of the buildingy
- y-position of the buildingMethod Detail |
---|
public Long getId()
public Long getBuildingId()
public String getName()
public int getPreference()
public void setPreference(int preference)
public int getRoomSize()
public void setCoordinates(int x, int y)
public int getPosX()
public int getPosY()
public boolean getIgnoreTooFar()
public RoomConstraint getRoomConstraint()
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
public double getDistance(RoomLocation roomLocation)
public int compareTo(Object o)
compareTo
in interface Comparable
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |