Class State
- java.lang.Object
-
- net.sf.tweety.action.transitionsystem.State
-
public class State extends Object
Represents a state in an action transition system, which is a representation of an interpretation of all fluent names in an action description.- Author:
- Sebastian Homann
-
-
Method Summary
Modifier and Type Method Description booleanequals(Object obj)Set<net.sf.tweety.logics.fol.syntax.FolAtom>getPositiveFluents()Returns the set of fluent atoms that are mapped to true by this state.inthashCode()booleanisMappedToTrue(net.sf.tweety.logics.fol.syntax.FolAtom fluent)Returns true iff the fluent given is mapped to true by this state.StringtoString()
-
-
-
Constructor Detail
-
State
public State(Set<net.sf.tweety.logics.fol.syntax.FolAtom> fluents)
Creates a new State with a set of fluents that are mapped to true.- Parameters:
fluents- The fluents which are mapped to true by this state.
-
-
Method Detail
-
isMappedToTrue
public boolean isMappedToTrue(net.sf.tweety.logics.fol.syntax.FolAtom fluent)
Returns true iff the fluent given is mapped to true by this state.- Parameters:
fluent- an FOL atom- Returns:
- true iff the fluent given is mapped to true by this state.
-
getPositiveFluents
public Set<net.sf.tweety.logics.fol.syntax.FolAtom> getPositiveFluents()
Returns the set of fluent atoms that are mapped to true by this state.- Returns:
- the set of fluent atoms that are mapped to true by this state.
-
-