Class DefaultProbabilityDistributionWriter

java.lang.Object
org.tweetyproject.commons.Writer
org.tweetyproject.logics.rpcl.writers.DefaultProbabilityDistributionWriter

public class DefaultProbabilityDistributionWriter extends Writer
This class implements a simple writer for writing probability distributions.
Author:
Matthias Thimm
  • Constructor Details

    • DefaultProbabilityDistributionWriter

      public DefaultProbabilityDistributionWriter()
      Creates a new writer.
    • DefaultProbabilityDistributionWriter

      public DefaultProbabilityDistributionWriter(RpclProbabilityDistribution<?> distribution)
      Creates a new writer for the given probability distribution.
      Parameters:
      distribution - a probability distribution.
  • Method Details

    • writeToString

      public String writeToString()
      Description copied from class: Writer
      Writes the object into a string.
      Specified by:
      writeToString in class Writer
      Returns:
      the string representing the object.