Package net.sf.tweety.logics.pl.analysis
Class ContensionInconsistencyMeasurementProcess
- java.lang.Object
-
- java.lang.Thread
-
- net.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess<PlFormula>
-
- net.sf.tweety.logics.pl.analysis.ContensionInconsistencyMeasurementProcess
-
- All Implemented Interfaces:
Runnable
public class ContensionInconsistencyMeasurementProcess extends net.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess<PlFormula>
Implements an approximation algorithm for the Contension inconsistency measure on streams.- Author:
- Matthias Thimm
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_KEY_NUMBEROFPOPULATIONSConfiguration key for the number of populations tried out.static StringCONFIG_KEY_SIGNATUREConfiguration key for the signature.static StringCONFIG_KEY_WITNESSPROVIDERConfiguration key for the consistency tester.static StringCONFIG_SMOOTHINGFACTORKey for the configuration map that points to the smoothing factor to be used.-
Fields inherited from class net.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess
CONFIG_TIMEOUT
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description ContensionInconsistencyMeasurementProcess()
-
Method Summary
-
Methods inherited from class net.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess
abort, getInconsistencyValue, init, run
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, yield
-
-
-
-
Field Detail
-
CONFIG_KEY_SIGNATURE
public static final String CONFIG_KEY_SIGNATURE
Configuration key for the signature.- See Also:
- Constant Field Values
-
CONFIG_KEY_WITNESSPROVIDER
public static final String CONFIG_KEY_WITNESSPROVIDER
Configuration key for the consistency tester.- See Also:
- Constant Field Values
-
CONFIG_KEY_NUMBEROFPOPULATIONS
public static final String CONFIG_KEY_NUMBEROFPOPULATIONS
Configuration key for the number of populations tried out.- See Also:
- Constant Field Values
-
CONFIG_SMOOTHINGFACTOR
public static final String CONFIG_SMOOTHINGFACTOR
Key for the configuration map that points to the smoothing factor to be used. if X1 is the previous inconsistency value, X2 is the new inconsistency value on the new window, then the actual new inconsistency value X is determined by X=X1*smoothingFactor + X2*(1-smoothingFactor). This value should be between 0 and 1. If it is -1 no smoothing is done (the same as setting the smoothing factor to 0.- See Also:
- Constant Field Values
-
-
Method Detail
-
init
protected void init(Map<String,Object> config)
- Specified by:
initin classnet.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess<PlFormula>
-
update
protected double update(PlFormula formula)
- Specified by:
updatein classnet.sf.tweety.logics.commons.analysis.streams.InconsistencyMeasurementProcess<PlFormula>
-
-