Class BasicIndexedBipartiteSet

  • public final class BasicIndexedBipartiteSet
    extends Object
    • Constructor Detail

      • BasicIndexedBipartiteSet

        public BasicIndexedBipartiteSet​(IEnvironment environment,
                                        int nbValues)
        Create a stored bipartite set with a size. Thus the value stored will go from 0 to nbValues.
        environment - a bactrackable environment
        nbValues - capacity
    • Method Detail

      • size

        public final int size()
      • isEmpty

        public final boolean isEmpty()
      • add

        public final int add()
      • swap

        public void swap​(int object)
      • get

        public int get​(int index)
      • bundle

        public boolean bundle​(int i)
        Returns the bundle in which the i^h object is placed. true means IN, the object can be swapped false means OUT, the object is already swapped
        i - index of the object
        a boolean value: true means can be swapped, false otherwise
      • contains

        public boolean contains​(int i)