Design Pattern: Simple State Machine (e.g. Time Of Day)

I’m not in a place where I can give you real code.

Look into the joda DateTime classes to figre out how to parse a String into a DateTime object. Once you have that you can use the comparisons and math like above.

You can look at the alarm clock examples (here is a good one) and see about how you can generate an event to trigger the rule at that time.