Klasse ViewRisks<T extends AnalysisContextVisualization>
java.lang.Object
org.deidentifier.arx.gui.view.impl.risk.ViewRisks<T>
- Typparameter:
T-
- Alle implementierten Schnittstellen:
IView
- Bekannte direkte Unterklassen:
ViewRisksAttackerModels,ViewRisksHIPAAIdentifiersTable,ViewRisksOverview,ViewRisksPopulationUniques,ViewRisksQuasiIdentifiersTable,ViewRisksRiskDistribution
public abstract class ViewRisks<T extends AnalysisContextVisualization>
extends Object
implements IView
This is a base class for displaying risk estimates.
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungprotected final ControllerInternal stuff.static final intOur users are patient. -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungViewRisks(org.eclipse.swt.widgets.Composite parent, Controller controller, ModelEvent.ModelPart target, ModelEvent.ModelPart reset) Creates a new instance. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungprotected abstract org.eclipse.swt.widgets.ControlcreateControl(org.eclipse.swt.widgets.Composite parent) Implement this to create the widget.protected abstract TcreateViewConfig(AnalysisContext context) Creates a view configvoiddispose()Disposes the view.protected abstract voiddoReset()Implement this to reset.protected abstract voidImplement this to update.protected RiskEstimateBuilderInterruptiblegetBuilder(AnalysisContextRisk context) Creates a risk estimate builderprotected RiskEstimateBuilderInterruptiblegetBuilder(AnalysisContextRisk context, Set<String> identifiers) Creates a risk estimate builderprotected RiskEstimateBuilderInterruptiblegetBuilder(AnalysisContextRisk context, ARXPopulationModel population, RiskModelHistogram classes) Creates a risk estimate builderprotected ModelgetModel()Returns the modelprotected abstract ComponentStatusLabelProgressProviderMay return a progress provider, if anyprotected StringgetQuasiIdentifiers(AnalysisContextRisk context) Returns a string containing all quasi-identifiersprotected abstract ModelRisk.ViewRiskTypeReturns the according type of viewbooleanIs this view enabledprotected booleanisInput()Is this an input data oriented controlprotected abstract booleanIs a job runningprotected booleanisValid()Is there still some data to showvoidreset()Resets the view.voidsetEnabled(boolean enabled) Enables or disables this viewprotected voidStatus update.protected voidStatus empty.protected voidStatus working.voidStops all computationsvoidTriggers an updatevoidupdate(ModelEvent event) Updates the view.
-
Felddetails
-
MINIMAL_WORKING_TIME
public static final int MINIMAL_WORKING_TIMEOur users are patient.- Siehe auch:
-
controller
Internal stuff.
-
-
Konstruktordetails
-
ViewRisks
public ViewRisks(org.eclipse.swt.widgets.Composite parent, Controller controller, ModelEvent.ModelPart target, ModelEvent.ModelPart reset) Creates a new instance.- Parameter:
parent-controller-target-reset-
-
-
Methodendetails
-
dispose
public void dispose()Beschreibung aus Schnittstelle kopiert:IViewDisposes the view. -
isEnabled
public boolean isEnabled()Is this view enabled- Gibt zurück:
-
reset
public void reset()Beschreibung aus Schnittstelle kopiert:IViewResets the view. -
setEnabled
public void setEnabled(boolean enabled) Enables or disables this view- Parameter:
enabled-
-
triggerStop
public void triggerStop()Stops all computations -
triggerUpdate
public void triggerUpdate()Triggers an update -
update
Beschreibung aus Schnittstelle kopiert:IViewUpdates the view. -
createControl
protected abstract org.eclipse.swt.widgets.Control createControl(org.eclipse.swt.widgets.Composite parent) Implement this to create the widget.- Parameter:
parent-- Gibt zurück:
-
createViewConfig
Creates a view config- Parameter:
context-- Gibt zurück:
-
doReset
protected abstract void doReset()Implement this to reset. -
doUpdate
Implement this to update.- Parameter:
context-
-
getBuilder
Creates a risk estimate builder- Parameter:
context-- Gibt zurück:
-
getBuilder
protected RiskEstimateBuilderInterruptible getBuilder(AnalysisContextRisk context, ARXPopulationModel population, RiskModelHistogram classes) Creates a risk estimate builder- Parameter:
context-population-classes-- Gibt zurück:
-
getBuilder
protected RiskEstimateBuilderInterruptible getBuilder(AnalysisContextRisk context, Set<String> identifiers) Creates a risk estimate builder- Parameter:
context-identifiers-- Gibt zurück:
-
getModel
Returns the model- Gibt zurück:
-
getProgressProvider
May return a progress provider, if any- Gibt zurück:
-
getQuasiIdentifiers
Returns a string containing all quasi-identifiers- Parameter:
context-- Gibt zurück:
-
getViewType
Returns the according type of view- Gibt zurück:
-
isInput
protected boolean isInput()Is this an input data oriented control- Gibt zurück:
-
isRunning
protected abstract boolean isRunning()Is a job running- Gibt zurück:
-
isValid
protected boolean isValid()Is there still some data to show- Gibt zurück:
-
setStatusDone
protected void setStatusDone()Status update. -
setStatusEmpty
protected void setStatusEmpty()Status empty. -
setStatusWorking
protected void setStatusWorking()Status working.
-