- java.lang.Object
-
- org.logicng.propositions.Proposition
-
- org.logicng.propositions.StandardProposition
-
public final class StandardProposition extends Proposition
A proposition in LogicNG. A proposition is a formula with an additional textual description.- Since:
- 1.0
- Version:
- 2.0.0
-
-
Constructor Summary
Constructors Constructor Description StandardProposition(String description, Formula formula)Constructs a new proposition for a single formulas.StandardProposition(Formula formula)Constructs a new proposition for a single formulas.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringdescription()Returns the backpack of this proposition.booleanequals(Object other)Formulaformula()Returns the formula of this proposition.inthashCode()StringtoString()
-
-
-
Constructor Detail
-
StandardProposition
public StandardProposition(Formula formula)
Constructs a new proposition for a single formulas.- Parameters:
formula- the formulas
-
-
Method Detail
-
formula
public Formula formula()
Description copied from class:PropositionReturns the formula of this proposition.- Specified by:
formulain classProposition- Returns:
- the formula of this proposition
-
description
public String description()
Returns the backpack of this proposition.- Returns:
- the backpack of this proposition
-
-