Package net.maswag.falcaun.temporal
Class TemporalSub<I>
java.lang.Object
net.maswag.falcaun.temporal.AbstractTemporalLogic<I>
net.maswag.falcaun.temporal.TemporalSub<I>
- All Implemented Interfaces:
Function<IOSignal<I>,,Double> TemporalLogic<I>
- Direct Known Subclasses:
TemporalSub.LTLSub,TemporalSub.STLSub
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class(package private) static classNested classes/interfaces inherited from interface net.maswag.falcaun.temporal.TemporalLogic
TemporalLogic.IOType, TemporalLogic.LTLFormula, TemporalLogic.STLCost -
Field Summary
FieldsFields inherited from class net.maswag.falcaun.temporal.AbstractTemporalLogic
initialized, iOType, nonTemporal, satisfyingAtomicPropositions -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidReturns the collection of atomic propositions under consideration.Evaluate the formula on the given signal and returns the RoSI, i.e., the range of the possible robustness values after concatenating a suffix.Returns the syntactic fields of this formula, e.g., the operands and the bounds of a bounded temporal operator.protected Class<?> Returns the class representing the operator of this formula, shared by its STL/LTL-specific subclasses.toAbstractLTLString(Map<String, String> mapper) Returns a string representation of the formula in the format of LTSMin.toNnf(boolean negate) toString()Returns a human-readable string representation of the formula.Methods inherited from class net.maswag.falcaun.temporal.AbstractTemporalLogic
equals, getSatisfyingAtomicPropositions, hashCode, makeAbstractStringWithAtomicStrings, makeAbstractStringWithAtomicStrings, parenthesizeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.maswag.falcaun.temporal.TemporalLogic
apply, getIOType, isInitialized, isNonTemporal, toLTLString
-
Field Details
-
subFml
-
from
private final int from -
to
private final int to
-
-
Constructor Details
-
TemporalSub
- Parameters:
subFml- the subformulafrom- the first index, inclusiveto- the last index, inclusive.
-
-
Method Details
-
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.- 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.
-
getAllAPs
Description copied from interface:TemporalLogicReturns 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
-
toString
Description copied from interface:TemporalLogicReturns a human-readable string representation of the formula.The representation is unambiguous only for the formulas supported by the parsers: if a formula is structurally equal to one constructed by
STLFactoryorLTLFactory, its string representation is parsed back to a structurally equal formula. Otherwise, structurally different formulas may have the same string representation, e.g.:- empty or singleton conjunctions and disjunctions,
- n-ary conjunctions and disjunctions, which are parsed back as left-nested binary ones,
- the next operator, whose
nullPositiveflag is not printed, - LTL atomic propositions with both input and output symbols, which are printed like conjunctions,
- LTL symbols outside the grammar and non-finite STL thresholds, which the parsers reject, and
- other formulas outside the grammar, e.g.,
TemporalConst.
Thus, this method must not be used as a substitute for structural equality or as a unique key, e.g., of a cache.
- Specified by:
toStringin interfaceTemporalLogic<I>- Overrides:
toStringin classObject- Returns:
- a human-readable string representation of the formula
-
constructSatisfyingAtomicPropositions
public void constructSatisfyingAtomicPropositions() -
toAbstractString
Description copied from interface:TemporalLogicReturns a string representation of the formula in the format of LTSMin.- Returns:
- a
Stringobject representing the formula in the format of LTSMin.
-
toAbstractLTLString
-
toOwlString
-
toNnf
-
toDisjunctiveForm
-
getAllConjunctions
-
structuralKind
Returns the class representing the operator of this formula, shared by its STL/LTL-specific subclasses.- Specified by:
structuralKindin classAbstractTemporalLogic<I>- Returns:
- the class representing the operator of this formula, e.g.,
TemporalGlobally.class
-
structuralFields
Returns the syntactic fields of this formula, e.g., the operands and the bounds of a bounded temporal operator. Derived state, caches, and the abstraction configuration must not be included. Each element must have a deterministic hash code, e.g., an enum constant must be represented by itsEnum.name().- Specified by:
structuralFieldsin classAbstractTemporalLogic<I>- Returns:
- the syntactic fields of this formula in a fixed order
-