|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.cp.solver.constraints.global.geost.geometricPrim.Point
public final class Point
This class represent a k dimensional Point.
Constructor Summary | |
---|---|
Point(int dim)
Creates a point of dimension dim at the origin of the coordinate base. |
|
Point(int[] coordinates)
Creates a point object from an array of integers. |
|
Point(Point p)
Creates a point identical to the point given as parameter. |
Method Summary | |
---|---|
boolean |
equalTo(Point other)
|
int |
getCoord(int index)
|
int[] |
getCoords()
|
boolean |
lexGreaterThan(Point other,
int d)
Tests whether this point is lexicographically strictly greater than to the other point (passed by parameter). |
boolean |
lexGreaterThan(Point other,
int[] ctrlV)
|
boolean |
lexGreaterThanOrEqual(Point other,
int d)
Tests whether this point is lexicographically greater than or equal to the other point (passed by parameter). |
boolean |
lexLessThan(Point other,
int d)
Tests whether this point is lexicographically strictly smaller than the other point (passed by parameter). |
boolean |
lexLessThanOrEqual(Point other,
int d)
Tests whether this point is lexicographically smaller than or equal to the other point (passed by parameter). |
void |
print()
|
void |
setCoord(int index,
int value)
|
void |
setCoords(int[] coordinates)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Point(int dim)
dim
- The dimension of the point object to createpublic Point(int[] coordinates)
coordinates
- An array of integers of length the dimension of the point.public Point(Point p)
p
- A point objectMethod Detail |
---|
public void print()
public int[] getCoords()
public void setCoords(int[] coordinates)
public int getCoord(int index)
public void setCoord(int index, int value)
public boolean lexGreaterThanOrEqual(Point other, int d)
public boolean equalTo(Point other)
public boolean lexGreaterThan(Point other, int[] ctrlV)
public boolean lexGreaterThan(Point other, int d)
public boolean lexLessThanOrEqual(Point other, int d)
public boolean lexLessThan(Point other, int d)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |