Class DefaultProbabilityDistributionWriter
java.lang.Object
org.tweetyproject.commons.Writer
org.tweetyproject.logics.rpcl.writers.DefaultProbabilityDistributionWriter
This class implements a simple writer for writing probability distributions.
- Author:
- Matthias Thimm
-
Constructor Summary
ConstructorDescriptionCreates a new writer.DefaultProbabilityDistributionWriter
(RpclProbabilityDistribution<?> distribution) Creates a new writer for the given probability distribution. -
Method Summary
Methods inherited from class org.tweetyproject.commons.Writer
getObjectToBePrinted, setObjectToBePrinted, writeToFile
-
Constructor Details
-
DefaultProbabilityDistributionWriter
public DefaultProbabilityDistributionWriter()Creates a new writer. -
DefaultProbabilityDistributionWriter
Creates a new writer for the given probability distribution.- Parameters:
distribution
- a probability distribution.
-
-
Method Details
-
writeToString
Description copied from class:Writer
Writes the object into a string.- Specified by:
writeToString
in classWriter
- Returns:
- the string representing the object.
-