Class DirectedAssociationNumbering

  • All Implemented Interfaces:
    com.nomagic.magicdraw.autoid.IAssociationNumbering, INumberingAction
    Direct Known Subclasses:
    AggregationCompositionNumbering

    @OpenApiAll
    public class DirectedAssociationNumbering
    extends com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
    implements com.nomagic.magicdraw.autoid.IAssociationNumbering
    Numbering for Elements connected by directed Associations Feb 21, 2012
    • Constructor Detail

      • DirectedAssociationNumbering

        public DirectedAssociationNumbering()
    • Method Detail

      • getAssociationTarget

        public Element getAssociationTarget​(Association association)
        Specified by:
        getAssociationTarget in interface com.nomagic.magicdraw.autoid.IAssociationNumbering
      • getAssociationTypes

        public java.util.Collection<java.lang.Class<? extends Association>> getAssociationTypes()
        Specified by:
        getAssociationTypes in interface com.nomagic.magicdraw.autoid.IAssociationNumbering
      • collectRelations

        public java.util.Map<Element,​Element> collectRelations​(java.util.List<Element> elements)
        Specified by:
        collectRelations in class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
      • getAssociationSource

        private Element getAssociationSource​(Association rel,
                                             Element target)
        Get the other end of an association, given the target.
        Parameters:
        rel - the association
        target - the target end of the association
        Returns:
        the source end of the association