Class KappaSum
java.lang.Object
org.tweetyproject.logics.cl.kappa.KappaSum
- All Implemented Interfaces:
 KappaTerm
This constructs represents a sum of kappa values (or terms).
 If it is empty its evaluated to zero.
- Author:
 - Tim Janus
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate()Tries to evaluate the kappa term, if the evaluation is successful then the next call of value returns the evaluated value.Processes all the sub-termsinttoString()intvalue()The neutral element is zero, that means if the sum contains no elements this method returns zero 
- 
Constructor Details
- 
KappaSum
public KappaSum() 
 - 
 - 
Method Details
- 
evaluate
public boolean evaluate()Description copied from interface:KappaTermTries to evaluate the kappa term, if the evaluation is successful then the next call of value returns the evaluated value. - 
value
public int value()The neutral element is zero, that means if the sum contains no elements this method returns zero - 
greaterEqualThan
public int greaterEqualThan()- Specified by:
 greaterEqualThanin 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
 - 
getSubTerms
Description copied from interface:KappaTermProcesses all the sub-terms- Specified by:
 getSubTermsin interfaceKappaTerm- Returns:
 - A set containing all the sub-terms of the kappa term
 
 
 -