Class KappaValue
java.lang.Object
org.tweetyproject.logics.cl.kappa.KappaValue
- All Implemented Interfaces:
KappaTerm
Represents a Kappa-Value for the c-revision, it contains two
KappaMin
instances, both KappaValue
and KappaMin
implement the KappaTerm
interface.
Internally the value of the Kappa is represented using an integer and as long as the Kappa
cannot be evaluated correctly its value member is -1.- Author:
- Tim Janus
-
Constructor Summary
ConstructorDescriptionKappaValue
(int index, Conditional cond) Ctor: Generates a kappa value for the givenConditional
with the given index. -
Method Summary
-
Constructor Details
-
KappaValue
Ctor: Generates a kappa value for the givenConditional
with the given index.- Parameters:
index
- an intcond
- some conditional
-
-
Method Details
-
evaluate
public boolean evaluate()Description copied from interface:KappaTerm
Tries to evaluate the kappa term, if the evaluation is successful then the next call of value returns the evaluated value. -
value
public int value() -
greaterEqualThan
public int greaterEqualThan()- Specified by:
greaterEqualThan
in interfaceKappaTerm
- Returns:
- The minimum value of this kappa term, such that the caller knows the kappa term is greater or equal the returned value.
-
toString
-
fullString
-
getSubTerms
Description copied from interface:KappaTerm
Processes all the sub-terms- Specified by:
getSubTerms
in interfaceKappaTerm
- Returns:
- A set containing all the sub-terms of the kappa term
-