SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 259 | Next

Steven Kelly and Juha-Pekka Tolvanen

"Domain-Specific Modeling"

lookupElementExtended
("RIS_dailyallowance");
1567 AssociationEnd end19_12014 = new AssociationEnd("end19_12014",
iRisk);
1568 end19_12014.setMultiplicity(new MultiplicityType(1,1, false,true));
1569 end19_12014.setAggregation(AggregationType.SHARED);
1570
1571 compositeDanger = (CompositeDanger) productpackage_.
lookupElementExtended("CGF_basis");
1572 AssociationEnd end19_7992 = new AssociationEnd("end19_7992",
iCompositeDanger);
1573 end19_7992.setMultiplicity(new MultiplicityType(1,1, false,true));
1574 end19_7992.setAggregation(AggregationType.SHARED);
1575
1576 mofAssociation = MofAssociation.createAssociation
("Risk19_9291_X_CompositeDanger19_10072", end19_12014, end19_7992);
1577 productpackage_.addMofAssociation(mofAssociation);
1578
1579 reference = new Reference("Risk19_9291_X_CompositeDanger19_10072",
end19_12014, end19_7992);
1580 risk.addReference(reference);
GENERATOR FOR JAVA 137
names for associations since role names are neither mandatory nor unique in a model.
Unique names are used in line 1576 to create an association by using the de?¬?ned roles.
The name for the association is again derived from the names of the objects types and
their unique identi?¬?ers. Finally, if an object in an association had a reference, it was
added to the object having the reference (line 1580).


Pages:
247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6