All Superinterfaces:
BaseElement, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, Feature, ModelElement, com.dassault_systemes.modeler.modelextension.model.modelextension.ModelExtensionObject, Namespace, org.eclipse.emf.common.notify.Notifier, OccurrenceUsage, Type, Usage

@OpenApiAll public interface PortUsage extends OccurrenceUsage

A PortUsage is a usage of a PortDefinition. A PortUsage itself as well as all its nestedUsages must be referential (non-composite).

nestedUsage-> reject(oclIsKindOf(PortUsage))-> forAll(not isComposite) specializesFromLibrary('Ports::ports') isComposite and owningType <> null and (owningType.oclIsKindOf(PortDefinition) or owningType.oclIsKindOf(PortUsage)) implies specializesFromLibrary('Ports::Port::subports') owningType = null or not owningType.oclIsKindOf(PortDefinition) and not owningType.oclIsKindOf(PortUsage) implies isReference owningType <> null and (owningType.oclIsKindOf(PartDefinition) or owningType.oclIsKindOf(PartUsage)) implies specializesFromLibrary('Parts::Part::ownedPorts')
  • Method Details

    • getPortDefinition

      List<PortDefinition> getPortDefinition()

      The occurrenceDefinitions of this PortUsage, which must all be PortDefinitions.

      Returns:
      the portDefinition value
      Model:
      derived="true" transient="true" oppositeRoleName="definedPort" redefines=OccurrenceUsage.getOccurrenceDefinition()