Class InformationObject<T extends Formula>

java.lang.Object
org.tweetyproject.beliefdynamics.mas.InformationObject<T>
Type Parameters:
T - The type of the inner formula.
All Implemented Interfaces:
Formula

public class InformationObject<T extends Formula> extends Object implements Formula
This class represents a formula annotated with the source of the formula.
Author:
Matthias Thimm
  • Constructor Details

    • InformationObject

      public InformationObject(T formula, Agent source)
      Creates a new information object for the given formula and the given source.
      Parameters:
      formula - some formula.
      source - some agent.
  • Method Details

    • getSource

      public Agent getSource()
      Returns the source of this information object.
      Returns:
      the source of this information object.
    • getFormula

      public T getFormula()
      Returns the formula of this information object.
      Returns:
      the formula of this information object.
    • getSignature

      public Signature getSignature()
      Description copied from interface: Formula
      Returns the signature of the language of this formula.
      Specified by:
      getSignature in interface Formula
      Returns:
      the signature of the language of this formula.
    • toString

      public String toString()
      Overrides:
      toString in class Object