Personal tools
You are here: Home Community Help Center How-tos Write a Structure

Write a Structure

The structure file defines a visual hierarchy of the models for the user interface representation. The concept of the structure files is not yet final!

Purpose

Parameters and results are displayed in tree tables in the user interface. The tree hierarchy helps to navigate and find parameters and results. Another way to define the hierarchy of a model are composed components.

Prerequisities

Source code of PillarOne modelling.

All models are available in the folder src/java/models. Each model has its own folder. The structure file of a model has to be in the same folder as the model. This how-to assumes that a model is available

Step by step

  1. Create a groovy script ending with the word Structure.
  2. Define the model the structure file belongs to.
  3. Define the number of periods.
  4. The name of the first level has to be company.
  5. The names on the second level can be defined.
  6. Add the components to the sections in which they should appear using the names defined in the model class.
package models.multiLineReinsurance

import models.multiLineReinsurance.MultiLineReinsuranceModel

model = MultiLineReinsuranceModel
periodCount = 1

company {
    Reinsurance {
        components {
            reinsuranceProgram
        }
    }
    MotorHull {
        components {
            motorHull
            motorHullResult
            motorHullNet
        }
    }
    Property {
        components {
            property
            propertyResult
            propertyNet
        }
    }
    Summary {
        components {
            claimsAggregator
        }
    }
}

This structure file leads to the following parameter and result view:

  • components not listed in the structure file will be attached to the root as i.e. default probabilities and reinsurers rating.
  • components appear only in the parameter view or result view, if they contain any parameters or results of this component were collected.
    • no summary in the parameter view
    • motor hull available in the parameter tree, motor hull net available in the result tree
  • furthermore composed components define hierarchy levels: reinsurance program, motor hull and property

Parameter View

Multi Line Reinsurance Parameter

Multi Line Reinsurance Parameter Expanded

Result View

Multi Line Reinsurance Result

Document Actions