Interface BaseStepExtender

    • Method Detail

      • stepInit

        void stepInit()
               throws WekaException
        Initialize the step.
        Throws:
        WekaException - if a problem occurs during initialization
      • getIncomingConnectionTypes

        java.util.List<java.lang.String> getIncomingConnectionTypes()
        Get a list of incoming connection types that this step can accept. Ideally (and if appropriate), this should take into account the state of the step and any existing incoming connections. E.g. a step might be able to accept one (and only one) incoming batch data connection.
        Returns:
        a list of incoming connections that this step can accept given its current state
      • getOutgoingConnectionTypes

        java.util.List<java.lang.String> getOutgoingConnectionTypes()
        Get a list of outgoing connection types that this step can produce. Ideally (and if appropriate), this should take into account the state of the step and the incoming connections. E.g. depending on what incoming connection is present, a step might be able to produce a trainingSet output, a testSet output or neither, but not both.
        Returns:
        a list of outgoing connections that this step can produce
      • start

        void start()
            throws WekaException
        Start executing (if this component is a start point). Either this method, processIncoming(), or both must be implemented.
        Throws:
        WekaException - if a problem occurs
      • processIncoming

        void processIncoming​(Data data)
                      throws WekaException
        Process an incoming data payload (if the step accepts incoming connections). Either this method, start(), or both must be implemented.
        Parameters:
        data - the payload to process
        Throws:
        WekaException - if a problem occurs