Package edu.uky.ai.logic
Interface State
- All Known Subinterfaces:
MutableState
- All Known Implementing Classes:
HashState
A state fully describes the disposition of all things in a world. For every
Atom
that is meaningful in that world, a state defines whether that
atom is true or false.- Author:
- Stephen G. Ware
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check whether or not an atom is true in this state.default Proposition
Represents this state as a proposition which would be true in this state and false in any other state (typically aConjunction
of allAtom
s that are currently true).Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
contains
Check whether or not an atom is true in this state.- Parameters:
atom
- the atom whose truth value will be checked- Returns:
- true if the atom is true in this state, false otherwise
-
toProposition
Represents this state as a proposition which would be true in this state and false in any other state (typically aConjunction
of allAtom
s that are currently true). This proposition uses the Closed World Assumption, meaning that atoms not explicitly stated to be true can be assumed false.- Returns:
- a proposition representing this state
-