S - The type of formulasT - The type of belief bases.public class DefaultStreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula> extends StreamBasedInconsistencyMeasure<S>
MEASURE_TOLERANCE| Constructor and Description |
|---|
DefaultStreamBasedInconsistencyMeasure(Class<? extends InconsistencyMeasurementProcess<S>> clazz)
Creates a new inconsistency measure based on the given process class.
|
DefaultStreamBasedInconsistencyMeasure(Class<? extends InconsistencyMeasurementProcess<S>> clazz,
Map<String,Object> config)
Creates a new inconsistency measure based on the given process class and the given configuration options for that process.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInconsistencyListener(InconsistencyListener listener)
Add a listener to this measure.
|
void |
fireInconsistencyUpdateEvent(InconsistencyUpdateEvent evt)
This method is called by inconsistency measurement processes to dispatch
events to listeners.
|
InconsistencyMeasurementProcess<S> |
getInconsistencyMeasureProcess(net.sf.tweety.commons.streams.FormulaStream<S> stream)
Processes the formulas in the given stream one after the other.
|
Double |
inconsistencyMeasure(Collection<S> formulas)
This method measures the inconsistency of the given set of formulas.
|
void |
removeInconsistencyListener(InconsistencyListener listener)
Remove a listener from this measure.
|
String |
toString() |
inconsistencyMeasurepublic DefaultStreamBasedInconsistencyMeasure(Class<? extends InconsistencyMeasurementProcess<S>> clazz)
clazz - some inconsistency measurement process class.public DefaultStreamBasedInconsistencyMeasure(Class<? extends InconsistencyMeasurementProcess<S>> clazz, Map<String,Object> config)
clazz - some inconsistency measurement process class.config - configuration options for that class.public Double inconsistencyMeasure(Collection<S> formulas)
BeliefSetInconsistencyMeasureinconsistencyMeasure in class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>formulas - a collection of formulas.public InconsistencyMeasurementProcess<S> getInconsistencyMeasureProcess(net.sf.tweety.commons.streams.FormulaStream<S> stream)
StreamBasedInconsistencyMeasuregetInconsistencyMeasureProcess in class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>stream - some formula stream.public void addInconsistencyListener(InconsistencyListener listener)
StreamBasedInconsistencyMeasureaddInconsistencyListener in class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>listener - the listener to be added.public void removeInconsistencyListener(InconsistencyListener listener)
StreamBasedInconsistencyMeasureremoveInconsistencyListener in class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>listener - the listener to be removed.public void fireInconsistencyUpdateEvent(InconsistencyUpdateEvent evt)
StreamBasedInconsistencyMeasureevt - some event to be fired.Copyright © 2018. All rights reserved.