本文整理汇总了Java中org.deidentifier.arx.framework.lattice.SolutionSpace.getPropertyChecked方法的典型用法代码示例。如果您正苦于以下问题:Java SolutionSpace.getPropertyChecked方法的具体用法?Java SolutionSpace.getPropertyChecked怎么用?Java SolutionSpace.getPropertyChecked使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.deidentifier.arx.framework.lattice.SolutionSpace
的用法示例。
在下文中一共展示了SolutionSpace.getPropertyChecked方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: LIGHTNINGAlgorithm
import org.deidentifier.arx.framework.lattice.SolutionSpace; //导入方法依赖的package包/类
/**
* Constructor
* @param space
* @param checker
* @param timeLimit
* @param checkLimit
*/
private LIGHTNINGAlgorithm(SolutionSpace space, NodeChecker checker, int timeLimit, int checkLimit) {
super(space, checker);
this.checker.getHistory().setStorageStrategy(StorageStrategy.ALL);
int stepping = space.getTop().getLevel();
this.stepping = stepping > 0 ? stepping : 1;
this.propertyChecked = space.getPropertyChecked();
this.propertyExpanded = space.getPropertyExpanded();
this.propertyInsufficientUtility = space.getPropertyInsufficientUtility();
this.solutionSpace.setAnonymityPropertyPredictable(false);
this.timeLimit = timeLimit;
this.checkLimit = checkLimit;
if (timeLimit <= 0) {
throw new IllegalArgumentException("Invalid time limit. Must be greater than zero.");
}
if (checkLimit <= 0) {
throw new IllegalArgumentException("Invalid step limit. Must be greater than zero.");
}
}
示例2: AlgorithmMinimal
import org.deidentifier.arx.framework.lattice.SolutionSpace; //导入方法依赖的package包/类
/**
* Constructor
* @param space
* @param checker
*/
public AlgorithmMinimal(SolutionSpace space, NodeChecker checker) {
super(space, checker);
this.propertyChecked = space.getPropertyChecked();
this.checker.getHistory().setStorageStrategy(StorageStrategy.ALL);
this.solutionSpace.setAnonymityPropertyPredictable(false);
}
示例3: AlgorithmLightning
import org.deidentifier.arx.framework.lattice.SolutionSpace; //导入方法依赖的package包/类
/**
* Constructor
* @param space
* @param checker
* @param timeLimit Set it to zero to search for a minimally anonymous solution
*/
public AlgorithmLightning(SolutionSpace space, NodeChecker checker, int timeLimit) {
super(space, checker);
this.checker.getHistory().setStorageStrategy(StorageStrategy.ALL);
int stepping = space.getTop().getLevel();
this.stepping = stepping > 0 ? stepping : 1;
this.propertyChecked = space.getPropertyChecked();
this.propertyExpanded = space.getPropertyExpanded();
this.solutionSpace.setAnonymityPropertyPredictable(false);
this.timeLimit = timeLimit;
}