Class DefaultProbabilityDistributionWriter
- java.lang.Object
-
- net.sf.tweety.commons.Writer
-
- net.sf.tweety.logics.rpcl.writers.DefaultProbabilityDistributionWriter
-
public class DefaultProbabilityDistributionWriter extends Writer
This class implements a simple writer for writing probability distributions.- Author:
- Matthias Thimm
-
-
Constructor Summary
Constructors Constructor Description DefaultProbabilityDistributionWriter()
Creates a new writer.DefaultProbabilityDistributionWriter(RpclProbabilityDistribution<?> distribution)
Creates a new writer for the given probability distribution.
-
Method Summary
Modifier and Type Method Description java.lang.String
writeToString()
Writes the object into a string.-
Methods inherited from class net.sf.tweety.commons.Writer
getObject, setObject, writeToFile
-
-
-
-
Constructor Detail
-
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 Detail
-
writeToString
public java.lang.String writeToString()
Description copied from class:Writer
Writes the object into a string.- Specified by:
writeToString
in classWriter
- Returns:
- the string representing the object.
-
-