Package org.apache.sysds.runtime.privacy
Class CheckedConstraintsLog
- java.lang.Object
- 
- org.apache.sysds.runtime.privacy.CheckedConstraintsLog
 
- 
 public class CheckedConstraintsLog extends Object Class counting the checked privacy constraints and the loaded privacy constraints.
- 
- 
Constructor SummaryConstructors Constructor Description CheckedConstraintsLog()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddCheckedConstraints(Map<PrivacyConstraint.PrivacyLevel,LongAdder> checkedConstraints)Adds checkedConstraints to the checked constraints total.static voidaddLoadedConstraint(PrivacyConstraint.PrivacyLevel level)Add an occurrence of the given privacy level to the loaded constraints log total.static Stringdisplay()Get string representing all contents of the checked constraints log.static Map<PrivacyConstraint.PrivacyLevel,LongAdder>getCheckedConstraints()static Map<PrivacyConstraint.PrivacyLevel,LongAdder>getLoadedConstraints()static voidreset()Remove all elements from checked constraints log and loaded constraints log.
 
- 
- 
- 
Method Detail- 
addCheckedConstraintspublic static void addCheckedConstraints(Map<PrivacyConstraint.PrivacyLevel,LongAdder> checkedConstraints) Adds checkedConstraints to the checked constraints total.- Parameters:
- checkedConstraints- constraints checked by federated worker
 
 - 
addLoadedConstraintpublic static void addLoadedConstraint(PrivacyConstraint.PrivacyLevel level) Add an occurrence of the given privacy level to the loaded constraints log total.- Parameters:
- level- privacy level from loaded privacy constraint
 
 - 
resetpublic static void reset() Remove all elements from checked constraints log and loaded constraints log.
 - 
getCheckedConstraintspublic static Map<PrivacyConstraint.PrivacyLevel,LongAdder> getCheckedConstraints() 
 - 
getLoadedConstraintspublic static Map<PrivacyConstraint.PrivacyLevel,LongAdder> getLoadedConstraints() 
 - 
displaypublic static String display() Get string representing all contents of the checked constraints log.- Returns:
- string representation of checked constraints log.
 
 
- 
 
-