Class BooleanBuiltInLiteral
java.lang.Object
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Literal
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.BuiltInLiteral
edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.BooleanBuiltInLiteral
Implementation of BooleanBuiltInLiteral constants TRUE(), and FALSE()
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescription<T> Taccept(LogicSchemaVisitor<T> visitor) applySubstitution(Substitution substitution) Constructs newLiteralafter applying the substitution to the literal terms.This method constructs a new literal that is the negation of this one.fromOperator(String operator) static StringfromValue(boolean booleanValue) Returns the built-in literal operation name.getTerms()booleanisFalse()booleanisTrue()toString()Methods inherited from class edu.upc.fib.inlab.imp.kse.logics.logicschema.domain.Literal
canBeNegated, getArity, getUsedVariables, isGround 
- 
Field Details
- 
TRUE
- See Also:
 
 - 
FALSE
- See Also:
 
 
 - 
 - 
Constructor Details
- 
BooleanBuiltInLiteral
public BooleanBuiltInLiteral(boolean value)  
 - 
 - 
Method Details
- 
fromOperator
 - 
getOperationName
Description copied from class:BuiltInLiteralReturns the built-in literal operation name.- Specified by:
 getOperationNamein classBuiltInLiteral- Returns:
 - the operation name.
 
 - 
getTerms
 - 
applySubstitution
Description copied from class:LiteralConstructs newLiteralafter applying the substitution to the literal terms.- Specified by:
 applySubstitutionin classLiteral- Parameters:
 substitution- substitution to apply.- Returns:
 - a literal after applying the given substitution. The literal will be new if some term has changed, otherwise it will be the same.
 
 - 
accept
 - 
buildNegatedLiteral
Description copied from class:LiteralThis method constructs a new literal that is the negation of this one.E.g. given an ordinary literal "
P(x)" it will return a new literal "not(P(x))", or given a built-in literal "x < y" it will return "x >= y"- Overrides:
 buildNegatedLiteralin classLiteral- Returns:
 - a new literal that is the negation of this literal, if this is possible.
 
 - 
isTrue
public boolean isTrue() - 
toString
 - 
fromValue
 - 
isFalse
public boolean isFalse() 
 -