Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task/rfr 733 filter invalid locations #53

Merged
merged 8 commits into from
Sep 28, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions libs/model/src/main/java/de/cyface/model/RawRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,13 @@ public void setSpeed(double speed) {
public void setModality(Modality modality) {
this.modality = modality;
}

@Override
public boolean equals(Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
if (!super.equals(o)) return false;
RawRecord rawRecord = (RawRecord) o;
return Double.compare(rawRecord.accuracy, accuracy) == 0 && Double.compare(rawRecord.speed, speed) == 0 && modality == rawRecord.modality;
}
hb0 marked this conversation as resolved.
Show resolved Hide resolved
}
4 changes: 0 additions & 4 deletions libs/model/src/main/kotlin/de/cyface/model/CalibrationJob.kt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class CalibrationJob : Job {
*/
@Suppress("MemberVisibilityCanBePrivate") // Part of the API
var isProcessable: Boolean
private set

/**
* The number of locations to be processed for this job.
Expand All @@ -47,21 +46,18 @@ class CalibrationJob : Job {
*/
@Suppress("MemberVisibilityCanBePrivate") // Part of the API
var rotatedLocations = 0
private set

/**
* The number of locations which where filtered due to invalid speed, accuracy or time gaps.
*/
@Suppress("MemberVisibilityCanBePrivate") // Part of the API
var invalidLocations = 0
private set

/**
* The number of locations which were filtered during interpolation.
*/
@Suppress("MemberVisibilityCanBePrivate") // Part of the API
var nonInterpolatableLocations = 0
private set

/**
* Constructs a fully initialized instance of this class.
Expand Down