Package org.tweetyproject.logics.commons
Class LogicalSymbols
java.lang.Object
org.tweetyproject.logics.commons.LogicalSymbols
This class provides some String constants for logical symbols and allows to
modify them at runtime. This functionality is currently used to switch between
different constants for classical negation and contradiction.
- Author:
- Matthias Thimm, Sebastian Homann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
Returns the symbol for classical negation.static String
Returns the symbol for conjunction.static String
Returns the symbol for contradiction.static String
Returns the symbol for disjunction.static String
EQUALITY()
Returns the symbol for equality.static String
Returns the symbol for equivalence.static String
Returns the symbol for exclusive disjunction.static String
Returns the symbol for the existential quantifier.static String
Returns the symbol for the universal quantifier.static String
Returns the symbol for implication.static String
Returns the symbol for inequality.static String
Returns the symbol for necessity.static String
Returns the symbol for the left parenthesis.static String
Returns the symbol for the right parenthesis.static String
Returns the symbol for possibility.static void
Sets the symbol for classical negation.static void
Sets the symbol for contradiction.static String
Returns the symbol for tautology.
-
Constructor Details
-
LogicalSymbols
public LogicalSymbols()
-
-
Method Details
-
setClassicalNegationSymbol
Sets the symbol for classical negation.- Parameters:
sym
- the new symbol to use for classical negation.
-
setContradictionSymbol
Sets the symbol for contradiction.- Parameters:
sym
- the new symbol to use for contradiction.
-
CLASSICAL_NEGATION
Returns the symbol for classical negation.- Returns:
- the symbol for classical negation.
-
DISJUNCTION
Returns the symbol for disjunction.- Returns:
- the symbol for disjunction
-
CONJUNCTION
Returns the symbol for conjunction.- Returns:
- the symbol for conjunction
-
FORALLQUANTIFIER
Returns the symbol for the universal quantifier.- Returns:
- the symbol for the universal quantifier, which is "forall".
-
EXISTSQUANTIFIER
Returns the symbol for the existential quantifier.- Returns:
- the symbol for the existential quantifier, which is "exists".
-
IMPLICATION
Returns the symbol for implication.- Returns:
- the symbol for implication
-
EQUIVALENCE
Returns the symbol for equivalence.- Returns:
- the symbol for equivalence,
-
TAUTOLOGY
Returns the symbol for tautology.- Returns:
- the symbol for tautology, which is "+".
-
CONTRADICTION
Returns the symbol for contradiction.- Returns:
- the symbol for contradiction.
-
PARENTHESES_LEFT
Returns the symbol for the left parenthesis.- Returns:
- the symbol for the left parenthesis, which is "(".
-
PARENTHESES_RIGHT
Returns the symbol for the right parenthesis.- Returns:
- the symbol for the right parenthesis, which is ")".
-
NECESSITY
Returns the symbol for necessity.- Returns:
- the symbol for necessity, which is "[]".
-
POSSIBILITY
Returns the symbol for possibility.- Returns:
- the symbol for possibility
-
EQUALITY
Returns the symbol for equality.- Returns:
- the symbol for equality, which is "==".
-
INEQUALITY
Returns the symbol for inequality.- Returns:
- the symbol for inequality, which is "/==".
-
EXCLUSIVEDISJUNCTION
Returns the symbol for exclusive disjunction.- Returns:
- the symbol for exclusive disjunction, which is "^^".
-