Open ttukia opened 7 years ago
Hmm, so we'll need a calendar function too. Guess we should use whatever is native. (Google Calendar or whatnot.)
Ye, this already seems quite complex...
So we need to decide on the logic and fragmentation (which code modules we have, where and what kind. Create separate issues for these as needed.)
Outside server sends us data (simulate)
-> Something on our side receives it
-> Something processes that
-> The result is sent out
So let's use object oriented programming: Classes:
(Don't need the building yet - as simple as possible.)
Then we make lists of rooms and occupants and populate them with instances we need. (Just like three to five to start with.)
Assign/remove them from those lists. -> Based on input value.
Got reservation logic mostly done, then started making simulated temperature adjustment. (The room reservations are not activated anywhere yet though.)
Make a logic that checks room availability for the required number of people.
[ ] Preassign a room based on reservation (at the time the reservation is done).
[ ] "Send push notification to participants" 1 hour before the reservation starts
[ ] "If not identified participants, sends a request to the organizer (host) to ask about the number of attending participants"
[ ] 20-min prior to start of the reservation, checks the amount of participants and their location.
[ ] Assigns a new room that optimizes the room size,
[ ] distance of participants from the room,
[ ] and expected energy consumption.
[ ] Send push notification of the reserved room to the participants/host.