|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchoco.kernel.common.util.objects.BipartiteSet<E>
public final class BipartiteSet<E>
Implements a bipartite set.
Cette classe est utilisee pour stocker les evenements de propagation de contrainte : les elements de gauche sont a propages, les autres ne doivent pas etre propages.
Constructor Summary | |
---|---|
BipartiteSet()
Constructs a new bipartite set. |
Method Summary | |
---|---|
void |
addLeft(E object)
Adds an object to the left part of the set. |
void |
addRight(E object)
Adds an object to the right part of the set. |
void |
clear()
Clear datastructures for safe reuses |
int |
getNbLeft()
Returns the number of elements in the left part. |
int |
getNbObjects()
Returns the number of objects in the set. |
int |
getNbRight()
Returns the number of elements in the right part. |
boolean |
isIn(E object)
Checks if the object is in the set. |
boolean |
isLeft(E object)
Checks if the object is in the left part of the set. |
Iterator<E> |
leftIterator()
Iterator without a valid remove method ! |
void |
moveAllLeft()
Moves all the objects to the left part. |
void |
moveAllRight()
Moves all the objects to the right part. |
E |
moveLastLeft()
Move the last element in the left part to the right part. |
void |
moveLeft(E object)
Moves the object the left part of the set if needed. |
void |
moveRight(E object)
Moves the object the right part of the set if needed. |
Iterator<E> |
rightIterator()
Iterator without a valid remove method ! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BipartiteSet()
Method Detail |
---|
public void clear()
public void moveLeft(E object)
public void moveRight(E object)
public void moveAllLeft()
public void moveAllRight()
public void addRight(E object)
public void addLeft(E object)
public boolean isLeft(E object)
public boolean isIn(E object)
public int getNbLeft()
public int getNbRight()
public int getNbObjects()
public E moveLastLeft()
public Iterator<E> leftIterator()
public Iterator<E> rightIterator()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |