[prev in list] [next in list] [prev in thread] [next in thread] 

List:       dart
Subject:    RE: [Dart] DART2 Temporal Tracks not linked properly
From:       "Blezek, Daniel J (Research)" <blezek () crd ! ge ! com>
Date:       2005-07-11 17:36:48
Message-ID: B744015F9200AA49B4E03549EED88B9801E64E65 () SCHMLVEM01 ! e2k ! ad ! ge ! com
[Download RAW message or body]

Richard,

  Thanks for the contribution, I've applied the patch.

-dan

-----Original Message-----
From: dart-bounces+blezek=crd.ge.com@public.kitware.com
[mailto:dart-bounces+blezek=crd.ge.com@public.kitware.com]On Behalf Of
Richard Wackerbarth
Sent: Thursday, July 07, 2005 8:49 AM
To: Dart
Subject: [Dart] DART2 Temporal Tracks not linked properly


When adding a new day's worth of tracks, their "last" link is  
pointing to the wrong one.

In particular the July5-July6 track gets linked to the July3-July4  
one rather than July4-July5

This is because the start/end times overlap at the boundary.


This patch should fix it.

Index: server/track/TemporalTrack.java
===================================================================
--- server/track/TemporalTrack.java     (revision 78)
+++ server/track/TemporalTrack.java     (working copy)
@@ -126,7 +126,7 @@
          QueryParams params = new QueryParams();
          params.add ( name );
          params.add ( new TimestampMapper(), trackEntity.getStartTime 
() );
-        rs = trackFinder.findResultSet ( "where name = ? and EndTime  
< ? order by EndTime desc", params );
+        rs = trackFinder.findResultSet ( "where name = ? and EndTime  
<= ? order by EndTime desc", params );
          if ( rs.hasNext() ) {
            TrackEntity lastTrack = rs.next();
            lastTrack.setNextTrackId ( trackEntity.getTrackId() );

Richard
_______________________________________________
Dart mailing list
Dart@public.kitware.com
http://public.kitware.com/mailman/listinfo/dart

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic