Zaelot / Junction2016OfficeEfficiency

Competing in Tieto challenge during Junction 2016 hackacthon
GNU General Public License v3.0
0 stars 0 forks source link

Room assigning logic #3

Open ttukia opened 7 years ago

ttukia commented 7 years ago

Make a logic that checks room availability for the required number of people.

Zaelot commented 7 years ago

Hmm, so we'll need a calendar function too. Guess we should use whatever is native. (Google Calendar or whatnot.)

ttukia commented 7 years ago

Ye, this already seems quite complex...

Zaelot commented 7 years ago

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

Zaelot commented 7 years ago

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.

Zaelot commented 7 years ago

Got reservation logic mostly done, then started making simulated temperature adjustment. (The room reservations are not activated anywhere yet though.)