Class NullAlgorithm

  • All Implemented Interfaces:
    Algorithm

    @Title("Null Algorithm")
    @Description("Algorithm which does nothing, just return a null object.")
    public class NullAlgorithm
    extends java.lang.Object
    implements Algorithm
    Null algorithm, which does nothing. Can be used to, e.g., visualize a data set.
    Since:
    0.2
    Author:
    Erich Schubert
    • Constructor Detail

      • NullAlgorithm

        public NullAlgorithm()
        Constructor.
    • Method Detail

      • autorun

        public java.lang.Void autorun​(Database database)
        Description copied from interface: Algorithm
        Try to auto-run the algorithm on a database by calling a method called run, with an optional Database first, and with data relations as specified by Algorithm.getInputTypeRestriction().
        Specified by:
        autorun in interface Algorithm
        Parameters:
        database - the database to run the algorithm on
        Returns:
        the Result computed by this algorithm
      • getInputTypeRestriction

        public TypeInformation[] getInputTypeRestriction()
        Description copied from interface: Algorithm
        Get the input type restriction used for negotiating the data query.
        Specified by:
        getInputTypeRestriction in interface Algorithm
        Returns:
        Type restriction