Class Module
java.lang.Object
org.variantsync.boosting.datastructure.Module
A Module holds sets of likely and unlikely features and is mapped through an
Association
onto
ASTNode
s.
This class encapsulates a set of literals and provides methods for comparing
modules and retrieving information about the literals it contains.-
Constructor Summary
ConstructorsConstructorDescriptionModule
(CustomHashSet<org.logicng.formulas.Literal> literals) Constructs a new Module with the given set of literals. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compares this Module with the specified object for equality.CustomHashSet
<org.logicng.formulas.Literal> Returns the set of literals contained in this Module.int
hashCode()
Returns a hash code value for the Module.int
size()
Returns the number of literals in this Module.
-
Constructor Details
-
Module
Constructs a new Module with the given set of literals.- Parameters:
literals
- The set of literals to be contained in the module
-
-
Method Details
-
equals
Compares this Module with the specified object for equality. -
hashCode
public int hashCode()Returns a hash code value for the Module. -
getLiterals
Returns the set of literals contained in this Module.- Returns:
- The set of literals contained in this Module
-
size
public int size()Returns the number of literals in this Module.- Returns:
- The number of literals in this Module
-