Modelling Water Allocation In Community Irrigation Using Multi-Agent System : A Thesis Submitted In Partial Fulfilment Of The Requirements For The Degree Of Doctor Of Philosophy At Lincoln University