choco.cp.solver.constraints.global.geost.geometricPrim
Class Shape

java.lang.Object
  extended by choco.cp.solver.constraints.global.geost.geometricPrim.Shape

public final class Shape
extends Object

This is the class that represents a Shape. Each shape has a shape Id and a set of shifted boxes.


Constructor Summary
Shape()
           
Shape(int id)
           
 
Method Summary
 void addShiftedBox(ShiftedBox sb)
           
 int getShapeId()
           
 ShiftedBox getShiftedBox(int index)
           
 List<ShiftedBox> getShiftedBoxes()
           
 void removeShiftedBox(int index)
           
 void removeShiftedBox(ShiftedBox sb)
           
 void setShapeId(int shapeId)
           
 void setShiftedBoxes(List<ShiftedBox> sb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape

public Shape()

Shape

public Shape(int id)
Method Detail

getShiftedBoxes

public List<ShiftedBox> getShiftedBoxes()

setShiftedBoxes

public void setShiftedBoxes(List<ShiftedBox> sb)

addShiftedBox

public void addShiftedBox(ShiftedBox sb)

getShiftedBox

public ShiftedBox getShiftedBox(int index)

removeShiftedBox

public void removeShiftedBox(int index)

removeShiftedBox

public void removeShiftedBox(ShiftedBox sb)

getShapeId

public int getShapeId()

setShapeId

public void setShapeId(int shapeId)


Copyright © 2012. All Rights Reserved.