choco.cp.solver.constraints.global.geost.externalConstraints
Class ExternalConstraint

java.lang.Object
  extended by choco.cp.solver.constraints.global.geost.externalConstraints.ExternalConstraint
Direct Known Subclasses:
Compatible, DistGeq, DistLeq, DistLinear, Included, NonOverlapping, NonOverlappingCircle, Visible

public class ExternalConstraint
extends Object

A class that all external constraints should extend. It contains info and functionality common to all external constraints.


Field Summary
protected  int[] dim
           
protected  int ectrID
           
protected  Frame frame
           
protected static int maxId
           
protected  int[] objectIds
           
 
Constructor Summary
ExternalConstraint()
           
ExternalConstraint(int ectrID, int[] dimensions, int[] objectIdentifiers)
           
 
Method Summary
 int[] getDim()
          Gets the list of dimensions that an external constraint is active for.
 int getEctrID()
          Gets the external constraint ID
 Frame getFrame()
          Gets the frame related to an external constraint
 int[] getObjectIds()
          Gets the list of object IDs that this external constraint affects.
 void setDim(int[] dim)
          Sets the list of dimensions that an external constraint is active for.
 void setFrame(Frame frame)
          Sets the frame related to an external constraint
 void setObjectIds(int[] objectIds)
          Sets the list of object IDs that this external constraint affects.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ectrID

protected int ectrID

dim

protected int[] dim

objectIds

protected int[] objectIds

frame

protected Frame frame

maxId

protected static int maxId
Constructor Detail

ExternalConstraint

public ExternalConstraint()

ExternalConstraint

public ExternalConstraint(int ectrID,
                          int[] dimensions,
                          int[] objectIdentifiers)
Method Detail

getDim

public final int[] getDim()
Gets the list of dimensions that an external constraint is active for.


getEctrID

public final int getEctrID()
Gets the external constraint ID


getObjectIds

public final int[] getObjectIds()
Gets the list of object IDs that this external constraint affects.


setDim

public final void setDim(int[] dim)
Sets the list of dimensions that an external constraint is active for.


setObjectIds

public final void setObjectIds(int[] objectIds)
Sets the list of object IDs that this external constraint affects.


getFrame

public final Frame getFrame()
Gets the frame related to an external constraint


setFrame

public final void setFrame(Frame frame)
Sets the frame related to an external constraint



Copyright © 2012. All Rights Reserved.