Class NicePossibleWorld

All Implemented Interfaces:
Iterable<Proposition>, Collection<Proposition>, Comparator<Pair<Proposition,Boolean>>, Interpretation<PlBeliefSet,PlFormula>

public class NicePossibleWorld extends InterpretationSet<Proposition,PlBeliefSet,PlFormula> implements Comparator<Pair<Proposition,Boolean>>
Wrapper for the PossibleWorld providing better representation mechanisms, it knows all the possible propositions (the signature) and therefore provides a complete representation that maps a boolean to the Proposition. It also provides ordering of the (proposition, boolean) pairs in the enhanced representation. The default behavior is an alphabetically ordering of the Propositions but it can be changed by the user. Internally it uses the smaller and therefore faster implementation of PossibleWorld for satisfication test
Author:
Tim Janus
  • Constructor Details

    • NicePossibleWorld

      public NicePossibleWorld(Collection<Proposition> trueInWorld, Collection<Proposition> signature)
      Ctor: Generates the possible world using the given set of true propositions and generated a representation of the possible world using the given signature. The default alphabetically sort behavior is used to order the representation.
      Parameters:
      trueInWorld - A set of propositions describing those propositions that are true in this possible world. It has to be a subset of signature.
      signature - A set of propositions describing all know propositions by the the problem, the signature. It has to be a super set of trueInWorld
    • NicePossibleWorld

      public NicePossibleWorld(Collection<Proposition> trueInWorld, Collection<Proposition> signature, Comparator<Pair<Proposition,Boolean>> comparator)
      Ctor: Generates the possible world using the given set of true propositions and generated a representation of the possible world using the given signature. The sort behavior given in comparator is used to order the representation.
      Parameters:
      trueInWorld - A set of propositions describing those propositions that are true in this possible world. It has to be a subset of signature.
      signature - A set of propositions describing all know propositions by the the problem, the signature. It has to be a super set of trueInWorld
      comparator - The comparator
  • Method Details