S - The type of formulas.public abstract class InconsistencyMeasurementProcess<S extends net.sf.tweety.commons.Formula> extends Thread
Thread.State, Thread.UncaughtExceptionHandler| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIG_TIMEOUT
Key for the configuration map that gives a time out (given in seconds)
for a single update operation Default value is -1 which means no time out.
|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
InconsistencyMeasurementProcess()
Creates a new process for the given stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
abort()
Aborts the measurement of a stream.
|
Double |
getInconsistencyValue()
Returns the current inconsistency value of this stream processing or
the last value if the stream processing has finalized.
|
protected void |
init(net.sf.tweety.commons.streams.FormulaStream<S> stream,
StreamBasedInconsistencyMeasure<S> parent,
Map<String,Object> config)
Initialization statements.
|
protected abstract void |
init(Map<String,Object> config)
Additional initialization statements are put here.
|
void |
run() |
abstract String |
toString() |
protected abstract double |
update(S formula)
Updates the inconsistency value with the new formula.
|
activeCount, 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, yieldpublic static final String CONFIG_TIMEOUT
public InconsistencyMeasurementProcess()
protected void init(net.sf.tweety.commons.streams.FormulaStream<S> stream, StreamBasedInconsistencyMeasure<S> parent, Map<String,Object> config)
stream - some formula stream.parent - the measure from where this process has been dispatched.config - configuration options for the specific process.protected abstract void init(Map<String,Object> config)
protected abstract double update(S formula)
formula - some formula.public void abort()
public Double getInconsistencyValue()
Copyright © 2018. All rights reserved.