Package net.maswag.falcaun.parser
Class LTLAtomic
- All Implemented Interfaces:
Function<IOSignal<String>,,Double> TemporalLogic<String>,TemporalLogic.LTLFormula
The atomic propositions in LTL formulas
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.maswag.falcaun.parser.TemporalLogic
TemporalLogic.IOType, TemporalLogic.LTLFormula, TemporalLogic.STLCost -
Field Summary
FieldsFields inherited from class net.maswag.falcaun.parser.AbstractTemporalLogic
initialized, iOType, nonTemporal, satisfyingAtomicPropositions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCollects all atomic propositions from this formula and its subformulas.voidReturns all atomic propositions from the appropriate set based on the IO type.getAPs()Gets the atomic propositions for this formula.Evaluate the formula on the given signal and returns the RoSI, i.e., the range of the possible robustness values after concatenating a suffix.voidSets the universe of atomic propositions for this formula.toAbstractLTLString(Map<String, String> mapper) Returns a string representation of the formula in the format of LTSMin.toNnf(boolean negate) toString()Methods inherited from class net.maswag.falcaun.parser.AbstractTemporalLogic
equals, getSatisfyingAtomicPropositions, hashCode, makeAbstractStringWithAtomicStrings, makeAbstractStringWithAtomicStringsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.maswag.falcaun.parser.TemporalLogic
apply, getIOType, getSatisfyingAtomicPropositions, isInitialized, isNonTemporal, toLTLString
-
Field Details
-
formulaBase
-
inputString
-
outputString
-
-
Constructor Details
-
LTLAtomic
-
-
Method Details
-
setAPs
Sets the universe of atomic propositions for this formula. This is necessary for correctly computing negation.- Specified by:
setAPsin interfaceTemporalLogic.LTLFormula- Parameters:
aps- The atomic propositions containing all possible input and output APs
-
getAPs
Gets the atomic propositions for this formula.- Specified by:
getAPsin interfaceTemporalLogic.LTLFormula- Returns:
- The atomic propositions, or null if not set
-
getAllAPs
Returns all atomic propositions from the appropriate set based on the IO type. Requires that APs have been set via setAPs() before calling this method.- Specified by:
getAllAPsin interfaceTemporalLogic<String>- Returns:
- Set of atomic propositions based on the IO type (input, output, or both)
- Throws:
IllegalStateException- if APs have not been set
-
collectAtomicPropositions
Description copied from interface:TemporalLogic.LTLFormulaCollects all atomic propositions from this formula and its subformulas.- Specified by:
collectAtomicPropositionsin interfaceTemporalLogic.LTLFormula- Parameters:
aps- The atomic propositions to populate
-
constructSatisfyingAtomicPropositions
public void constructSatisfyingAtomicPropositions()- Specified by:
constructSatisfyingAtomicPropositionsin interfaceTemporalLogic<String>
-
toAbstractString
Description copied from interface:TemporalLogicReturns a string representation of the formula in the format of LTSMin.- Specified by:
toAbstractStringin interfaceTemporalLogic<String>- Returns:
- a
Stringobject representing the formula in the format of LTSMin.
-
toString
-
toAbstractLTLString
- Specified by:
toAbstractLTLStringin interfaceTemporalLogic<String>
-
toOwlString
- Specified by:
toOwlStringin interfaceTemporalLogic<String>
-
getRoSI
Description copied from interface:TemporalLogicEvaluate the formula on the given signal and returns the RoSI, i.e., the range of the possible robustness values after concatenating a suffix.- Specified by:
getRoSIin interfaceTemporalLogic<String>- 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.
-
toNnf
- Specified by:
toNnfin interfaceTemporalLogic<String>
-
toDisjunctiveForm
- Specified by:
toDisjunctiveFormin interfaceTemporalLogic<String>
-
getAllConjunctions
- Specified by:
getAllConjunctionsin interfaceTemporalLogic<String>
-