java.lang.Cloneable
public class Complex
extends java.lang.Object
implements java.lang.Cloneable
Constructor | Description |
---|---|
Complex() |
Constructor
|
Modifier and Type | Method | Description |
---|---|---|
void |
addElementaryCondition(ElementaryCondition elementary) |
Adds elementary condition to complex
|
ElementaryCondition |
get(int i) |
|
void |
removeAll() |
Removes all elementary conditions form complex
|
int |
size() |
|
Rule |
toForemkaRule(Union union,
int typeOfRule,
MemoryContainer learningMemoryContainer,
double consistencyLevel,
ApproximatedEntityDecisionsPredictor unionsDecisionsPredictor) |
Creates and returns
ForemkaRule object that represents this complex |
java.lang.String |
toString() |
public void addElementaryCondition(ElementaryCondition elementary)
elementary
- Given elementary conditionpublic int size()
public ElementaryCondition get(int i)
i
- index of conditionpublic void removeAll()
public java.lang.String toString()
toString
in class java.lang.Object
public Rule toForemkaRule(Union union, int typeOfRule, MemoryContainer learningMemoryContainer, double consistencyLevel, ApproximatedEntityDecisionsPredictor unionsDecisionsPredictor)
ForemkaRule
object that represents this complexunion
- Union for with this rule was createdtypeOfRule
- Type of rule. CERTAIN or POSSIBLE.learningMemoryContainer
- MemoryContainer
objectconsistencyLevel
- ConsistencyLevelunionsDecisionsPredictor
- ForemkaRule
object