Package owl.automaton.acceptance
Class GeneralizedRabinAcceptance
- java.lang.Object
-
- owl.automaton.acceptance.OmegaAcceptance
-
- owl.automaton.acceptance.GeneralizedRabinAcceptance
-
- Direct Known Subclasses:
RabinAcceptance
public class GeneralizedRabinAcceptance extends OmegaAcceptance
Generalized Rabin Acceptance - OR (Fin(i) and AND Inf(j)).A generalized Rabin acceptance is formed by a disjunction of a conjunction between one Fin and multiple Inf conditions.
According to the HOA specifications, the indices are monotonically increasing and used for exactly one Fin/Inf atom.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGeneralizedRabinAcceptance.Builderstatic classGeneralizedRabinAcceptance.RabinPair
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intacceptanceSets()BitSetacceptingSet()jhoafparser.ast.BooleanExpression<jhoafparser.ast.AtomAcceptance>booleanExpression()Builds the canonical representation asBooleanExpression.GeneralizedRabinAcceptancefilter(IntPredicate predicate)booleanisWellFormedEdge(Edge<?> edge)This method determines if the given edge is a well defined edge for this acceptance condition.Stringname()List<Object>nameExtra()static GeneralizedRabinAcceptanceof(List<GeneralizedRabinAcceptance.RabinPair> pairs)static GeneralizedRabinAcceptanceof(jhoafparser.ast.BooleanExpression<jhoafparser.ast.AtomAcceptance> expression)static GeneralizedRabinAcceptanceof(GeneralizedRabinAcceptance.RabinPair... pairs)List<GeneralizedRabinAcceptance.RabinPair>pairs()Returns an unmodifiable view of the pair collection.BitSetrejectingSet()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from class owl.automaton.acceptance.OmegaAcceptance
isWellFormedAutomaton, toString
-
-
-
-
Method Detail
-
acceptingSet
public BitSet acceptingSet()
- Specified by:
acceptingSetin classOmegaAcceptance
-
rejectingSet
public BitSet rejectingSet()
- Specified by:
rejectingSetin classOmegaAcceptance
-
of
public static GeneralizedRabinAcceptance of(GeneralizedRabinAcceptance.RabinPair... pairs)
-
of
public static GeneralizedRabinAcceptance of(List<GeneralizedRabinAcceptance.RabinPair> pairs)
-
of
public static GeneralizedRabinAcceptance of(jhoafparser.ast.BooleanExpression<jhoafparser.ast.AtomAcceptance> expression)
-
acceptanceSets
public int acceptanceSets()
- Specified by:
acceptanceSetsin classOmegaAcceptance
-
booleanExpression
public jhoafparser.ast.BooleanExpression<jhoafparser.ast.AtomAcceptance> booleanExpression()
Description copied from class:OmegaAcceptanceBuilds the canonical representation asBooleanExpression.- Specified by:
booleanExpressionin classOmegaAcceptance
-
name
public String name()
- Specified by:
namein classOmegaAcceptance
-
nameExtra
public List<Object> nameExtra()
- Overrides:
nameExtrain classOmegaAcceptance
-
pairs
public List<GeneralizedRabinAcceptance.RabinPair> pairs()
Returns an unmodifiable view of the pair collection.- Returns:
- The rabin pairs of this acceptance condition
-
isWellFormedEdge
public boolean isWellFormedEdge(Edge<?> edge)
Description copied from class:OmegaAcceptanceThis method determines if the given edge is a well defined edge for this acceptance condition. E.g. a parity condition might check that the edge has at most one acceptance index and the index is less than the colour count.- Specified by:
isWellFormedEdgein classOmegaAcceptance- Parameters:
edge- The edge to be checked.- Returns:
- Whether the edge acceptance is well defined.
-
filter
public GeneralizedRabinAcceptance filter(IntPredicate predicate)
-
-