Menu

MClassifier and MAssociation(End)

2002-09-29
2002-10-23
  • Nils Bandener

    Nils Bandener - 2002-09-29

    Hi!

    I am using NSUML for a university project in which I need to navigate relatively freely through an NSUML model graph (I am using the NSUML version from the nsuml1_4 archive). Now, while the interface MAssociationEnd contains a method getParticipant() which allows me to navigate to the participating classifier, the interface MClassifier has no symmetric method that would allow me to navigate to the association ends it is connected to. In the UML 1.4 meta model, there is a 1:n association between Classifier and AssociationEnd. This missing method makes it quite hard to navigate through the model graph.

    The class UMLClassifierImpl realizing the MClassifier interface, however, contains a method called getAssociation172() which would do that job. So I am wondering why the interface does not contain it.

    Can anybody help me?

    Thanks in advance.

    Nils Bandener

     
    • Constantine A. Plotnikov

      You could access opposite end of any association using association object. Look at AssociationUsingSample in samples directory on how to do it.

      Needed association type is MAParticipantAssociation.

       

Log in to post a comment.