Class AnalysisResult

java.lang.Object
org.tweetyproject.arg.bipolar.analysis.AnalysisResult

public class AnalysisResult extends Object
Represents the result of an analysis, including performance metrics and analysis type.

This class encapsulates details about the analysis result such as the result value, number of iterations, analysis type, and total probability. It provides methods to retrieve these values and to print the results for debugging purposes.

Author:
Taha Dogan Gunes
  • Constructor Summary

    Constructors
    Constructor
    Description
    AnalysisResult(double result, long noIterations, AnalysisType type, double totalProbability)
    Constructs an AnalysisResult with the specified parameters.
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    Returns the number of iterations performed during the analysis.
    double
    Returns the result of the analysis.
    double
    Returns the total probability calculated during the analysis.
    Returns the type of analysis conducted.
    void
    Prints the details of the analysis result to the standard output.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • AnalysisResult

      public AnalysisResult(double result, long noIterations, AnalysisType type, double totalProbability)
      Constructs an AnalysisResult with the specified parameters.
      Parameters:
      result - the result of the analysis
      noIterations - the number of iterations performed
      type - the type of analysis conducted
      totalProbability - the total probability calculated
  • Method Details

    • getResult

      public double getResult()
      Returns the result of the analysis.
      Returns:
      the result value
    • getNoIterations

      public long getNoIterations()
      Returns the number of iterations performed during the analysis.
      Returns:
      the number of iterations
    • getType

      public AnalysisType getType()
      Returns the type of analysis conducted.
      Returns:
      the type of analysis
    • getTotalProbability

      public double getTotalProbability()
      Returns the total probability calculated during the analysis.
      Returns:
      the total probability
    • print

      public void print()
      Prints the details of the analysis result to the standard output.

      The output includes the type of analysis, result value, number of iterations, and total probability.