diff --git a/.gitmodules b/.gitmodules
index f93547e7..d810b691 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -5,4 +5,4 @@
[submodule "api/asn1_codec"]
path = api/asn1_codec
- url = https://github.com/iyourshaw/asn1_codec.git
+ url = https://github.com/usdot-jpo-ode/asn1_codec.git
diff --git a/README.md b/README.md
index 1d87585d..fc8fffa8 100644
--- a/README.md
+++ b/README.md
@@ -132,6 +132,7 @@ Once these components have been installed. Download and install additional depen
```
cd api/jpo-conflictvisualizer-api
mvn clean install
+mvn spring-boot:run
```
### 2. Running Conflict Visualizer GUI Locally
diff --git a/api/asn1_codec b/api/asn1_codec
index 3b407666..6ce8588e 160000
--- a/api/asn1_codec
+++ b/api/asn1_codec
@@ -1 +1 @@
-Subproject commit 3b407666b09e2e7c3886bf6953d5821b43748e03
+Subproject commit 6ce8588e77cde969fa419f1cc960c4eb05829ff1
diff --git a/api/jpo-conflictmonitor b/api/jpo-conflictmonitor
index c2c32e2b..eb191250 160000
--- a/api/jpo-conflictmonitor
+++ b/api/jpo-conflictmonitor
@@ -1 +1 @@
-Subproject commit c2c32e2bff8fe735d32dc9a6428e6357226e3d20
+Subproject commit eb191250b61ca1b2419cd0a1d37622231dc5acb7
diff --git a/api/jpo-conflictvisualizer-api/pom.xml b/api/jpo-conflictvisualizer-api/pom.xml
index 95406f25..817305da 100644
--- a/api/jpo-conflictvisualizer-api/pom.xml
+++ b/api/jpo-conflictvisualizer-api/pom.xml
@@ -11,7 +11,7 @@
usdot.jpo.ode
jpo-conflictvisualizer-api
- 1.3.1-SNAPSHOT
+ 1.4.0-SNAPSHOT
jar
jpo-conflictvisualizer-api
Conflict Visualizer
@@ -98,7 +98,7 @@
usdot.jpo.ode
jpo-ode-core
- 2.1.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
@@ -110,23 +110,23 @@
usdot.jpo.ode
jpo-ode-plugins
- 2.1.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
usdot.jpo.ode
jpo-ode-svcs
- 2.1.0-SNAPSHOT
+ 3.0.0-SNAPSHOT
usdot.jpo.ode
jpo-geojsonconverter
- 1.3.1-SNAPSHOT
+ 1.4.2-SNAPSHOT
jpo-geojsonconverter
usdot.jpo.ode
jpo-conflictmonitor
- 1.3.1-SNAPSHOT
+ 1.4.1-SNAPSHOT
jpo-conflictmonitor
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepository.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepository.java
index 2b8403ec..e12550c2 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepository.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepository.java
@@ -11,7 +11,11 @@ public interface ConnectionOfTravelAssessmentRepository extends DataLoader find(Query query);
+
+
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepositoryImpl.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepositoryImpl.java
index fc86954a..2fe0a0c4 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepositoryImpl.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/ConnectionOfTravelAssessment/ConnectionOfTravelAssessmentRepositoryImpl.java
@@ -51,11 +51,20 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
return query;
}
+
public long getQueryResultCount(Query query) {
- query.limit(-1);
return mongoTemplate.count(query, ConnectionOfTravelAssessment.class, collectionName);
}
+ // Removes the result limit on a count query.
+ public long getQueryFullCount(Query query){
+ int limit = query.getLimit();
+ query.limit(-1);
+ long count = mongoTemplate.count(query, ConnectionOfTravelAssessment.class, collectionName);
+ query.limit(limit);
+ return count;
+ }
+
public List find(Query query) {
return mongoTemplate.find(query, ConnectionOfTravelAssessment.class, collectionName);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepository.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepository.java
index 4f74fe26..03636be3 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepository.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepository.java
@@ -11,6 +11,8 @@ public interface LaneDirectionOfTravelAssessmentRepository extends DataLoader find(Query query);
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepositoryImpl.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepositoryImpl.java
index e70dee6f..bc1dd54c 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepositoryImpl.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/LaneDirectionOfTravelAssessment/LaneDirectionOfTravelAssessmentRepositoryImpl.java
@@ -10,6 +10,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;
+
import us.dot.its.jpo.conflictmonitor.monitor.models.assessments.LaneDirectionOfTravelAssessment;
import us.dot.its.jpo.ode.api.ConflictMonitorApiProperties;
@@ -51,14 +52,24 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}else{
query.limit(props.getMaximumResponseSize());
}
+
return query;
}
+
+
public long getQueryResultCount(Query query) {
- query.limit(-1);
return mongoTemplate.count(query, LaneDirectionOfTravelAssessment.class, collectionName);
}
+ public long getQueryFullCount(Query query){
+ int limit = query.getLimit();
+ query.limit(-1);
+ long count = mongoTemplate.count(query, LaneDirectionOfTravelAssessment.class, collectionName);
+ query.limit(limit);
+ return count;
+ }
+
public List find(Query query) {
return mongoTemplate.find(query, LaneDirectionOfTravelAssessment.class, collectionName);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepository.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepository.java
index 1edea9d8..feb8afce 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepository.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepository.java
@@ -11,6 +11,8 @@ public interface StopLineStopAssessmentRepository extends DataLoader find(Query query);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepositoryImpl.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepositoryImpl.java
index f1ebc584..576bda1f 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepositoryImpl.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateAssessment/StopLineStopAssessmentRepositoryImpl.java
@@ -10,6 +10,7 @@
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;
import org.springframework.stereotype.Component;
+
import us.dot.its.jpo.conflictmonitor.monitor.models.assessments.StopLineStopAssessment;
import us.dot.its.jpo.ode.api.ConflictMonitorApiProperties;
@@ -52,10 +53,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}
public long getQueryResultCount(Query query) {
- query.limit(-1);
return mongoTemplate.count(query, StopLineStopAssessment.class, collectionName);
}
+ public long getQueryFullCount(Query query){
+ int limit = query.getLimit();
+ query.limit(-1);
+ long count = mongoTemplate.count(query, StopLineStopAssessment.class, collectionName);
+ query.limit(limit);
+ return count;
+ }
+
public List find(Query query) {
return mongoTemplate.find(query, StopLineStopAssessment.class, collectionName);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepository.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepository.java
index e8868095..7bcff32b 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepository.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepository.java
@@ -13,5 +13,7 @@ public interface SignalStateEventAssessmentRepository extends DataLoader find(Query query);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepositoryImpl.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepositoryImpl.java
index dbd2974e..907c4e00 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepositoryImpl.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/assessments/SignalStateEventAssessment/SignalStateEventAssessmentRepositoryImpl.java
@@ -53,10 +53,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}
public long getQueryResultCount(Query query) {
- query.limit(-1);
return mongoTemplate.count(query, StopLinePassageAssessment.class, collectionName);
}
+ public long getQueryFullCount(Query query){
+ int limit = query.getLimit();
+ query.limit(-1);
+ long count = mongoTemplate.count(query, StopLinePassageAssessment.class, collectionName);
+ query.limit(limit);
+ return count;
+ }
+
public List find(Query query) {
return mongoTemplate.find(query, StopLinePassageAssessment.class, collectionName);
}
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepository.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepository.java
index 8181847d..5bc10204 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepository.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepository.java
@@ -12,6 +12,8 @@ public interface BsmEventRepository extends DataLoader{
Query getQuery(Integer intersectionID, Long startTime, Long endTime, boolean latest);
long getQueryResultCount(Query query);
+
+ long getQueryFullCount(Query query);
List find(Query query);
diff --git a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepositoryImpl.java b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepositoryImpl.java
index a0d5d54b..2a994244 100644
--- a/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepositoryImpl.java
+++ b/api/jpo-conflictvisualizer-api/src/main/java/us/dot/its/jpo/ode/api/accessors/events/BsmEvent/BsmEventRepositoryImpl.java
@@ -65,10 +65,17 @@ public Query getQuery(Integer intersectionID, Long startTime, Long endTime, bool
}
public long getQueryResultCount(Query query) {
- query.limit(-1);
return mongoTemplate.count(query, BsmEvent.class, collectionName);
}
+ public long getQueryFullCount(Query query){
+ int limit = query.getLimit();
+ query.limit(-1);
+ long count = mongoTemplate.count(query, BsmEvent.class, collectionName);
+ query.limit(limit);
+ return count;
+ }
+
public List find(Query query) {
List