Enum PriestWorld.TruthValue
- java.lang.Object
-
- java.lang.Enum<PriestWorld.TruthValue>
-
- net.sf.tweety.logics.pl.semantics.PriestWorld.TruthValue
-
- All Implemented Interfaces:
Serializable,Comparable<PriestWorld.TruthValue>,Constable
- Enclosing class:
- PriestWorld
public static enum PriestWorld.TruthValue extends Enum<PriestWorld.TruthValue>
The three truth values.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Method Summary
Modifier and Type Method Description PriestWorld.TruthValueand(PriestWorld.TruthValue v)booleangetClassical()PriestWorld.TruthValueneg()PriestWorld.TruthValueor(PriestWorld.TruthValue v)StringtoString()static PriestWorld.TruthValuevalueOf(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(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- 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 String toString()
- Overrides:
toStringin classEnum<PriestWorld.TruthValue>
-
-