|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.processmining.models.heuristics.impl.HNSet
public class HNSet
Ordered set of HNSubSet objects that is used to represent sets
in the input and output sets of HeuristicsNet objects.
| Constructor Summary | |
|---|---|
HNSet()
Constructs a HNSet object |
|
| Method Summary | |
|---|---|
void |
add(HNSubSet subset)
Adds a given subset to this HNSet object |
void |
addAll(HNSet setToInclude)
Adds all the subsets in a given HNSet object to this
HNSet object |
boolean |
contains(HNSubSet subset)
Checks if a certain subset is already contained in this HNSet object |
HNSet |
deepCopy()
Creates a deep copy of this HNSet object |
HNSet |
deepCopy(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap)
|
boolean |
equals(java.lang.Object o)
Compares if the given HNSet object contains the same values
of this HNSet object |
HNSubSet |
get(int index)
Retrieves the HNSubSet object at a given position in this
HNSet object |
static HNSubSet |
getUnionSet(HNSet set)
Calculates the union set of all the subsets contained in the given HNSet object |
int |
hashCode()
Retrieves the hash code of this HNSet object |
void |
remove(HNSubSet subset)
Removes a given subset of this HNSet object |
void |
removeAll(HNSet toRemove)
Removes from this HNSet object all the subsets that are
contained in a given HNSet object |
static HNSet |
removeElementFromSubsets(HNSet set,
int element)
Removes a given element from all the subsets contained in the provided HNSet object |
int |
size()
Retrieves the number of subsets contained in this HNSet
object |
java.lang.String |
toString()
Builds a string representation of this HNSet object |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HNSet()
HNSet object
| Method Detail |
|---|
public final int size()
HNSet
object
HNSet objectpublic final HNSubSet get(int index)
HNSubSet object at a given position in this
HNSet object
index - subset's position
HNSubSet object of at this positionpublic final HNSet deepCopy()
HNSet object
HNSet object with the same contents of the
this HNSet objectpublic HNSet deepCopy(java.util.Map<java.lang.Integer,java.lang.Integer> oldNewIndexMap)
public void add(HNSubSet subset)
HNSet object
subset - subset to be added to this HNSet object
RuntimeException - if subset to add is
nullpublic void addAll(HNSet setToInclude)
HNSet object to this
HNSet object
toAdd - set contains the subsets to addpublic boolean contains(HNSubSet subset)
HNSet object
subset - subset that may be contained in this HNSet
object
true if this HNSet object contains the
given subset, false otherwise.public void remove(HNSubSet subset)
HNSet object
subset - subset to be removed from this HNSet objectpublic void removeAll(HNSet toRemove)
HNSet object all the subsets that are
contained in a given HNSet object
toRemove - set with subsets to be removed from this HNSet
objectpublic int hashCode()
HNSet object
hashCode in class java.lang.Object HNSet objectpublic boolean equals(java.lang.Object o)
HNSet object contains the same values
of this HNSet object
equals in class java.lang.Objecttrue - if the two HNSet objects are the
same, false otherwisepublic java.lang.String toString()
HNSet object
toString in class java.lang.Object HNSet objectpublic static final HNSubSet getUnionSet(HNSet set)
HNSet object
set - set contains all the subset to be united
set
public static HNSet removeElementFromSubsets(HNSet set,
int element)
HNSet object
set - provided subsetelement - value to be removed from subsets
element
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||