Class Diamond

  • All Implemented Interfaces:
    Formula

    public class Diamond
    extends AgentKnowledge
    Represents a knowledge that an agent considers to be true between world in a modal logic system.
    • Constructor Detail

      • Diamond

        public Diamond​(Agent agent,
                       Formula formula)
        Constructor.
        Parameters:
        agent - agent who considers the formula to be true
        formula - considered formula 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