Package astra.core
Class BeliefStore
java.lang.Object
astra.core.BeliefStore
public class BeliefStore extends Object
Container for storing beliefs.
Beliefs are organised into lists of formulae that have the same predicate through the use of
a Map.
- Author:
- Rem
-
Constructor Summary
Constructors Constructor Description BeliefStore() -
Method Summary
Modifier and Type Method Description booleanaddBelief(Predicate belief)voidaddMatchingBeliefs(Queue<Formula> queue, Predicate formula)List<Formula>beliefs()voidclear()booleancontainsBelief(Predicate belief)Iterator<Formula>iterator(Formula formula)booleanremoveBelief(Predicate belief)intsize()
-
Constructor Details
-
BeliefStore
public BeliefStore()
-
-
Method Details
-
addBelief
-
containsBelief
-
removeBelief
-
beliefs
-
clear
public void clear() -
addMatchingBeliefs
-
iterator
-
size
public int size()
-