Class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>

  • Type Parameters:
    S - The type of formulas
    All Implemented Interfaces:
    net.sf.tweety.commons.postulates.PostulateEvaluatable<S>, InconsistencyMeasure<net.sf.tweety.commons.BeliefSet<S,​?>>
    Direct Known Subclasses:
    DefaultStreamBasedInconsistencyMeasure

    public abstract class StreamBasedInconsistencyMeasure<S extends net.sf.tweety.commons.Formula>
    extends BeliefSetInconsistencyMeasure<S>
    General interface for inconsistency measures working on streams.
    Author:
    Matthias Thimm
    • Constructor Detail

      • StreamBasedInconsistencyMeasure

        public StreamBasedInconsistencyMeasure()
    • Method Detail

      • getInconsistencyMeasureProcess

        public abstract InconsistencyMeasurementProcess<S> getInconsistencyMeasureProcess​(net.sf.tweety.commons.streams.FormulaStream<S> stream)
        Processes the formulas in the given stream one after the other. After each update an event of type "InconsistencyUpdateEvent" is created and listeners are notified. This method creates and starts a new object of type "InconsistencyMeasurementProcess" that processes the stream in a separate thread, and returns it. The current value of inconsistency can be retrieved by the "getInconsistencyValue()" of that process and measurement can be aborted by calling its "abort()" method.
        Parameters:
        stream - some formula stream.
        Returns:
        an inconsistency measurement process.
      • addInconsistencyListener

        public abstract void addInconsistencyListener​(InconsistencyListener listener)
        Add a listener to this measure.
        Parameters:
        listener - the listener to be added.
      • removeInconsistencyListener

        public abstract void removeInconsistencyListener​(InconsistencyListener listener)
        Remove a listener from this measure.
        Parameters:
        listener - the listener to be removed.