To use a component, we have to copy its Specification, or parts of its Specification, into our model. A component Specification consists of one or more Interfaces, and each interface consists of one or more Public Operations. In CA Gen, public operations are just another form of an action diagram.
If we were going to use just one Public Operation of the component, we can just copy that one operation into our model. If we were going to use several Public Operations of the same interface, we could copy the interface into our model and that would include all of that interface's Public Operations. If we needed many operations from each of the component's interfaces, we can copy the entire specification, which would include all the interfaces and all the operations associated with each interface. In our case, we just need the one operation that will calculate the handicap index.
The version control features of an CA Gen encyclopedia can be used to copy the component's specification into your model. To simplify the Tutorial somewhat, we started with a model in which the desired Public Operation (IGLF1011_GOLFER_COMPUTEINDEX_S) has already been copied into it.
Copyright © 2013 CA.
All rights reserved.
|
|