Class Topic


  • public class Topic
    extends Object
    Represents a single topic in the input as well as all the information that comes with it.
    • Constructor Detail

      • Topic

        public Topic()
    • Method Detail

      • getTopicName

        public String getTopicName()
        Returns the topic name.
        Returns:
        The topic name.
      • setTopicName

        public void setTopicName​(String topicName)
        Specifies the topic name.
        Parameters:
        topicName - the topic name.
      • getScore

        public Double getScore()
        Returns the score.
        Returns:
        The score.
      • setScore

        public void setScore​(Double score)
        Specifies the score.
        Parameters:
        score - score of the topic.
      • getInformants

        public List<Informant> getInformants()
        Returns the informants.
        Returns:
        The list of informants.
        See Also:
        Informant
      • setInformants

        public void setInformants​(List<Informant> informants)
        Specifies the list of informants.
        Parameters:
        informants - the list of informants for the topic.