Enum PafReasonerCalleeFactory.Command
java.lang.Object
java.lang.Enum<PafReasonerCalleeFactory.Command>
org.tweetyproject.web.services.paf.PafReasonerCalleeFactory.Command
- All Implemented Interfaces:
Serializable,Comparable<PafReasonerCalleeFactory.Command>,Constable
- Enclosing class:
- PafReasonerCalleeFactory
Commands supported by the PAF web service.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionQuery the credulous probability of an argument.Query the skeptical probability of an argument. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCommand(String id) Looks up a command by its string identifier.Returns the enum constant of this type with the specified name.static PafReasonerCalleeFactory.Command[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
GET_CREDULOUS
Query the credulous probability of an argument. -
GET_SKEPTICAL
Query the skeptical probability of an argument.
-
-
Field Details
-
id
String identifier used in the JSON request. -
label
Human-readable label.
-
-
Method Details
-
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
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
-
getCommand
Looks up a command by its string identifier.- Parameters:
id- the command identifier- Returns:
- the matching
PafReasonerCalleeFactory.Command, ornullif not found
-