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
    • Field Summary

      • Fields inherited from class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering

        nInfo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<Element,​Element> collectRelations​(java.util.List<Element> elements)
      Collecting the Elements that are connected through given DirectedRelationship
      Element getAssociationTarget​(Association association)
      If the Association is directed, determine the Target element
      java.util.Collection<java.lang.Class<? extends Association>> getAssociationTypes()
      Which types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.
      • Methods inherited from class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering

        generateIds, isSuitableType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DirectedAssociationNumbering

        public DirectedAssociationNumbering()
    • Method Detail

      • getAssociationTarget

        public Element getAssociationTarget​(Association association)
        Description copied from interface: com.nomagic.magicdraw.autoid.IAssociationNumbering
        If the Association is directed, determine the Target element
        Specified by:
        getAssociationTarget in interface com.nomagic.magicdraw.autoid.IAssociationNumbering
        Parameters:
        association - the Association
        Returns:
        the target or null if not found
      • getAssociationTypes

        public java.util.Collection<java.lang.Class<? extends Association>> getAssociationTypes()
        Description copied from interface: com.nomagic.magicdraw.autoid.IAssociationNumbering
        Which types of directedRelationships should be taken into consideration for element sthat are eithe rsource or target of the given relation types.
        Specified by:
        getAssociationTypes in interface com.nomagic.magicdraw.autoid.IAssociationNumbering
        Returns:
        a collection of directed relationship types
      • collectRelations

        public java.util.Map<Element,​Element> collectRelations​(java.util.List<Element> elements)
        Description copied from class: com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
        Collecting the Elements that are connected through given DirectedRelationship
        Specified by:
        collectRelations in class com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
        Parameters:
        elements - the elements to test
        Returns:
        a map of source-target connected by DirectedRelationship