Class Literal
- java.lang.Object
-
- moa.AbstractMOAObject
-
- moa.classifiers.rules.multilabel.core.Literal
-
- All Implemented Interfaces:
Serializable
,MOAObject
public class Literal extends AbstractMOAObject
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
evaluate(Instance inst)
int
getAttributeIndex()
void
getDescription(StringBuilder sb, int indent)
Returns a string representation of this object.void
getDescription(StringBuilder sb, int indent, InstanceInformation instanceInformation)
String
toString()
Returns a description of the object.-
Methods inherited from class moa.AbstractMOAObject
copy, copy, measureByteSize, measureByteSize
-
-
-
-
Field Detail
-
predicate
protected Predicate predicate
-
-
Constructor Detail
-
Literal
public Literal(Predicate predicate)
-
-
Method Detail
-
getAttributeIndex
public int getAttributeIndex()
-
evaluate
public boolean evaluate(Instance inst)
-
getDescription
public void getDescription(StringBuilder sb, int indent)
Description copied from interface:MOAObject
Returns a string representation of this object. Used inAbstractMOAObject.toString
to give a string representation of the object.- Parameters:
sb
- the stringbuilder to add the descriptionindent
- the number of characters to indent
-
getDescription
public void getDescription(StringBuilder sb, int indent, InstanceInformation instanceInformation)
-
toString
public String toString()
Description copied from class:AbstractMOAObject
Returns a description of the object.- Overrides:
toString
in classAbstractMOAObject
- Returns:
- a description of the object
-
-