public class Body extends LiteralSet
Constructor and Description |
---|
Body()
Constructor without storing the counter-instances.
|
Body(Instances instances)
Constructor storing the counter-instances.
|
Modifier and Type | Method and Description |
---|---|
boolean |
canKeep(Instance instance,
Literal newLit)
Test if an instance can be kept as a counter-instance,
if a new literal is added to this body.
|
java.lang.String |
getRevision()
Returns the revision string.
|
boolean |
isIncludedIn(Rule otherRule)
Test if this Body is included in a rule.
|
java.lang.String |
toString()
Gives a String representation of this set of literals as a conjunction.
|
addElement, clone, contains, counterInstance, counterInstance, enumerateLiterals, getCounterInstancesFrequency, getCounterInstancesNumber, getLastLiteral, getType, hasMaxCounterInstances, isEmpty, negationIncludedIn, numLiterals, overFrequencyThreshold, upDate
public Body()
public Body(Instances instances)
instances
- The dataset.public boolean canKeep(Instance instance, Literal newLit)
canKeep
in class LiteralSet
instance
- The instance to test.newLit
- The new literal.public boolean isIncludedIn(Rule otherRule)
isIncludedIn
in class LiteralSet
otherRule
- The rule to test.public java.lang.String toString()
toString
in class LiteralSet
public java.lang.String getRevision()