Class DirectedRelationshipNumbering

java.lang.Object
com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering
com.nomagic.magicdraw.autoid.custom.DirectedRelationshipNumbering
All Implemented Interfaces:
INumberingAction, IRelationshipNumbering
Direct Known Subclasses:
AbstractionNumbering, ComponentRealizationNumbering, DependencyNumbering, DeploymentNumbering, ElementImportNumbering, ExtendNumbering, GeneralizationNumbering, IncludeNumbering, InformationFlowNumbering, InterfaceRealizationNumbering, ManifestationNumbering, PackageImportNumbering, PackageMergeNumbering, ProfileApplicationNumbering, ProtocolConformanceNumbering, RealizationNumbering, SubstitutionNumbering, TemplateBindingNumbering, UsageNumbering

@OpenApiAll public class DirectedRelationshipNumbering extends com.nomagic.magicdraw.autoid.AbstractRelationshipNumbering implements IRelationshipNumbering
Base Class for all Directed Relationship Numberings Feb 20, 2012
  • Constructor Details

    • DirectedRelationshipNumbering

      public DirectedRelationshipNumbering()
  • Method Details

    • getRelationTypes

      public Collection<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 Map<Element,Element> collectRelations(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