Class Box

  • All Implemented Interfaces:
    Formula

    public class Box
    extends AgentKnowledge
    Represents a knowledge that agent knows it true in a world in a modal logic system.
    • Constructor Detail

      • Box

        public Box​(Agent agent,
                   Formula formula)
        Constructor.
        Parameters:
        agent - agent who knows the formula
        formula - formula known by the agent
    • Method Detail

      • evaluate

        public boolean evaluate​(LogicAssignment assignment)
                         throws java.lang.Exception
        Description copied from interface: Formula
        Evaluates a state that we passed into arguments.
        Specified by:
        evaluate in interface Formula
        Overrides:
        evaluate in class AgentKnowledge
        Parameters:
        assignment - state to evaluate
        Returns:
        result of the evaluation
        Throws:
        java.lang.Exception - throws when the formula not supported this operation or expected object not given