First time here? Check out the Help page!
1 | initial version |
For setter methods that return a bool (like addScheduleWeek) the convention is that this will return false if the set fails. Exceptions are typically only thrown in constructors if an object cannot be created correctly.
You can get access to the error and warning messages logged, this unit test shows how to work with the logger.
Finally, the assumed year is an OpenStudio only concept, it does not exist in EnergyPlus. The purpose of this is to ensure that all dates have a year that can be accessed. If you construct a date with only month and day, OpenStudio will assume a year for you using this algorithm. When you are working with dates in your code you just need to be careful to construct all your Date objects in the same way.