Package net.maswag.falcaun.temporal
Class LTLFactory
java.lang.Object
net.maswag.falcaun.temporal.LTLFactory
This class provides a method to parse an LTL (Linear Temporal Logic) formula.
The format is compatible with LTSmin. Its parser is generated using ANTLR.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.antlr.v4.runtime.BaseErrorListenerRejects malformed LTL formulas, e.g., quoted symbols such asoutput == "p", instead of letting ANTLR silently recover from the syntax error. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse an LTL formula
-
Field Details
-
THROWING_ERROR_LISTENER
private static final org.antlr.v4.runtime.BaseErrorListener THROWING_ERROR_LISTENERRejects malformed LTL formulas, e.g., quoted symbols such asoutput == "p", instead of letting ANTLR silently recover from the syntax error.
-
-
Constructor Details
-
LTLFactory
public LTLFactory()
-
-
Method Details
-
parse
parse an LTL formula
- Parameters:
formula- a LTL formula as a string to parse- Returns:
- a
TemporalLogic.LTLFormulaobject. - Throws:
IllegalArgumentException- if the formula is syntactically invalid
-