public class ModelProfitabilityCriterion extends ModelImplicitCriterion
Modifier and Type | Class and Description |
---|---|
static class |
ModelProfitabilityCriterion.AttackerModel
The attacker model used by the privacy model
|
Constructor and Description |
---|
ModelProfitabilityCriterion()
Creates a new instance
|
ModelProfitabilityCriterion(ModelProfitabilityCriterion.AttackerModel attackerModel,
boolean allowAttacks)
Creates a new instance
|
Modifier and Type | Method and Description |
---|---|
ModelCriterion |
clone()
Clone
|
ModelProfitabilityCriterion.AttackerModel |
getAttackerModel() |
PrivacyCriterion |
getCriterion(Model model)
Implement this to return the criterion.
|
java.lang.String |
getLabel()
Implement this to return a string representation.
|
boolean |
isAllowAttacks() |
void |
parse(ModelCriterion criterion,
boolean _default)
Parse
|
void |
setAllowAttacks(boolean allowAttacks)
Defines whether we allow attacks to happen
|
void |
setAttackerModel(ModelProfitabilityCriterion.AttackerModel attackerModel)
Defines the attacker model
|
java.lang.String |
toString()
Implement this to return a string representation.
|
isEnabled, setEnabled
public ModelProfitabilityCriterion()
public ModelProfitabilityCriterion(ModelProfitabilityCriterion.AttackerModel attackerModel, boolean allowAttacks)
attackerModel
- allowAttacks
- public ModelCriterion clone()
ModelCriterion
clone
in class ModelCriterion
public ModelProfitabilityCriterion.AttackerModel getAttackerModel()
public PrivacyCriterion getCriterion(Model model)
ModelCriterion
getCriterion
in class ModelCriterion
public java.lang.String getLabel()
ModelCriterion
getLabel
in class ModelCriterion
public boolean isAllowAttacks()
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 setAllowAttacks(boolean allowAttacks)
allowAttacks
- public void setAttackerModel(ModelProfitabilityCriterion.AttackerModel attackerModel)
attackerModel
- public java.lang.String toString()
ModelCriterion
toString
in class ModelCriterion