public class ConstantAtomFunctionVariable extends AtomFunctionVariable
GroundAtom
for use in numeric functions.
This FunctionVariable cannot change the truth value of the GroundAtom.
atom
Constructor and Description |
---|
ConstantAtomFunctionVariable(GroundAtom atom) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConstant()
Returns whether the term is constant.
|
void |
setValue(double val)
Sets the variable's value
|
public ConstantAtomFunctionVariable(GroundAtom atom)
public boolean isConstant()
FunctionTerm
public void setValue(double val)
FunctionVariable
val
- the value to setCopyright © 2018 University of California, Santa Cruz. All rights reserved.