public class MemoryContainerValidator
extends java.lang.Object
Constructor | Description |
---|---|
MemoryContainerValidator(MemoryContainer memoryContainer) |
Constructor checks if memoryContainer is valid
|
Modifier and Type | Method | Description |
---|---|---|
int |
getActiveCondAttCount() |
Number of active conditional attributes
|
int |
getDecisionCriterionNumber() |
|
void |
vaildateMissingValues() |
Validates if memory container.
|
void |
validateMemoryContainer() |
Checks if memory container for which this union container is to be defined is correct
returns appropriate error message if is not or
null if is ok
It checks:
if memory container is null
if memory container contains no attributes or no examples
if no active conditional criterion has been found in memory container
|
public MemoryContainerValidator(MemoryContainer memoryContainer)
memoryContainer
- Memory container objectpublic void validateMemoryContainer()
null
if is ok
It checks:
null
jmaf.core.exceptions.CannotCalculateException
- When container is invalid. Exception's message describes
problempublic void vaildateMissingValues()
jmaf.core.exceptions.CannotCalculateException
- When any example in memory container has missing
values on all active attributes or no active decision criterion or on first active
decision criterion any example has unknown valuepublic int getDecisionCriterionNumber()
jmaf.core.exceptions.CannotCalculateException
- when no active decision criterion in memory containerpublic int getActiveCondAttCount()