public class GeostObject extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
GeostObject.TimeBoundConstraint |
| Modifier and Type | Field and Description |
|---|---|
IntVar[] |
coords
It specifies the coordinates in k-dimensional space at which the object is fixed.
|
int |
dimension
It specifies the number of dimensions in this object.
|
IntVar |
duration
It specifies the duration time of this object.
|
IntVar |
end
It specifies the end time of this object.
|
int |
no
A unique identifier greater or equal to 0.
|
IntVar |
shapeID
It specifies the possible shape ids to be taken by this object.
|
IntVar |
start
It specifies the start time of this object in time dimension.
|
ArrayList<Var> |
variables
It stores all finite domain variables in connection to this object.
|
static String[] |
xmlAttributes
It specifies the arguments required to be saved by an XML format as well as
the constructor being called to recreate an object from an XML format.
|
| Constructor and Description |
|---|
GeostObject(int no,
IntVar[] coords,
IntVar shapeID,
IntVar start,
IntVar duration,
IntVar end)
It constructs a Geost object with all the attributes needed by the Geost
constraint.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Var> |
getVariables()
It returns finite domain variables which belong to this object.
|
boolean |
isGrounded()
It checks whether the object location is fixed.
|
void |
onGround(Var variable)
It is executed as soon as any object variable is grounded.
|
void |
onUnGround(Var variable)
It is executed as soon as backtracking has occurred making previously grounded variable ungrounded again.
|
String |
toString() |
public final int no
public final int dimension
public final IntVar[] coords
public final IntVar shapeID
public final IntVar start
public final IntVar duration
public final IntVar end
public final ArrayList<Var> variables
public static String[] xmlAttributes
public GeostObject(int no,
IntVar[] coords,
IntVar shapeID,
IntVar start,
IntVar duration,
IntVar end)
no - nonnegative unique id of this object.coords - an array of variables representing the origin (start) of the objects.shapeID - the variable specifying the shape finite domain variable.start - it determines the start time of the geost object in terms of time.duration - finite domain variable specifying the duration of the geost object in terms of time.end - public Collection<Var> getVariables()
public final void onGround(Var variable)
variable - variable being grounded.public final void onUnGround(Var variable)
variable - variable being ungrounded.public final boolean isGrounded()
Copyright © 2016. All rights reserved.