Pavement Analyst allows the user to define new calculated fields that cannot be directly modeled through an explicit performance model (for example, Condition Category value calculated from a combination of pavement conditions), and use them for decision making, as constraints / objectives, and reporting purposes.
ColumnName_ALT_1
ColumnName_ALT_2
ColumnName_ALT_3
Create a Calc Columns Analysis groovy script through the Groovy Script window which can be navigated to by selecting System in the top banner menu, selecting Tools in the drop-down menu, and clicking Groovy Scripts. This groovy script will be called at the end of each year in the analysis engine and the whole Dataset (USER_OPTIMIZATION_ENGINE) is passed to it. The script’s general structure is like this:
import com.agileassetsinc.core.DataStore; import com.agileassetsinc.main.optim.PerformanceIndex; String altAddition = (alt_in==0?"":"_ALT_"+alt_in); for (int i = 1; i <= ds_in.rowCount(); i++) { ds_in.setItemNumber(i, col_in+altStr ,ds_in.getItemNumber(i,"UNI_IRI_IND")); //The value that is recorded in the new column should be returned by this query } |