public class ArgumentSet
extends java.lang.Object
Constructor and Description |
---|
ArgumentSet(java.util.List<Argument> a,
Spectrum s,
ImportanceFunction i)
Creates a new argument set
|
ArgumentSet(Spectrum s,
ImportanceFunction i)
Creates a new argument set
|
Modifier and Type | Method and Description |
---|---|
void |
addArgument(Argument a)
Adds an argument to the set, must be in the same spectrum as the set
|
void |
addArgument(java.lang.String s,
java.util.List<Opinion> o)
Creates a new argument and adds it to the set
|
ArgumentSet |
alphaRelevantArguments(double num)
Returns the alpha-relevant arguments of the set as a new argument set
|
java.util.List<Argument> |
getArguments() |
ImportanceFunction |
getImportanceFunction() |
double |
numberOpinions()
Returns the number of opinions of the set
|
double |
numberRelevantOpinions(double numrel)
Returns the number of alpha-relevant arguments' opinions
|
void |
printStatus(java.io.PrintStream out,
double num)
Prints the information of the set, that is the information of each argument and the support for the set
|
void |
setArguments(java.util.List<Argument> arguments) |
double |
support(double num)
Assesses the support for the set
|
double |
weight()
Returns the weight of the argument set as the sum of the importance of all its arguments
|
double |
weight(double minimum)
Returns the weight of the argument set as the sum of the importance of all its alpha-relevant arguments
|
public ArgumentSet(Spectrum s, ImportanceFunction i)
s
- the set's spectrumi
- the set's importance functionpublic ArgumentSet(java.util.List<Argument> a, Spectrum s, ImportanceFunction i)
a
- the arguments of the set in list forms
- the set's spectrumi
- the set's importance functionpublic void addArgument(Argument a)
a
- the argument to addpublic void addArgument(java.lang.String s, java.util.List<Opinion> o)
s
- the argument's statemento
- the argument's list of opinionspublic ArgumentSet alphaRelevantArguments(double num)
num
- the minimum number of opinions to be considered alpha-relevantpublic double numberOpinions()
public double weight(double minimum)
minimum
- the minimum opinions to be considered alpha-relevantpublic double weight()
public double numberRelevantOpinions(double numrel)
numrel
- the minimum number of opinions to be considered alpha-relevantpublic double support(double num)
num
- the minimum number of opinions to be considered alpha-relevant argumentpublic void printStatus(java.io.PrintStream out, double num)
out
- the PrintStream to print the informationnum
- the minimum number of opinions to be considered alpha-relevantpublic java.util.List<Argument> getArguments()
public void setArguments(java.util.List<Argument> arguments)
public ImportanceFunction getImportanceFunction()