Aggregation Series Slots in RiverWare 6.3
Open Slot Development Snapshots / Phil Weinstein / 6-04-2012

Time Aggregation Specification Serailization within a Series Slot.
Embedded XML (within Tcl):

"$s" timeAggSpec  {<TimeAggSpec> \ 
 <SourceSlot>DataObj1.Series00000</SourceSlot> \ 
 <AggFunc>TimeAgg_Sum</AggFunc> \ 
 <AggPeriod>1 Months</AggPeriod> \ 
 <UsesWaterYear on="1"/> \ 
 <FailOnNan on="1"/> \ 
 <EvalAtEndOfRun on="1"/> \ 
</TimeAggSpec> \ 
}

Aggregation Series Slots: Persistence, End-of-Run Eval, Other Finishing.
Bug Number: n/a
Release notes (y/n): no
For Release Nums: 6.3

Latest screenshot:
http://cadswes2.colorado.edu/~philw/2012/AggregationSeriesSlots/2012-06-04/

(1) Implemented and tested auto-evaluation at End of Run. That processing is
parallel to end-of-run evaluation of RPL Expressions and Statistical Table
Slots. (Aggregation Series Slots are evaluated after RPL Expressions and
before Statistical Table Slots). The implemented mechanism also supports
manual evaluation of all Time Aggregation Series Slots in the model (i.e.
regardless of the individual "Evaluate at end of run" settings) -- but that
operation has not been provided in the user interface.

(2) Implemented persistence of the Time Aggregation Series Slot's Aggregation
configuration record, using XML embedded in the Tcl serialization. See sample
excerpt on webpage cited above. This required implementation of a deferred
referenced slot pointer lookup, as the referenced slot may not yet have been loaded
at the time the Time Aggregation Series Slot is being loaded.

(3) Option to "Fail on encountering NaN value" has been prevented from
generated errors for NaNs in pre-similation timesteps. (And a 2nd line
was added to the checkbox to indicate that). In my testing, I found
that, when this option was enabled, many slots in a valid model were
failing. See screenshot cited above.

(4) Improved encapsulation of the SeriesSlot's TimeAggSpec class; changes to API.
(5) Minor: Added tooltips to icon buttons.
(6) Minor: Darkened "reload" icon. Alternate colors were also defined (but not used).

---