EVolve.util.Equators
Class Set

java.lang.Object
  |
  +--EVolve.util.Equators.Set
Direct Known Subclasses:
OrderedSet, SpecialUnorderedSet

public abstract class Set
extends java.lang.Object


Field Summary
protected  int[] data
           
protected  int emptySlot
           
protected  int entityNumber
           
protected  int size
           
 
Constructor Summary
Set()
           
 
Method Summary
abstract  void addElement(int element)
           
abstract  boolean equals(Set set, float percent)
           
abstract  boolean exist(int element)
           
 int getElement(int i)
           
 int getEntityId(int i)
           
abstract  int getHashValue()
           
 int getValidSize()
           
abstract  Set intersection(Set set)
           
abstract  Set newSet()
           
 boolean setFull()
           
 int size()
           
abstract  Set union(Set set)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

data

protected int[] data

size

protected int size

emptySlot

protected int emptySlot

entityNumber

protected int entityNumber
Constructor Detail

Set

public Set()
Method Detail

size

public int size()

getElement

public int getElement(int i)

setFull

public boolean setFull()

getValidSize

public int getValidSize()

getEntityId

public int getEntityId(int i)

addElement

public abstract void addElement(int element)

intersection

public abstract Set intersection(Set set)

union

public abstract Set union(Set set)

exist

public abstract boolean exist(int element)

getHashValue

public abstract int getHashValue()

newSet

public abstract Set newSet()

equals

public abstract boolean equals(Set set,
                               float percent)