This is a description of how to build a dupont model. These steps are
intended to be taken in order. We are assuming that the
CatState
object is already defined in your class hierarchy.
You are now ready to define a
DuPontModel.
See the Aurora
DuPontModel
and its interface specs for a good example of how to build these.
MAKE SURE your datamodel is set in the DataModelBuilder to the
desired datamodel.
Open a Canvas Tool.
Draw your DuPont Model using the DuPont widgets. There are two
types of dupont widgets: 1) a DuPontSpec
widget
which is used for defining formulas and percentages (the top-level
dupont boxes use Report Values objects for
getting their values), and 2) a DuPontPctSpec
widget
which is used for defining only percentage formulas. After drawing
all of the dupont boxes on the screen, you can draw lines representing
the relations between values wherever appropriate.
Use the property editor for entering:
the name of the widget which.
is the same name that is used in the formulas.
the label name which is for the button.
the id which is used for the help and is usually the same
as the name.
the formula from the details page which specifies either
the name of the Report Values class or a formula based upon previous dupont
boxes you have defined. You do not enter any formulas for the
DuPontPctSpec as
they they are used only for percentages.
the percentage formula from the details page.
Save this to a new class.
From the pop-up menu on the main canvas select the "save
formulas" option. This saves the formulas to the database for use by
the CatState class.
Go to the saved class and define a state method for returning the
CatState.
If you have any questions or changes, please
contact: