|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.cpsolver.ifs.model.Value<Rectangle,Location>
net.sf.cpsolver.ifs.example.rpp.Location
public class Location
Location (value, i.e., a single placement of the rectangle). Location encodes X and Y coordinate.
| Field Summary |
|---|
| Fields inherited from class net.sf.cpsolver.ifs.model.Value |
|---|
iValue |
| Constructor Summary | |
|---|---|
Location(Rectangle rectangle,
int x,
int y)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
equals(Object object)
Compare two coordinates. |
String |
getName()
Location's name. |
int |
getX()
Gets x coordinate |
int |
getY()
Gets y coordinate |
boolean |
hasIntersection(Location anotherLocation)
Returns true if the given location intersects with this location |
String |
toString()
String representation (for debugging and printing purposes). |
| Methods inherited from class net.sf.cpsolver.ifs.model.Value |
|---|
assigned, compareTo, conflicts, countAssignments, getDescription, getExtra, getId, hashCode, isConsistent, lastAssignmentIteration, lastUnassignmentIteration, setExtra, setVariable, toDouble, unassigned, valueEquals, variable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Location(Rectangle rectangle,
int x,
int y)
rectangle - parent variablex - x coordinatey - y coordinate| Method Detail |
|---|
public int getX()
public int getY()
public boolean equals(Object object)
equals in class Value<Rectangle,Location>public String toString()
toString in class Value<Rectangle,Location>public String getName()
getName in class Value<Rectangle,Location>public boolean hasIntersection(Location anotherLocation)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||