freedomotic/freedomotic — pull request #41 by enriconicoletti (2014-09-04 16:58:04+00:00)
Title: Payload check in trigger evaluation now uses a strategy pattern

Payload check in trigger evaluation now uses a strategy pattern.

Added also a BETWEEN_TIME feature that checks if a given time in format HH:mm:ss lays between a time interval in format HH:mm:ss-HH:mm:ss. It works also if the interval crosses day boundaries (midnight is in the middle of the intervall)

For more info check the included test file https://github.com/enriconicoletti/freedomotic/blob/5d30844ca5933c623d6f2e09feb3be85777ea6ff/framework/freedomotic-model/src/test/java/com/freedomotic/reactions/PayloadTest.java