public abstract class KnowledgeBaseVariable
extends java.lang.Object
Constructor and Description |
---|
KnowledgeBaseVariable() |
Modifier and Type | Method and Description |
---|---|
abstract KnowledgeBaseVariable |
copy()
Returns a new instance of the variable
|
abstract java.lang.String |
getName()
Returns the name of the variable
|
abstract Term |
getTerm(java.lang.String name)
Gets a Term instance by name or null otherwise
|
abstract java.util.List<?> |
getTerms()
Gets a list of terms
|
abstract float |
getValue()
Gets the value of the variable
|
abstract boolean |
hasTerm(java.lang.String name)
Returns true if the variable contains a Term with the name as param
|
boolean |
isInput()
Tests if the variable is input type
|
abstract boolean |
isOutput()
Tests if the variable is output type
|
abstract void |
reset()
Resets the value of the variable
|
abstract void |
setValue(float x)
Sets the value of the variable
|
abstract java.lang.String |
toString()
Returns a String object representing this variable.
|
public abstract float getValue()
public abstract void setValue(float x)
x
- the value of the variablepublic abstract java.util.List<?> getTerms()
public abstract Term getTerm(java.lang.String name)
name
- term namepublic abstract boolean isOutput()
public boolean isInput()
public abstract void reset()
public abstract java.lang.String toString()
toString
in class java.lang.Object
public abstract java.lang.String getName()
public abstract boolean hasTerm(java.lang.String name)
name
- the name of the Termpublic abstract KnowledgeBaseVariable copy()