Class SocialMapping<L>

  • Type Parameters:
    L - The set used for valuations
    All Implemented Interfaces:
    net.sf.tweety.commons.Interpretation<SocialAbstractArgumentationFramework,​net.sf.tweety.arg.dung.syntax.Argument>

    public class SocialMapping<L>
    extends net.sf.tweety.commons.AbstractInterpretation<SocialAbstractArgumentationFramework,​net.sf.tweety.arg.dung.syntax.Argument>
    Implements a mapping from arguments to social value.
    Author:
    Matthias Thimm
    • Constructor Detail

      • SocialMapping

        public SocialMapping​(AbstractSocialSemantics<L> semantics)
        Creates a new mapping wrt. the given semantics.
        Parameters:
        semantics - some semantics
    • Method Detail

      • get

        public L get​(net.sf.tweety.arg.dung.syntax.Argument a)
        Returns the social value of the given argument
        Parameters:
        a - some argument
        Returns:
        the social value of the given argument
      • put

        public L put​(net.sf.tweety.arg.dung.syntax.Argument a,
                     L val)
        Sets the social value of the given argument
        Parameters:
        a - some argument
        val - the value for the argument
        Returns:
        the social value of the given argument
      • containsKey

        public boolean containsKey​(net.sf.tweety.arg.dung.syntax.Argument a)
        Returns "true" iff the given argument has a value.
        Parameters:
        a - some argument
        Returns:
        "true" iff the given argument has a value.