public class RandomVariableAtom extends GroundAtom implements ReasonerLocalVariable
GroundAtom
with a truth value which can be modified.
A GroundAtom is instantiated as a RandomVariableAtom is BOTH of the following conditions are met:
StandardPredicate
that is open in the Atom's Databasevalue
Constructor and Description |
---|
RandomVariableAtom(StandardPredicate predicate,
Constant[] args,
float value)
Instantiation of GrondAtoms should typically be left to the Database so it can maintain a cache.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getAccessException() |
boolean |
getPersisted() |
StandardPredicate |
getPredicate()
Returns the predicate associated with this Atom.
|
boolean |
isConstant()
Returns whether the term is constant.
|
void |
setAccessException(boolean isAccessException) |
void |
setPersisted(boolean isPersisted) |
void |
setValue(float value)
Sets the truth value of this Atom.
|
collectVariables, compareTo, getArguments, getValue, isLinear, toStringWithValue
public RandomVariableAtom(StandardPredicate predicate, Constant[] args, float value)
public StandardPredicate getPredicate()
Atom
getPredicate
in class Atom
public boolean isConstant()
FunctionTerm
isConstant
in interface FunctionTerm
public void setValue(float value)
public void setPersisted(boolean isPersisted)
public boolean getPersisted()
public void setAccessException(boolean isAccessException)
public boolean getAccessException()
Copyright © 2020 University of California, Santa Cruz. All rights reserved.