Class DupDetector


  • public class DupDetector
    extends java.lang.Object
    DupDetector is the main class for the system. It will call each subsystem of the program, passing input/output between them.
    • Constructor Summary

      Constructors 
      Constructor Description
      DupDetector()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Input getInput()  
      static Output getOutput()  
      static Recommender getRecommender()  
      static void main​(java.lang.String[] args)  
      static void setInput​(Input i)
      Sets input to an arbitrary Input object.
      static void setInput​(java.lang.String[] args)
      Uses the input constructor to produce the data from args.
      static void setOutput​(Input input, Recommender recommender)
      Sets output to an arbitrary Output object based on input and recommender.
      static void setOutput​(Output o)
      Sets output to an arbitrary Output object.
      static void setRecommender​(Recommender r)
      Sets recommender to an arbitrary Recommender object.
      • Methods inherited from class java.lang.Object

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

      • DupDetector

        public DupDetector()
    • Method Detail

      • main

        public static void main​(java.lang.String[] args)
                         throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getInput

        public static Input getInput()
        Returns:
        the current Input oject.
      • setInput

        public static void setInput​(Input i)
        Sets input to an arbitrary Input object.
        Parameters:
        i - the Input object to set input to.
      • setInput

        public static void setInput​(java.lang.String[] args)
                             throws java.lang.Exception
        Uses the input constructor to produce the data from args.
        Parameters:
        args - command line arguments for the program.
        Throws:
        java.lang.Exception
      • getRecommender

        public static Recommender getRecommender()
        Returns:
        the current Recommender object.
      • setRecommender

        public static void setRecommender​(Recommender r)
        Sets recommender to an arbitrary Recommender object.
        Parameters:
        r - the Recommender object to set recommender to.
      • getOutput

        public static Output getOutput()
        Returns:
        the current Output object.
      • setOutput

        public static void setOutput​(Output o)
        Sets output to an arbitrary Output object.
        Parameters:
        o - the Output object to set output to.
      • setOutput

        public static void setOutput​(Input input,
                                     Recommender recommender)
        Sets output to an arbitrary Output object based on input and recommender.
        Parameters:
        o - the Output object to set output to.