3 public class SoilProfile {

4 public SoilLayer soilLayer[];

5 public SoilProfile() {}

Figure 4-11. Java implementation of a one-to-many association.

There is a large class of water-balance and irrigation-scheduling models that requires modeling the relationship between the soil profile and its soil layers [PSH04], Some models do not partition soil into layers; they simply consider soil profile as a single layer that extends to the bottom of the root zone [GSROO]. In these cases, the model will always have one layer.

Other water-balance and irrigation-scheduling models consider a soil profile as composed of many soil layers [Rit98]. Therefore, in these models, one soil profile will be associated to many soil layers. The association in Figure 4-10 takes into consideration both cases.

0 0

Post a comment