Package owl.ltl
Class Literal
- java.lang.Object
-
- owl.ltl.Formula
-
- owl.ltl.Formula.PropositionalOperator
-
- owl.ltl.Literal
-
- All Implemented Interfaces:
Comparable<Formula>
public final class Literal extends Formula.PropositionalOperator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class owl.ltl.Formula
Formula.BinaryTemporalOperator, Formula.NaryPropositionalOperator, Formula.PropositionalOperator, Formula.TemporalOperator, Formula.UnaryTemporalOperator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description <A,B>
Aaccept(BinaryVisitor<B,A> v, B parameter)
int
accept(IntVisitor v)
<R> R
accept(Visitor<R> v)
protected int
compareValue(Formula o)
protected boolean
equalsValue(Formula o)
int
getAtom()
boolean
isNegated()
boolean
isPureEventual()
boolean
isPureUniversal()
Formula
nnf()
Literal
not()
Syntactically negate this formula.static Literal
of(int index)
static Literal
of(int index, boolean negate)
Formula
substitute(Function<? super Formula.TemporalOperator,? extends Formula> substitution)
Formula
temporalStep(BitSet valuation)
Do a single temporal step.String
toString()
-
Methods inherited from class owl.ltl.Formula.PropositionalOperator
unfold
-
Methods inherited from class owl.ltl.Formula
allMatch, anyMatch, atomicPropositions, compareTo, equals, hashCode, height, isSuspendable, subformulas, subformulas, subformulas
-
-
-
-
Method Detail
-
of
public static Literal of(@Nonnegative int index)
-
of
public static Literal of(@Nonnegative int index, boolean negate)
-
temporalStep
public Formula temporalStep(BitSet valuation)
Description copied from class:Formula
Do a single temporal step. This means that one layer of X-operators is removed and literals are replaced by their valuations.- Specified by:
temporalStep
in classFormula
-
substitute
public Formula substitute(Function<? super Formula.TemporalOperator,? extends Formula> substitution)
- Specified by:
substitute
in classFormula
-
accept
public int accept(IntVisitor v)
-
accept
public <A,B> A accept(BinaryVisitor<B,A> v, B parameter)
-
getAtom
public int getAtom()
-
isNegated
public boolean isNegated()
-
isPureEventual
public boolean isPureEventual()
- Specified by:
isPureEventual
in classFormula
-
isPureUniversal
public boolean isPureUniversal()
- Specified by:
isPureUniversal
in classFormula
-
not
public Literal not()
Description copied from class:Formula
Syntactically negate this formula.If this formula is in NNF, the returned negation will also be in NNF.
-
compareValue
protected int compareValue(Formula o)
- Overrides:
compareValue
in classFormula
-
equalsValue
protected boolean equalsValue(Formula o)
- Overrides:
equalsValue
in classFormula
-
-