choco.kernel.model.variables.geost
Class GeostObject

java.lang.Object
  extended by choco.kernel.model.VariableArray
      extended by choco.kernel.model.ModelObject
          extended by choco.kernel.model.variables.AbstractVariable
              extended by choco.kernel.model.variables.MultipleVariables
                  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class choco.kernel.model.VariableArray
VariableArray.VConstraintsDataStructure
 
Field Summary
 
Fields inherited from class choco.kernel.model.variables.MultipleVariables
enableStorage
 
Fields inherited from class choco.kernel.model.variables.AbstractVariable
name, type
 
Fields inherited from class choco.kernel.model.VariableArray
NO_CONSTRAINTS
 
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)
           
 
Method Summary
 IntegerVariable[] getCoordinates()
           
 int getDim()
           
 IntegerVariable getDurationTime()
           
 IntegerVariable getEndTime()
           
 int getObjectId()
           
 int getRadius()
           
 IntegerVariable getShapeId()
           
 IntegerVariable getStartTime()
           
 boolean isSphere()
           
 
Methods inherited from class choco.kernel.model.variables.MultipleVariables
findManager, getConstraintManager, getExpressionManager, getVariableManager, isEquivalentTo, isStored
 
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.ModelObject
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getIndex, getOptions, hashCode
 
Methods inherited from class choco.kernel.model.VariableArray
cancelExtractVariables, doExtractVariables, extractVariables, forceExtractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy, replaceByConstantAt, setVariables, setVariables
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface choco.kernel.model.IVariableArray
extractVariables, getNbVars, getVariable, getVariableIterator, getVariables, replaceBy
 
Methods inherited from interface choco.kernel.common.IIndex
getIndex
 
Methods inherited from interface choco.kernel.model.IOptions
addOption, addOptions, addOptions, addOptions, addOptions, containsOption, getOptions
 

Constructor Detail

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 problem
objectId - An integer representing the object id
shapeId - An Integer Domain Variable representing the possible shape ids the Object can have
coordinates - 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 origin
startTime - An Integer Domain Variable representing the time that the object start in
durationTime - An Integer Domain Variable representing the duration
endTime - 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)
Method Detail

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.