Package net.maswag.falcaun.temporal
Class STLFactory
java.lang.Object
net.maswag.falcaun.temporal.STLFactory
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.antlr.v4.runtime.BaseErrorListenerRejects malformed STL formulas, e.g., unsupported comparison operators such as < or >=, instead of letting ANTLR silently recover from the syntax error. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionparse an STL formula without setting the mapperparse(String stlFormula, List<Map<Character, Double>> inputMapper, List<Map<Character, Double>> outputMapper, List<Character> largest) parse an STL formula using mappersparse an STL formula using an output mapper objectprivate static TemporalLogic.STLCostparseImpl(String formula, STLVisitor<TemporalLogic.STLCost> visitor)
-
Field Details
-
THROWING_ERROR_LISTENER
private static final org.antlr.v4.runtime.BaseErrorListener THROWING_ERROR_LISTENERRejects malformed STL formulas, e.g., unsupported comparison operators such as < or >=, instead of letting ANTLR silently recover from the syntax error.
-
-
Constructor Details
-
STLFactory
public STLFactory()
-
-
Method Details
-
parse
public TemporalLogic.STLCost parse(String stlFormula, List<Map<Character, Double>> inputMapper, List<Map<Character, Double>> outputMapper, List<Character> largest) parse an STL formula using mappers
- Parameters:
stlFormula- aStringobject.outputMapper- aListobject.largest- aListobject.- Returns:
- a
TemporalLogic.STLCostobject.
-
parse
public TemporalLogic.STLCost parse(String stlFormula, List<Map<Character, Double>> inputMapper, OutputMapper outputMapper) parse an STL formula using an output mapper object
- Parameters:
stlFormula- aStringobject.inputMapper- aListobject.outputMapper- aOutputMapperobject.- Returns:
- a
TemporalLogic.STLCostobject.
-
parse
parse an STL formula without setting the mapper
- Parameters:
formula- aStringobject.- Returns:
- a
TemporalLogic.STLCostobject. - Throws:
IllegalArgumentException- if the formula is syntactically invalid
-
parseImpl
private static TemporalLogic.STLCost parseImpl(String formula, STLVisitor<TemporalLogic.STLCost> visitor)
-