public class KappaValue extends Object implements KappaTerm
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.| Constructor and Description |
|---|
KappaValue(int index,
Conditional cond)
Ctor: Generates a kappa value for the given
Conditional with the given index. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate()
Tries to evaluate the kappa term, if the evaluation is successful then the
next call of value returns the evaluated value.
|
String |
fullString() |
Set<KappaTerm> |
getSubTerms()
Processes all the sub-terms
|
int |
greaterEqualThan() |
String |
toString() |
int |
value() |
public KappaValue(int index,
Conditional cond)
Conditional with the given index.index - cond - public boolean evaluate()
KappaTermpublic int value()
public int greaterEqualThan()
greaterEqualThan in interface KappaTermpublic String fullString()
public Set<KappaTerm> getSubTerms()
KappaTermgetSubTerms in interface KappaTermCopyright © 2018. All rights reserved.