- java.lang.Object
-
- org.logicng.formulas.printer.FormulaStringRepresentation
-
- org.logicng.formulas.printer.UTF8StringRepresentation
-
public final class UTF8StringRepresentation extends FormulaStringRepresentation
The UTF8 string representation for formulas.- Since:
- 1.0
- Version:
- 1.1
-
-
Constructor Summary
Constructors Constructor Description UTF8StringRepresentation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Stringand()Returns the string representation of and.protected Stringequivalence()Returns the string representation of an equivalence.protected Stringfalsum()Returns the string representation of false.protected Stringimplication()Returns the string representation of an implication.protected Stringlbr()Returns the string representation of a left bracket.protected Stringnegation()Returns the string representation of not.protected Stringor()Returns the string representation of or.protected StringpbAdd()Returns the string representation of a pseudo-Boolean addition.protected StringpbComparator(CType comparator)Returns the string representation of a pseudo-Boolean comparator.protected StringpbMul()Returns the string representation of a pseudo-Boolean multiplication.protected Stringrbr()Returns the string representation of right bracket.protected StringtoInnerString(Formula formula)Returns the string representation of the given formula.StringtoString()protected Stringverum()Returns the string representation of true.-
Methods inherited from class org.logicng.formulas.printer.FormulaStringRepresentation
binaryOperator, bracket, naryOperator, pbLhs, toString
-
-
-
-
Method Detail
-
toInnerString
protected String toInnerString(Formula formula)
Description copied from class:FormulaStringRepresentationReturns the string representation of the given formula.This method is used for recursive calls in order to format the sub-formulas.
- Overrides:
toInnerStringin classFormulaStringRepresentation- Parameters:
formula- the formula- Returns:
- the string representation of the formula
-
falsum
protected String falsum()
Description copied from class:FormulaStringRepresentationReturns the string representation of false.- Specified by:
falsumin classFormulaStringRepresentation- Returns:
- the string representation of false
-
verum
protected String verum()
Description copied from class:FormulaStringRepresentationReturns the string representation of true.- Specified by:
verumin classFormulaStringRepresentation- Returns:
- the string representation of true
-
negation
protected String negation()
Description copied from class:FormulaStringRepresentationReturns the string representation of not.- Specified by:
negationin classFormulaStringRepresentation- Returns:
- the string representation of not
-
implication
protected String implication()
Description copied from class:FormulaStringRepresentationReturns the string representation of an implication.- Specified by:
implicationin classFormulaStringRepresentation- Returns:
- the string representation of an implication
-
equivalence
protected String equivalence()
Description copied from class:FormulaStringRepresentationReturns the string representation of an equivalence.- Specified by:
equivalencein classFormulaStringRepresentation- Returns:
- the string representation of an equivalence
-
and
protected String and()
Description copied from class:FormulaStringRepresentationReturns the string representation of and.- Specified by:
andin classFormulaStringRepresentation- Returns:
- the string representation of and
-
or
protected String or()
Description copied from class:FormulaStringRepresentationReturns the string representation of or.- Specified by:
orin classFormulaStringRepresentation- Returns:
- the string representation of or
-
pbComparator
protected String pbComparator(CType comparator)
Description copied from class:FormulaStringRepresentationReturns the string representation of a pseudo-Boolean comparator.- Specified by:
pbComparatorin classFormulaStringRepresentation- Parameters:
comparator- the pseudo-Boolean comparator- Returns:
- the string representation of a pseudo-Boolean comparator
-
pbMul
protected String pbMul()
Description copied from class:FormulaStringRepresentationReturns the string representation of a pseudo-Boolean multiplication.- Specified by:
pbMulin classFormulaStringRepresentation- Returns:
- the string representation of a pseudo-Boolean multiplication
-
pbAdd
protected String pbAdd()
Description copied from class:FormulaStringRepresentationReturns the string representation of a pseudo-Boolean addition.- Specified by:
pbAddin classFormulaStringRepresentation- Returns:
- the string representation of a pseudo-Boolean addition
-
lbr
protected String lbr()
Description copied from class:FormulaStringRepresentationReturns the string representation of a left bracket.- Specified by:
lbrin classFormulaStringRepresentation- Returns:
- the string representation of a left bracket
-
rbr
protected String rbr()
Description copied from class:FormulaStringRepresentationReturns the string representation of right bracket.- Specified by:
rbrin classFormulaStringRepresentation- Returns:
- the string representation of right bracket
-
-