Class DirectedRelationshipNumbering

    • 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
      java.util.Collection<java.lang.Class<? extends DirectedRelationship>> getRelationTypes()
      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

      • DirectedRelationshipNumbering

        public DirectedRelationshipNumbering()
    • Method Detail

      • getRelationTypes

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

        public java.util.Map<Element,​Element> collectRelations​(java.util.List<Element> elements)
        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