Class PredictedTopic


  • public class PredictedTopic
    extends java.lang.Object
    Class encapsulation of a predicted topic. A topic has a weight and a term vector string of topicSegments.
    Author:
    gjoranv
    • Constructor Summary

      Constructors 
      Constructor Description
      PredictedTopic​(java.lang.String topic, double weight)  
      PredictedTopic​(java.lang.String topic, double weight, java.lang.String vector)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addWeight​(double weight)
      Adds to the weight
      int compareDescendWeight​(java.lang.Object o)
      Compares this topic to another topic, according to weight descending
      java.lang.String getTopic()
      Returns the topic
      java.lang.String getVector()
      Returns the vector
      double getWeight()
      Returns the weight
      void setVector​(java.lang.String vector)
      Sets the vector
      void setWeight​(double weight)
      Sets the weight
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PredictedTopic

        public PredictedTopic​(java.lang.String topic,
                              double weight,
                              java.lang.String vector)
      • PredictedTopic

        public PredictedTopic​(java.lang.String topic,
                              double weight)
    • Method Detail

      • getTopic

        public java.lang.String getTopic()
        Returns the topic
      • getWeight

        public double getWeight()
        Returns the weight
      • getVector

        public java.lang.String getVector()
        Returns the vector
      • setWeight

        public void setWeight​(double weight)
        Sets the weight
      • addWeight

        public void addWeight​(double weight)
        Adds to the weight
      • setVector

        public void setVector​(java.lang.String vector)
        Sets the vector
      • compareDescendWeight

        public int compareDescendWeight​(java.lang.Object o)
        Compares this topic to another topic, according to weight descending