Interface G2ScoringPlugin

    • Method Detail

      • score

        int score​(G2ScoringPlugin.ScoringContext context)
        Run the feature scoring process
        Parameters:
        context - The feature scoring context
        Returns:
        a status code for the feature scoring operation.
      • getScoreNames

        default int getScoreNames​(StringBuilder scoreNames)
        Gets the score names as XML. The default implementation calls getScoreNames(Set) and constructs the XML from the populated list and appends it to the specified StringBuilder.
        Parameters:
        scoreNames - The StringBuilder to append the XML to.
        Returns:
        A non-negative number on success and a negative number on failure.
      • getScoreNames

        int getScoreNames​(Set<String> scoreNames)
        This method is called to populate the specified Set with the scoring names that will be produced.
        Parameters:
        scoreNames - The Set to be populated.
        Returns:
        A non-negative number on success and a negative number on failure.