-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Calendar API #141
Comments
@eikek WDYT? |
Hi @pawelkaczor , |
In general, I understand your point. I agree that the scope of the lib should be limited. That's why I treat the Calendar API only as a generalization of CalEvent API that 1) can deal with sets of CalEvents 2) could benefit from optimizations. Calendar containing single CalEvent instance is equivalent of single CalEvent instance (and it is nothing more). The CalEvent API could be replaced with Calendar API (but also both apis could be present). Proposed Calendar domain has nothing to do with general/abstract Calendar domain. Notice that DailyCalendar, WeeklyCalendar concepts are nothing more than categorization of CalEvent sets requiring no additional information. |
Yes, you are right that Calendar could work also with cron based calendar events, so this is valid argument against adding Calendar to this project. But there also counter-arguments. calev-akka could support Calendars. |
I disagree. The CalEvent is really only the representation of the
To me this is again a reason for a separate project :-) Other submodules can't easily support it, so I think it's better in a separate project which can be more specialized for akka. However, it would be ok to me to add it to the akka submodule only. |
OK. No problem. If I need this new Calendar stuff on my current project I will implement it somewhere else (not sure whether calev-akka is good place but thank you for the suggestion). |
Thank you! |
A Calendar instance contains calendar events (instances of CalEvent) each identified by a name (String).
Calendar interface
There could be different types of the calendar: DailyCalendar, WeeklyCalendar, MonthlyCalendar. The implementation of upcomingEvent method could be optimized for each calendar type.
The text was updated successfully, but these errors were encountered: