choco.kernel.model.variables.geost
Class GeostObject
java.lang.Object
choco.kernel.model.VariableArray
choco.kernel.model.ModelObject
choco.kernel.model.variables.AbstractVariable
choco.kernel.model.variables.MultipleVariables
choco.kernel.model.variables.geost.GeostObject
- All Implemented Interfaces:
- IPretty, IIndex, IConstraintList, IFindManager, IOptions, IVariableArray, IHook, Variable, Serializable, Comparable
public class GeostObject
- extends MultipleVariables
Created by IntelliJ IDEA.
User: charles
Date: 4 juil. 2008
Time: 16:31:57
Class to define in an easy way objects for the Geost Constraint.
This is a model object that is readable by the solver to create a Geost Constraint.
- See Also:
- Serialized Form
Fields inherited from interface choco.kernel.model.variables.Variable |
LOGGER |
Fields inherited from interface choco.kernel.model.variables.IHook |
NO_HOOK |
Constructor Summary |
GeostObject(int dim,
int objectId,
IntegerVariable shapeId,
IntegerVariable[] coordinates,
IntegerVariable startTime,
IntegerVariable durationTime,
IntegerVariable endTime)
Creates an object with the given parameters |
GeostObject(int dim,
int objectId,
IntegerVariable shapeId,
IntegerVariable[] coordinates,
IntegerVariable startTime,
IntegerVariable durationTime,
IntegerVariable endTime,
int radius)
|
Methods inherited from class choco.kernel.model.variables.AbstractVariable |
_addConstraint, _contains, _removeConstraint, compareTo, getConstraint, getConstraintIterator, getConstraintIterator, getConstraints, getHook, getName, getNbConstraint, getNbConstraint, getVariableType, pretty, removeConstraints, resetHook, setHook, setName, throwConstantException, toString |
Methods inherited from class choco.kernel.model.VariableArray |
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables |
GeostObject
public GeostObject(int dim,
int objectId,
IntegerVariable shapeId,
IntegerVariable[] coordinates,
IntegerVariable startTime,
IntegerVariable durationTime,
IntegerVariable endTime)
- Creates an object with the given parameters
- Parameters:
dim
- An integer representing the dimension of the placement problemobjectId
- An integer representing the object idshapeId
- An Integer Domain Variable representing the possible shape ids the Object can havecoordinates
- An array of size k of Integer Domain Variables (where k is the dimension of the space we are working in) representing the Domain of our object originstartTime
- An Integer Domain Variable representing the time that the object start indurationTime
- An Integer Domain Variable representing the durationendTime
- An Integer Domain Variable representing the time that the object ends in
GeostObject
public GeostObject(int dim,
int objectId,
IntegerVariable shapeId,
IntegerVariable[] coordinates,
IntegerVariable startTime,
IntegerVariable durationTime,
IntegerVariable endTime,
int radius)
getDim
public int getDim()
getObjectId
public int getObjectId()
getShapeId
public IntegerVariable getShapeId()
getCoordinates
public IntegerVariable[] getCoordinates()
getStartTime
public IntegerVariable getStartTime()
getDurationTime
public IntegerVariable getDurationTime()
getEndTime
public IntegerVariable getEndTime()
getRadius
public int getRadius()
isSphere
public boolean isSphere()
Copyright © 2012. All Rights Reserved.