S - The type of formulasT - The type of belief basespublic abstract class WindowInconsistencyMeasurementProcess<S extends Formula> extends InconsistencyMeasurementProcess<S>
| Modifier and Type | Field and Description |
|---|---|
private BinaryFunction<java.lang.Double,java.lang.Double,java.lang.Double> |
agg
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 aggregating X1 and X2 with this function.
|
static java.lang.String |
CONFIG_AGGREGATIONFUNCTION
Key for the configuration map that points to the aggregation function used.
|
static java.lang.String |
CONFIG_MEASURE
Key for the configuration map that points to the inconsistency measure to be used.
|
static java.lang.String |
CONFIG_NAME
Key for the configuration map that points to the name to be used.
|
static java.lang.String |
CONFIG_WINDOWSIZE
Key for the configuration map that points to the window size to be used.
|
private java.util.Queue<S> |
formulas
the current window of formulas
|
private BeliefSetInconsistencyMeasure<S> |
measure
The inconsistency measure used
|
private java.lang.String |
name
The name of this process.
|
private double |
previousValue
The previous value of the measure.
|
private int |
windowsize
The window size.
|
CONFIG_TIMEOUT| Constructor and Description |
|---|
WindowInconsistencyMeasurementProcess() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
init(java.util.Map<java.lang.String,java.lang.Object> config)
Additional initialization statements are put here.
|
java.lang.String |
toString() |
protected double |
update(S formula)
Updates the inconsistency value with the new formula.
|
abort, getInconsistencyValue, init, runactiveCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, yieldprivate BeliefSetInconsistencyMeasure<S extends Formula> measure
private int windowsize
private double previousValue
private BinaryFunction<java.lang.Double,java.lang.Double,java.lang.Double> agg
private java.lang.String name
public static final java.lang.String CONFIG_MEASURE
public static final java.lang.String CONFIG_WINDOWSIZE
public static final java.lang.String CONFIG_AGGREGATIONFUNCTION
public static final java.lang.String CONFIG_NAME
public WindowInconsistencyMeasurementProcess()
protected void init(java.util.Map<java.lang.String,java.lang.Object> config)
InconsistencyMeasurementProcessinit in class InconsistencyMeasurementProcess<S extends Formula>protected double update(S formula)
InconsistencyMeasurementProcessupdate in class InconsistencyMeasurementProcess<S extends Formula>formula - some formula.public java.lang.String toString()
toString in class InconsistencyMeasurementProcess<S extends Formula>