Class PiecesSplitter
java.lang.Object
fr.inria.rules.integraal.util.PiecesSplitter
Split a set of atoms in pieces
A piece of an atom set is a set of atoms such that the atoms containing a variable v
are all in the same piece and the size of the pieces is minimal for this property
You can choose if you want to include grounded atoms as their own piece or exclude them from the splitting
- Author:
- Guillaume Pérution-Kihli
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorPiecesSplitter(boolean includeGroundedAtoms) Creates a splitter with configurable handling of grounded atoms.PiecesSplitter(boolean includeGroundedAtoms, Collection<Variable> existentialVariables) Creates a splitter with configurable handling of grounded atoms and existential variables. -
Method Summary
Modifier and TypeMethodDescriptionsplit(Collection<Atom> toSplit) Splits the given atoms into single piece
-
Constructor Details
-
PiecesSplitter
public PiecesSplitter()Default constructorBy default, grounded atoms are included
-
PiecesSplitter
public PiecesSplitter(boolean includeGroundedAtoms) Creates a splitter with configurable handling of grounded atoms.- Parameters:
includeGroundedAtoms- to declare if grounded atoms should be included
-
PiecesSplitter
Creates a splitter with configurable handling of grounded atoms and existential variables.- Parameters:
includeGroundedAtoms- to declare if grounded atoms should be includedexistentialVariables- pre-computed existential variables
-
-
Method Details
-
split
Splits the given atoms into single piece- Parameters:
toSplit- atoms to split into single pieces- Returns:
- pieces of atoms
-