public class AttributeInfoManager
extends java.lang.Object
AttributeInfo
will be created
for each attribute from memory container. This is extremally important in case of rules' conditions,
because each condition stores reference to AttributeInfo
object. Since during rule generation process potentially
large amount of candidate conditions for each attribute is created and considered, it is senseless to create new
AttributeInfo
object for each condition defined for the same attribute.
It is reasonable to create only one AttributeInfo
object per each attribute and store reference
to this object in each condition defined for considered attribute.getAttributeInfo
method will create AttributeInfo
object,
store it in this class, and return its reference.
Each subsequent call to this method, with the same attribute number, will only return already stored reference.Constructor | Description |
---|---|
AttributeInfoManager(MemoryContainer memoryContainer) |
Creates attributes' manager for given memory container.
|
Modifier and Type | Method | Description |
---|---|---|
AttributeInfo |
getAttributeInfo(int attributeNumber) |
Gets information about the attribute from stored memory container which has given number
|
public AttributeInfoManager(MemoryContainer memoryContainer)
MemoryContainersDescriptions
class and if so, retrieves that description
and gets from it descriptions of the meanings of all attributes from considered memory container
and quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space.
If description of given memory container is not stored in MemoryContainersDescriptions
class
then descriptions of the meanings of all attributes from given memory container
and quantities of added minimal values for particular cardinal gain criteria in Lorenz evaluation space
are unknown (set to null
) and will not be used while creating AttributeInfo
objects.memoryContainer
- reference to memory container for which attribute's manager should be createdjava.lang.NullPointerException
- when memory container is null
InvalidValueException
- when memory container contains no attributes or no examplespublic AttributeInfo getAttributeInfo(int attributeNumber)
attributeNumber
- number of the attribute in memory containerInvalidValueException
- when attribute's number is too small or too big for memory container
for which this manager was createdjava.lang.NullPointerException
- when attribute with given number is a Lorenz one but there is no information
about how many minimal values of cardinal gain criteria from Pareto evaluation space are added
to create value of that Lorenz attribute