public class EvaluationInconsistencyListener extends java.lang.Object implements InconsistencyListener
Modifier and Type | Field and Description |
---|---|
private long |
cumulativeTime
Sum of all steps.
|
private java.io.File |
file
The file where the results are stored.
|
static double |
INCDEFAULTVALUE |
private long |
lastMillis
The previous timestamp.
|
private int |
maxEvents
The maximum number of events this listener
listens to an inconsistency measure.
|
private int |
numberOfEvents
The current number of events.
|
static double |
TOLERANCE |
Constructor and Description |
---|
EvaluationInconsistencyListener(java.lang.String file,
int maxEvents) |
Modifier and Type | Method and Description |
---|---|
void |
inconsistencyMeasurementStarted(InconsistencyUpdateEvent evt)
This method is called by a stream-based inconsistency measure when
an inconsistency measurement has started.
|
void |
inconsistencyUpdateOccured(InconsistencyUpdateEvent evt)
This method is called by a stream-based inconsistency measure when
an update of an inconsistency value occurs.
|
private void |
writeToDisk(java.lang.String log)
Writes the given log to disk.
|
private java.io.File file
private int maxEvents
private int numberOfEvents
private long lastMillis
private long cumulativeTime
public static double INCDEFAULTVALUE
public static double TOLERANCE
public EvaluationInconsistencyListener(java.lang.String file, int maxEvents)
public void inconsistencyUpdateOccured(InconsistencyUpdateEvent evt)
InconsistencyListener
inconsistencyUpdateOccured
in interface InconsistencyListener
evt
- some event.private void writeToDisk(java.lang.String log)
log
- some string.public void inconsistencyMeasurementStarted(InconsistencyUpdateEvent evt)
InconsistencyListener
inconsistencyMeasurementStarted
in interface InconsistencyListener
evt
- some event.