Interface CycleCounter
- All Known Implementing Classes:
CycleCounter2LP,CycleCounter3LP
public interface CycleCounter
Interface for cycle counting algorithms.
-
Method Summary
Modifier and Type Method Description intaddPartial(Partial partial, int correctSmoothCount)Counts the number of independent cycles in the partial relations.intgetCycleCount()java.util.HashSet<Partial>getPartialRelations()intgetPartialRelationsCount()voidinitializeForN()Initialize this cycle counter for a new factor argument.
-
Method Details
-
initializeForN
void initializeForN()Initialize this cycle counter for a new factor argument. -
addPartial
Counts the number of independent cycles in the partial relations.- Parameters:
partial- the newest partial relation to addcorrectSmoothCount- the correct number of smooths from partials (only for debugging)- Returns:
- the updated number of smooths from partials
-
getPartialRelations
java.util.HashSet<Partial> getPartialRelations()- Returns:
- the partial relations found so far
-
getPartialRelationsCount
int getPartialRelationsCount()- Returns:
- number of partial relations found so far.
-
getCycleCount
int getCycleCount()- Returns:
- the number of cycles counted by this algorithm
-