Class TemporalNot<I>

java.lang.Object
net.maswag.falcaun.temporal.AbstractTemporalLogic<I>
net.maswag.falcaun.temporal.TemporalNot<I>
Type Parameters:
I - Type of the input at each step
All Implemented Interfaces:
Function<IOSignal<I>,Double>, TemporalLogic<I>
Direct Known Subclasses:
TemporalNot.LTLNot, TemporalNot.STLNot

public class TemporalNot<I> extends AbstractTemporalLogic<I>

STLTemporalNot class.

Author:
Masaki Waga <masakiwaga@gmail.com>
  • Field Details

  • Constructor Details

    • TemporalNot

      TemporalNot(TemporalLogic<I> subFml)
      Constructs a new TemporalNot with the specified sub formula.
      Parameters:
      subFml - the sub formula
  • Method Details

    • getRoSI

      public RoSI getRoSI(IOSignal<I> signal)
      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 RoSI object representing the range of the possible robustness values after concatenating a suffix.
    • constructSatisfyingAtomicPropositions

      public void constructSatisfyingAtomicPropositions()
    • getAllAPs

      public Set<String> 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
    • toAbstractString

      public String toAbstractString()
      Returns a string representation of the formula in the format of LTSMin.
      Returns:
      a String object representing the formula in the format of LTSMin.
    • toString

      public String toString()
      Returns 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 STLFactory or LTLFactory, 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 nullPositive flag 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:
      toString in interface TemporalLogic<I>
      Overrides:
      toString in class Object
      Returns:
      a human-readable string representation of the formula
    • toAbstractLTLString

      public String toAbstractLTLString(Map<String,String> mapper)
    • toOwlString

      public String toOwlString()
    • toNnf

      public TemporalLogic<I> toNnf(boolean negate)
    • toDisjunctiveForm

      public TemporalLogic<I> toDisjunctiveForm()
    • getAllConjunctions

      public List<TemporalLogic<I>> getAllConjunctions()
    • structuralKind

      protected Class<?> structuralKind()
      Returns the class representing the operator of this formula, shared by its STL/LTL-specific subclasses.
      Specified by:
      structuralKind in class AbstractTemporalLogic<I>
      Returns:
      the class representing the operator of this formula, e.g., TemporalGlobally.class
    • structuralFields

      protected List<Object> 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 its Enum.name().
      Specified by:
      structuralFields in class AbstractTemporalLogic<I>
      Returns:
      the syntactic fields of this formula in a fixed order