Enum PriestWorld.TruthValue
- java.lang.Object
-
- java.lang.Enum<PriestWorld.TruthValue>
-
- net.sf.tweety.logics.pl.semantics.PriestWorld.TruthValue
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<PriestWorld.TruthValue>
,java.lang.constant.Constable
- Enclosing class:
- PriestWorld
public static enum PriestWorld.TruthValue extends java.lang.Enum<PriestWorld.TruthValue>
The three truth values.
-
-
Method Summary
Modifier and Type Method Description PriestWorld.TruthValue
and(PriestWorld.TruthValue v)
boolean
getClassical()
PriestWorld.TruthValue
neg()
PriestWorld.TruthValue
or(PriestWorld.TruthValue v)
java.lang.String
toString()
static PriestWorld.TruthValue
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static PriestWorld.TruthValue[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRUE
public static final PriestWorld.TruthValue TRUE
-
FALSE
public static final PriestWorld.TruthValue FALSE
-
BOTH
public static final PriestWorld.TruthValue BOTH
-
-
Method Detail
-
values
public static PriestWorld.TruthValue[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PriestWorld.TruthValue valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
neg
public PriestWorld.TruthValue neg()
-
getClassical
public boolean getClassical()
-
and
public PriestWorld.TruthValue and(PriestWorld.TruthValue v)
-
or
public PriestWorld.TruthValue or(PriestWorld.TruthValue v)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<PriestWorld.TruthValue>
-
-