public final class BasicIndexedBipartiteSet extends Object
Constructor and Description |
---|
BasicIndexedBipartiteSet(IEnvironment environment,
int nbValues)
Create a stored bipartite set with a size.
|
Modifier and Type | Method and Description |
---|---|
int |
add() |
boolean |
bundle(int i)
Returns the bundle in which the i^h object is placed.
|
boolean |
contains(int i) |
int |
get(int index) |
boolean |
isEmpty() |
int |
size() |
void |
swap(int object) |
public BasicIndexedBipartiteSet(IEnvironment environment, int nbValues)
environment
- a bactrackable environmentnbValues
- capacitypublic final int size()
public final boolean isEmpty()
public final int add()
public void swap(int object)
public int get(int index)
public boolean bundle(int i)
true
means IN, the object can be swapped
false
means OUT, the object is already swappedi
- index of the objectpublic boolean contains(int i)
Copyright © 2018. All rights reserved.