Class 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
    • Constructor Summary

      Constructors 
      Constructor Description
      State​(Set<net.sf.tweety.logics.fol.syntax.FolAtom> fluents)
      Creates a new State with a set of fluents that are mapped to true.
    • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object