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 TypeMethodDescriptionbooleanCheck whether or not an atom is true in this state.default PropositionRepresents this state as a proposition which would be true in this state and false in any other state (typically aConjunctionof allAtoms 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 aConjunctionof allAtoms 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
-