NREL/OpenStudio — pull request #964 by mbadams5 (2014-04-03 19:08:43+00:00)
Title: Add refrigeration api helpers

@kbenne

!!! This doesn't include version translator code, which it needs !!!
@kbenne can you add the version translation code? I've never done it.

This adds helper functionality to create defrost and drip down schedules from durationOfDefrostCycle, dripDownTime, and up to 8 defrostStartTime. These parameters are set through the Refrigeration GUI in the OS App and are much quicker to set than to create two schedules for each Refrigeration Case and Walkin.

If these values are set then they will be used during ForwardTranslation to automatically create a simple Schedule:Compact, however, if they are not set then ForwardTranslator will use the schedules fields.

I created a function in ForwardTranslator.cpp, createSimpleSchedule. This function is generic enough to be usable by other objects if needed. It requires a name and a vector for a defaultDay, however, it can also have a summer and winter design day. The Time's must be in chronological order and follow all rules of Schedule:Compact. There is no validation and assumes the developer knows what they are doing. The Time range in the vector must encompass all 24 hours.

I created a couple unit tests and I manually tested the ForwardTranslation. I need to create proper integration tests in openstudio-resources. So @kbenne look over this some to make sure I didn't create any bugs.