public class ModelRiskBasedCriterion extends ModelImplicitCriterion
Modifier and Type | Field and Description |
---|---|
static int |
VARIANT_AVERAGE_RISK
Variant.
|
static int |
VARIANT_POPULATION_UNIQUES_DANKAR
Variant.
|
static int |
VARIANT_POPULATION_UNIQUES_PITMAN
Variant.
|
static int |
VARIANT_POPULATION_UNIQUES_SNB
Variant.
|
static int |
VARIANT_POPULATION_UNIQUES_ZAYATZ
Variant.
|
static int |
VARIANT_SAMPLE_UNIQUES
Variant.
|
Constructor and Description |
---|
ModelRiskBasedCriterion(int variant)
Creates a new instance
|
ModelRiskBasedCriterion(int variant,
double threshold)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
ModelRiskBasedCriterion |
clone()
Clone
|
PrivacyCriterion |
getCriterion(Model model)
Implement this to return the criterion.
|
java.lang.String |
getLabel()
Implement this to return a string representation.
|
double |
getThreshold()
Returns the threshold.
|
int |
getVariant()
Returns the variant
|
void |
parse(ModelCriterion criterion,
boolean _default)
Parse
|
void |
setThreshold(double threshold)
Sets the threshold.
|
void |
setVariant(int variant)
Sets the variant.
|
java.lang.String |
toString()
Implement this to return a string representation.
|
isEnabled, setEnabled
public static final int VARIANT_AVERAGE_RISK
public static final int VARIANT_SAMPLE_UNIQUES
public static final int VARIANT_POPULATION_UNIQUES_DANKAR
public static final int VARIANT_POPULATION_UNIQUES_PITMAN
public static final int VARIANT_POPULATION_UNIQUES_ZAYATZ
public static final int VARIANT_POPULATION_UNIQUES_SNB
public ModelRiskBasedCriterion(int variant)
variant
- public ModelRiskBasedCriterion(int variant, double threshold)
variant
- threshold
- public ModelRiskBasedCriterion clone()
ModelCriterion
clone
in class ModelCriterion
public PrivacyCriterion getCriterion(Model model)
ModelCriterion
getCriterion
in class ModelCriterion
public java.lang.String getLabel()
ModelCriterion
getLabel
in class ModelCriterion
public double getThreshold()
public int getVariant()
public void parse(ModelCriterion criterion, boolean _default)
ModelCriterion
parse
in class ModelCriterion
_default
- Defines whether the model represents a typical parameter configuration for the criterionpublic void setThreshold(double threshold)
k
- public void setVariant(int variant)
variant
- public java.lang.String toString()
ModelCriterion
toString
in class ModelCriterion