choco.kernel.model.variables.geost
Class ShiftedBox
java.lang.Object
choco.kernel.model.variables.geost.ShiftedBox
- All Implemented Interfaces:
- Serializable
public class ShiftedBox
- extends Object
- implements Serializable
This is the class that represents a Shifted Box. Each shifted box belongs to a shape (therefore the shape id variable) and has two lists
that specify its offset (basically origin, lower left corner) and its size in every dimension.
- See Also:
- Serialized Form
ShiftedBox
public ShiftedBox(int shapeId,
int[] offset,
int[] size)
ShiftedBox
public ShiftedBox()
setOffset
public void setOffset(int index,
int value)
setOffset
public void setOffset(int[] off)
getOffset
public int getOffset(int index)
getOffset
public int[] getOffset()
setSize
public void setSize(int index,
int value)
setSize
public void setSize(int[] s)
getSize
public int getSize(int index)
getSize
public int[] getSize()
getShapeId
public int getShapeId()
setShapeId
public void setShapeId(int id)
print
public void print()
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2012. All Rights Reserved.