Package

org.omg.oti.mof

runtime

Permalink

package runtime

Visibility
  1. Public
  2. All

Type Members

  1. trait ResourceStore extends AnyRef

    Permalink

Value Members

  1. object ResourceStore

    Permalink
  2. package metamodel

    Permalink

    What are the different kinds of meta-associations used in metamodels?

    What are the different kinds of meta-associations used in metamodels?

    All well-formed metamodel associations are ordered from a source to a target association end property.

    It depends on several characteristics: - is the source/target association end property ordered? - is the source/target association end property composite?

    For each kind of association, there are two sets of query operations: - for forward navigation from the association source to target - for reverse navigation from the association target to source

    For each kind of association, there is always a forward query in the association source metaclass and a reverse query in the association target metaclass.

    This means that a simple test of well-formed code generation is to verify that the count of forward query usages equals the count of reverse query usages for each kind of association.

    Example:
    1. MagicDraw 18's implementation of OMG UML 2.5 has 430 associations: - 9 are MD-specific (no code is generated for them currently) - 421 correspond to OMG UML 2.5 + two extra metaclasses (Diagram, ElementValue) These 421 associations fall in 5 categories as described below: Note that in each category, there is a matching number of forward & reverse query operations. - 1 org.omg.oti.mof.runtime.metamodel.SourceOrderedReferenceAssociation Forward: -- 1 queryIterable Reverse: -- 1 queryOppositeOrdered - 40 org.omg.oti.mof.runtime.metamodel.TargetOrderedCompositeAssociation Forward: -- 1 queryIterable -- 39 queryOrdered Reverse: -- 40 queryOppositeOptional - 9 org.omg.oti.mof.runtime.metamodel.TargetOrderedReferenceAssociation Forward: -- 1 queryIterable -- 8 queryOrdered Reverse: -- 2 queryOppositeOptional -- 7 queryOppositeUnordered - 163 org.omg.oti.mof.runtime.metamodel.UnorderedCompositeAssociation Forward: -- 4 queryIterable -- 80 queryOptional -- 79 queryUnordered Reverse: -- 163 queryOppositeOptional - 208 org.omg.oti.mof.runtime.metamodel.UnorderedReferenceAssociation Forward: -- 7 queryIterable -- 105 queryOptional -- 96 queryUnordered Reverse: -- 60 queryOppositeOptional -- 148 queryOppositeUnordered

  3. package model

    Permalink

Ungrouped