public class DominanceConesContainer
extends java.lang.Object
Constructor | Description |
---|---|
DominanceConesContainer(MemoryContainer memoryContainer) |
Constructor setting memory container
|
Modifier and Type | Method | Description |
---|---|---|
java.util.ArrayList<DominanceConesForExample> |
getDominanceConesForExamples() |
Gets array list with dominance cones for single examples from stored memory container
|
MemoryContainer |
getMemoryContainer() |
Gets memory container for which this dominance cones container has been created
|
int[] |
getNegativeDominanceCone(int exampleNumber) |
Gets negative dominance cone of example with given number, belonging to
memory container for which this dominance cones container has been created.
|
int[] |
getPositiveDominanceCone(int exampleNumber) |
Gets positive dominance cone of example with given number, belonging to
memory container for which this dominance cones container has been created.
|
int |
size() |
Gets current size of this dominance cones container,
equal to the number of objects for which positive and negative dominance cones have been stored.
|
void |
storeDominanceCones(int exampleNumber,
int[] positiveDominanceCone,
int[] negativeDominanceCone) |
Stores positive and negative dominance cones for example with given number, belonging to
memory container for which this dominance cones container has been created
|
public DominanceConesContainer(MemoryContainer memoryContainer)
memoryContainer
- memory container for which this dominance cones container is createdjava.lang.NullPointerException
- when given memory container is null
InvalidValueException
- when memory container contains no attributes or no examplespublic void storeDominanceCones(int exampleNumber, int[] positiveDominanceCone, int[] negativeDominanceCone)
exampleNumber
- number of example from memory container for which this dominance cones container has been createdpositiveDominanceCone
- list of the numbers of dominating examplesnegativeDominanceCone
- list of the numbers of dominated examplesjava.lang.IndexOutOfBoundsException
- when given index of example is too small or too big for the considered memory containerInvalidValueException
- when positive or negative dominance cone is not null
but does not contain at least one example's numberpublic int[] getPositiveDominanceCone(int exampleNumber)
null
.exampleNumber
- number of example from memory container for which this dominance cones container has been createdjava.lang.IndexOutOfBoundsException
- when given index of example is too small or too big for the considered memory containerpublic int[] getNegativeDominanceCone(int exampleNumber)
null
.exampleNumber
- number of example from memory container for which this dominance cones container has been createdjava.lang.IndexOutOfBoundsException
- when given index of example is too small or too big for the considered memory containerpublic MemoryContainer getMemoryContainer()
public int size()
public java.util.ArrayList<DominanceConesForExample> getDominanceConesForExamples()