Skip to content

Commit

Permalink
cleanup(tse): some minor cleanup (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
schwepmo authored May 3, 2024
1 parent 0aba755 commit 03eb1c2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/dcaiti/mosaic/app/tse/FxdKernel.java
Original file line number Diff line number Diff line change
Expand Up @@ -109,9 +109,9 @@ public FxdKernel(EventManager eventManager, UnitLogger logger, ConfigT config) {
this.traversalBasedProcessors.addAll(config.traversalBasedProcessors);
}
if (config.timeBasedProcessors != null) {
// create registry of time based processors
// create registry of time-based processors
config.timeBasedProcessors.forEach(processor -> {
if (processor.triggerInterval >= 0) { // validate that processor has a legal trigger interval
if (processor != null && processor.triggerInterval >= 0) { // validate that processor has a legal trigger interval
this.timeBasedProcessors.put(processor.getIdentifier(), processor);
}
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,8 @@ protected void createTables(boolean isPersistent) throws SQLException {
"CREATE TABLE IF NOT EXISTS " + TABLE_RECORDS + " ("
+ COLUMN_VEH_ID + " TEXT NOT NULL, "
+ COLUMN_TIME_STAMP + " INTEGER NOT NULL, "
+ COLUMN_LATITUDE + " REAL NO NULL, "
+ COLUMN_LONGITUDE + " REAL NO NULL, "
+ COLUMN_LATITUDE + " REAL NOT NULL, "
+ COLUMN_LONGITUDE + " REAL NOT NULL, "
+ COLUMN_CONNECTION_ID + " TEXT NOT NULL, "
+ COLUMN_OFFSET + " INTEGER NOT NULL, "
+ COLUMN_SPEED + " INTEGER NOT NULL, "
Expand Down

0 comments on commit 03eb1c2

Please sign in to comment.