Skip to main content
ARS Home » Research » Publications at this Location » Publication #254246

Title: Environmental modeling framework invasiveness: analysis and implications

Author
item LLOYD, WES - Colorado State University
item DAVID, OLAF - Colorado State University
item Ascough Ii, James
item ROJAS, KEN - Natural Resources Conservation Service (NRCS, USDA)
item CARLSON, JACK - Natural Resources Conservation Service (NRCS, USDA)
item LEAVESLEY, GEORGE - Colorado State University
item KRAUSE, PETER - University Of Jena
item Green, Timothy
item Ahuja, Lajpat

Submitted to: Environmental Modelling & Software
Publication Type: Peer Reviewed Journal
Publication Acceptance Date: 3/28/2011
Publication Date: 5/12/2011
Citation: Lloyd, W., David, O., Ascough II, J.C., Rojas, K.W., Carlson, J., Leavesley, G.H., Krause, P., Green, T.R., Ahuja, L.R. 2011. Environmental modeling framework invasiveness: analysis and implications. Environmental Modeling & Software. 26(10):1240-1250.

Interpretive Summary: This paper presents results of an investigation on the framework invasiveness of environmental modeling frameworks, specifically, this research investigates relationships between invasiveness and the quality of modeling code. Additionally, we investigate the relationship between invasiveness and two common framework designs (lightweight versus heavyweight). Five metrics to measure framework invasiveness were proposed and applied to measure dependencies between model and framework code of several implementations of Thornthwaite and the Precipitation-Runoff Modeling System (PRMS), two well-known hydrological models. Framework invasiveness measurements were compared with existing popular software metrics including size (lines of code), cyclomatic complexity, and object-oriented coupling with generally positive correlations being found. We found that models with lower framework invasiveness tended to be smaller, less complex, and have less coupling. In addition, the lightweight framework model implementations were less invasive than the heavyweight framework model implementations. Study results suggest that framework invasiveness is undesirable for model code quality and that lightweight frameworks may help reduce invasiveness.

Technical Abstract: Environmental modeling frameworks support scientific model development by providing an Application Programming Interface (API) which model developers use to implement models. This paper presents results of an investigation on the framework invasiveness of environmental modeling frameworks. Invasiveness, similar to object-oriented coupling, can be defined as the quantity of dependencies between model code and the modeling framework. This research investigates relationships between invasiveness and the quality of modeling code. Additionally, we investigate the relationship between invasiveness and two common framework designs (lightweight versus heavyweight). Five metrics to measure framework invasiveness were proposed and applied to measure dependencies between model and framework code of several implementations of Thornthwaite and the Precipitation-Runoff Modeling System (PRMS), two well-known hydrological models. Framework invasiveness measurements were compared with existing popular software metrics including size (lines of code), cyclomatic complexity, and object-oriented coupling with generally positive correlations being found. We found that models with lower framework invasiveness tended to be smaller, less complex, and have less coupling. In addition, the lightweight framework implementations of the Thornthwaite and PRMS models were less invasive than the heavyweight framework model implementations. Our results suggest that framework invasiveness is undesirable for model code quality and that lightweight frameworks may help reduce invasiveness.