Package net.maswag.falcaun.parser
Interface TemporalLogic<I>
- Type Parameters:
I- Type of the input at each step
- All Known Subinterfaces:
TemporalLogic.LTLFormula,TemporalLogic.STLCost
- All Known Implementing Classes:
AbstractTemporalLogic,LTLAtomic,STLAbstractAtomic,STLInputAtomic,STLOutputAtomic,TemporalAnd,TemporalAnd.LTLAnd,TemporalAnd.STLAnd,TemporalConst,TemporalConst.LTLConst,TemporalConst.STLConst,TemporalEventually,TemporalEventually.LTLEventually,TemporalEventually.STLEventually,TemporalGlobally,TemporalGlobally.LTLGlobally,TemporalGlobally.STLGlobally,TemporalImply,TemporalImply.LTLImply,TemporalImply.STLImply,TemporalNext,TemporalNext.LTLNext,TemporalNext.STLNext,TemporalNot,TemporalNot.LTLNot,TemporalNot.STLNot,TemporalOp,TemporalOr,TemporalOr.LTLOr,TemporalOr.STLOr,TemporalRelease,TemporalRelease.LTLRelease,TemporalRelease.STLRelease,TemporalSub,TemporalSub.LTLSub,TemporalSub.STLSub,TemporalUntil,TemporalUntil.LTLUntil,TemporalUntil.STLUntil
Interface of a TemporalLogic formula.
- Author:
- Masaki Waga <masakiwaga@gmail.com>
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumSpecifies the type of the formula.static interfacestatic interface -
Method Summary
Modifier and TypeMethodDescriptiondefault DoubleEvaluate the formula on the given signal and returns the robustness value.default voidReturns the collection of atomic propositions under consideration.@NotNull TemporalLogic.IOTypeEvaluate the formula on the given signal and returns the RoSI, i.e., the range of the possible robustness values after concatenating a suffix.@Nullable Collection<String>Returns the collection of atomic propositions such that if one of them is satisfied, the formula is satisfied.booleanReturns true if the mapper is set.booleanReturns true if the formula does not contain any temporal operators.toAbstractLTLString(Map<String, String> mapper) Returns a string representation of the formula in the format of LTSMin.default StringReturns a string representation of the formula in the format of LTSMin.toNnf(boolean neg)
-
Method Details
-
toAbstractString
String toAbstractString()Returns a string representation of the formula in the format of LTSMin.- Returns:
- a
Stringobject representing the formula in the format of LTSMin.
-
toLTLString
Returns a string representation of the formula in the format of LTSMin.- Returns:
- a
Stringobject representing the formula in the format of LTSMin.
-
toAbstractLTLString
-
toOwlString
String toOwlString() -
getRoSI
Evaluate the formula on the given signal and returns the RoSI, i.e., the range of the possible robustness values after concatenating a suffix.- Parameters:
signal- The input-output signal to evaluate the formula on- Returns:
- a
RoSIobject representing the range of the possible robustness values after concatenating a suffix.
-
apply
Evaluate the formula on the given signal and returns the robustness value. -
getAllAPs
Returns the collection of atomic propositions under consideration. If this formula contains only the input constraints, the atomic propositions are the input constraints. If this formula contains only the output constraints, the atomic propositions are the output constraints. If this formula contains both input and output constraints, the atomic propositions are one of the input and output constraints.- Returns:
- A set of all atomic propositions in the formula
-
constructSatisfyingAtomicPropositions
default void constructSatisfyingAtomicPropositions() -
isNonTemporal
boolean isNonTemporal()Returns true if the formula does not contain any temporal operators.- Returns:
- a boolean value indicating whether the formula contains any temporal operators.
-
isInitialized
boolean isInitialized()Returns true if the mapper is set.- Returns:
- true if the formula is initialized with a mapper, false otherwise
-
getIOType
-
getSatisfyingAtomicPropositions
Returns the collection of atomic propositions such that if one of them is satisfied, the formula is satisfied. If there is no such collection, returns nullSuch a set exists if the formula does not contain any temporal operators.
- Returns:
- A collection of atomic propositions that satisfy the formula, or null if no such collection exists
-
toNnf
-
toDisjunctiveForm
TemporalLogic<I> toDisjunctiveForm() -
getAllConjunctions
List<TemporalLogic<I>> getAllConjunctions()
-