public abstract class AtomFunctionVariable extends Object implements FunctionVariable
GroundAtom
for use in numeric functions.Modifier and Type | Field and Description |
---|---|
protected GroundAtom |
atom |
Constructor and Description |
---|
AtomFunctionVariable(GroundAtom atom) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object oth) |
GroundAtom |
getAtom() |
double |
getValue()
Returns the term's value
|
int |
hashCode() |
boolean |
isLinear()
Returns whether the term is linear in its
Variables . |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
isConstant, setValue
protected final GroundAtom atom
public AtomFunctionVariable(GroundAtom atom)
public boolean isLinear()
FunctionTerm
Variables
.
Returns true if the term is a constant.isLinear
in interface FunctionTerm
public GroundAtom getAtom()
public double getValue()
FunctionTerm
getValue
in interface FunctionTerm
Copyright © 2018 University of California, Santa Cruz. All rights reserved.