Integration of a pasture model into APSIM.