Merge "Issue #1607 Added time variables for CORs." into development

Former-commit-id: d94233499a [formerly 7a6200d4bfe21feb6e29603dd638876f50a66162]
Former-commit-id: 91e016aa34
This commit is contained in:
Lee Venable 2013-02-15 12:08:15 -06:00 committed by Gerrit Code Review
commit 38bbca4895

View file

@ -137,6 +137,7 @@ import com.vividsolutions.jts.io.WKTReader;
* while loc is null.
* Jan 8, 2013 15664 Qinglu Lin Appended selectedAction to handler.handle()'s argument list.
* Feb 12, 2013 1600 jsanchez Correctly set the StormTrackData's motion direction for a CAN and EXP.
* Feb 15, 2013 1607 jsanchez Added two variables corEventTime and corCreateTime.
*
* </pre>
*
@ -586,9 +587,14 @@ public class TemplateRunner {
context.put("start", oldWarn.getIssueTime().getTime());
if (oldWarn.getAct().equals("NEW")) {
context.put("now", new Date(wwaMNDTime));
// original warning's 'now' time used in MND header
context.put("corCreateTime", new Date(wwaMNDTime));
} else
context.put("now", simulatedTime);
context.put("event", oldWarn.getIssueTime().getTime());
// original warning's 'event' time, which should match the storm
// track
context.put("corEventTime", eventTime);
String message = oldWarn.getRawmessage();
if (!stormTrackState.originalTrack) {