Class PostulateEvaluationReport<S extends Formula>
java.lang.Object
org.tweetyproject.commons.postulates.PostulateEvaluationReport<S>
-
Constructor Summary
ConstructorDescriptionPostulateEvaluationReport
(PostulateEvaluatable<S> ev, List<Postulate<S>> postulates) Creates a new evaluation report for the given approach and set of postulates -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNegativeInstance
(Postulate<S> postulate, Collection<S> instance) Adds a negative instance for the given postulatevoid
addNotApplicableInstance
(Postulate<S> postulate, Collection<S> instance) Adds an instance that is not applicable for the given postulatevoid
addPositiveInstance
(Postulate<S> postulate, Collection<S> instance) Adds a positive instance for the given postulate (that is applicable)getNegativeInstances
(Postulate<S> postulate) Returns the negative instances for the given postulatePretty print report.toString()
-
Constructor Details
-
PostulateEvaluationReport
Creates a new evaluation report for the given approach and set of postulates- Parameters:
ev
- some approachpostulates
- a set of postulates
-
-
Method Details
-
addPositiveInstance
Adds a positive instance for the given postulate (that is applicable)- Parameters:
postulate
- some postulateinstance
- some instance
-
addNotApplicableInstance
Adds an instance that is not applicable for the given postulate- Parameters:
postulate
- some postulateinstance
- some instance
-
addNegativeInstance
Adds a negative instance for the given postulate- Parameters:
postulate
- some postulateinstance
- some instance
-
getNegativeInstances
Returns the negative instances for the given postulate- Parameters:
postulate
- some postulate- Returns:
- a collection of negative instances.
-
toString
-
prettyPrint
Pretty print report.- Returns:
- an easy-to-read string representation of the report in which the results are ordered alphabetically by postulate name.
-