public interface Port extends Property
A Port is a property of an EncapsulatedClassifier that specifies a distinct interaction point between that EncapsulatedClassifier and its environment or between the (behavior of the) EncapsulatedClassifier and its internal parts. Ports are connected to Properties of the EncapsulatedClassifier by Connectors through which requests can be made to invoke BehavioralFeatures. A Port may specify the services an EncapsulatedClassifier provides (offers) to its environment as well as the services that an EncapsulatedClassifier expects (requires) of its environment. A Port may have an associated ProtocolStateMachine.
The following features are supported:
UMLPackage.getPort()
get_propertyOfRedefinedProperty, get_propertyOfSubsettedProperty, has_propertyOfRedefinedProperty, has_propertyOfSubsettedProperty, hasRedefinedProperty, hasSubsettedProperty
Modifier and Type | Method and Description |
---|---|
java.util.Collection<InvocationAction> |
get_invocationActionOfOnPort()
Returns the value of the 'invocation Action Of On Port' reference list.
|
java.util.Collection<Port> |
get_portOfRedefinedPort()
Returns the value of the 'port Of Redefined Port' reference list.
|
java.util.Collection<Trigger> |
get_triggerOfPort()
Returns the value of the 'trigger Of Port' reference list.
|
ProtocolStateMachine |
getProtocol()
Returns the value of the 'Protocol' reference.
|
java.util.Collection<Interface> |
getProvided()
Returns the value of the 'Provided' reference list.
|
java.util.Collection<Port> |
getRedefinedPort()
Returns the value of the 'Redefined Port' reference list.
|
java.util.Collection<Interface> |
getRequired()
Returns the value of the 'Required' reference list.
|
boolean |
has_invocationActionOfOnPort() |
boolean |
has_portOfRedefinedPort() |
boolean |
has_triggerOfPort() |
boolean |
hasProvided() |
boolean |
hasRedefinedPort() |
boolean |
hasRequired() |
boolean |
isBehavior()
Returns the value of the 'Behavior' attribute.
|
boolean |
isConjugated()
Returns the value of the 'Conjugated' attribute.
|
boolean |
isService()
Returns the value of the 'Service' attribute.
|
void |
setBehavior(boolean value)
Sets the value of the '
Behavior ' attribute. |
void |
setConjugated(boolean value)
Sets the value of the '
Conjugated ' attribute. |
void |
setProtocol(ProtocolStateMachine value)
Sets the value of the '
Protocol ' reference. |
void |
setService(boolean value)
Sets the value of the '
Service ' attribute. |
get_artifactOfOwnedAttribute, get_associationOfNavigableOwnedEnd, get_connectorEndOfPartWithPort, get_interactionUseOfReturnValueRecipient, get_linkEndDataOfEnd, get_propertyOfRedefinedProperty, get_propertyOfSubsettedProperty, get_qualifierValueOfQualifier, get_readLinkObjectEndActionOfEnd, get_readLinkObjectEndQualifierActionOfQualifier, get_structuredClassifierOfOwnedAttribute, getAggregation, getAssociation, getAssociationEnd, getClassifier, getDatatype, getDefaultValue, getInterface, getOpposite, getOwningAssociation, getOwningSignal, getQualifier, getRedefinedProperty, getSubsettedProperty, getUMLClass, has_connectorEndOfPartWithPort, has_interactionUseOfReturnValueRecipient, has_linkEndDataOfEnd, has_propertyOfRedefinedProperty, has_propertyOfSubsettedProperty, has_qualifierValueOfQualifier, has_readLinkObjectEndActionOfEnd, has_readLinkObjectEndQualifierActionOfQualifier, hasQualifier, hasRedefinedProperty, hasSubsettedProperty, isComposite, isDerived, isDerivedUnion, isID, isNavigable, set_artifactOfOwnedAttribute, set_associationOfNavigableOwnedEnd, set_structuredClassifierOfOwnedAttribute, setAggregation, setAssociation, setAssociationEnd, setClassifier, setDatatype, setDefaultValue, setDerived, setDerivedUnion, setID, setInterface, setOwningAssociation, setOwningSignal, setUMLClass
get_slotOfDefiningFeature, get_structuralFeatureActionOfStructuralFeature, has_slotOfDefiningFeature, has_structuralFeatureActionOfStructuralFeature, isReadOnly, setReadOnly
getFeaturingClassifier, isStatic, setFeaturingClassifier, setStatic
get_redefinableElementOfRedefinedElement, getRedefinedElement, getRedefinitionContext, has_redefinableElementOfRedefinedElement, hasRedefinedElement, hasRedefinitionContext, isLeaf, setLeaf
get_considerIgnoreFragmentOfMessage, get_durationObservationOfEvent, get_informationFlowOfInformationSource, get_informationFlowOfInformationTarget, get_messageOfSignature, get_namespaceOfMember, get_timeObservationOfEvent, getClientDependency, getName, getNameExpression, getNamespace, getQualifiedName, getSupplierDependency, getVisibility, has_considerIgnoreFragmentOfMessage, has_durationObservationOfEvent, has_informationFlowOfInformationSource, has_informationFlowOfInformationTarget, has_messageOfSignature, has_namespaceOfMember, has_timeObservationOfEvent, hasClientDependency, hasSupplierDependency, setName, setNameExpression, setNamespace, setVisibility
get_activityPartitionOfRepresents, get_commentOfAnnotatedElement, get_constraintOfConstrainedElement, get_diagramOfContext, get_directedRelationshipOfSource, get_directedRelationshipOfTarget, get_elementOfSyncElement, get_elementValueOfElement, get_relationshipOfRelatedElement, getAppliedStereotypeInstance, getOwnedComment, getOwnedElement, getOwner, getSyncElement, has_activityPartitionOfRepresents, has_commentOfAnnotatedElement, has_constraintOfConstrainedElement, has_diagramOfContext, has_directedRelationshipOfSource, has_directedRelationshipOfTarget, has_elementOfSyncElement, has_elementValueOfElement, has_relationshipOfRelatedElement, hasOwnedComment, hasOwnedElement, setAppliedStereotypeInstance, setOwner, setSyncElement
get_representationText, getLocalID, isInvalid, set_representationText, setLocalID, sGetLocalID
getID, getMDExtension, getMdExtensions, setID
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
eAdapters, eDeliver, eNotify, eSetDeliver
accept, addPropertyChangeListener, canAdd, canAdd, canAddChild, canBeDeleted, firePropertyChange, getClassType, getHumanName, getHumanType, getObjectParent, isEditable, removePropertyChangeListener, sGetID
refClass, refDelete, refImmediateComposite, refIsInstanceOf, refOutermostComposite
refGetValue, refGetValue, refInvokeOperation, refInvokeOperation, refSetValue, refSetValue
equals, hashCode, refImmediatePackage, refMetaObject, refMofId, refOutermostPackage, refVerifyConstraints
getLower, getLowerValue, getUpper, getUpperValue, isOrdered, isUnique, setLowerValue, setOrdered, setUnique, setUpperValue
get_collaborationOfCollaborationRole, get_lifelineOfRepresents, get_structuredClassifierOfRole, getEnd, getTemplateParameter, has_collaborationOfCollaborationRole, has_lifelineOfRepresents, has_structuredClassifierOfRole, hasEnd, setTemplateParameter
getType, setType
get_templateParameterOfDefault, get_templateParameterOfOwnedDefault, get_templateParameterSubstitutionOfActual, get_templateParameterSubstitutionOfOwnedActual, getOwningTemplateParameter, has_templateParameterOfDefault, has_templateParameterSubstitutionOfActual, set_templateParameterOfOwnedDefault, set_templateParameterSubstitutionOfOwnedActual, setOwningTemplateParameter, setTemplateParameter
getDeployedElement, getDeployment, hasDeployedElement, hasDeployment
boolean isBehavior()
"false"
.
Specifies whether requests arriving at this Port are sent to the classifier behavior of this EncapsulatedClassifier. Such a Port is referred to as a behavior
Port. Any invocation of a BehavioralFeature targeted at a behavior Port will be handled by the instance of the owning EncapsulatedClassifier itself, rather than
by any instances that it may contain.
setBehavior(boolean)
,
UMLPackage.getPort_Behavior()
void setBehavior(boolean value)
Behavior
' attribute.
value
- the new value of the 'Behavior' attribute.isBehavior()
boolean isConjugated()
"false"
.
Specifies the way that the provided and required Interfaces are derived from the Port’s Type.
setConjugated(boolean)
,
UMLPackage.getPort_Conjugated()
void setConjugated(boolean value)
Conjugated
' attribute.
value
- the new value of the 'Conjugated' attribute.isConjugated()
boolean isService()
"true"
.
If true, indicates that this Port is used to provide the published functionality of an EncapsulatedClassifier. If false, this Port is used to implement the
EncapsulatedClassifier but is not part of the essential externally-visible functionality of the EncapsulatedClassifier and can, therefore, be altered or deleted
along with the internal implementation of the EncapsulatedClassifier and other properties that are considered part of its implementation.
setService(boolean)
,
UMLPackage.getPort_Service()
void setService(boolean value)
Service
' attribute.
value
- the new value of the 'Service' attribute.isService()
java.util.Collection<Interface> getRequired()
Interface
.
It is bidirectional and its opposite is 'port Of Required
'.
The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCassifier expects its environment to handle via this port. This association
is derived according to the value of isConjugated. If isConjugated is false, required is derived as the union of the sets of Interfaces used by the type of the
Port and its supertypes. If isConjugated is true, it is derived as the union of the sets of Interfaces realized by the type of the Port and its supertypes, or
directly from the type of the Port if the Port is typed by an Interface.
UMLPackage.getPort_Required()
,
com.nomagic.uml2.ext.magicdraw.classes.mdinterfaces.Interface#get_portOfRequired
java.util.Collection<InvocationAction> get_invocationActionOfOnPort()
InvocationAction
.
It is bidirectional and its opposite is 'On Port
'.
If the meaning of the 'invocation Action Of On Port' reference list isn't clear, there really should be more of a description here...
UMLPackage.getPort__invocationActionOfOnPort()
,
InvocationAction.getOnPort()
@CheckForNull ProtocolStateMachine getProtocol()
port Of Protocol
'.
An optional ProtocolStateMachine which describes valid interactions at this interaction point.
setProtocol(ProtocolStateMachine)
,
UMLPackage.getPort_Protocol()
,
ProtocolStateMachine.get_portOfProtocol()
void setProtocol(@CheckForNull ProtocolStateMachine value)
Protocol
' reference.
value
- the new value of the 'Protocol' reference.getProtocol()
java.util.Collection<Interface> getProvided()
Interface
.
It is bidirectional and its opposite is 'port Of Provided
'.
The Interfaces specifying the set of Operations and Receptions that the EncapsulatedCclassifier offers to its environment via this Port, and which it will handle
either directly or by forwarding it to a part of its internal structure. This association is derived according to the value of isConjugated. If isConjugated is
false, provided is derived as the union of the sets of Interfaces realized by the type of the port and its supertypes, or directly from the type of the Port if
the Port is typed by an Interface. If isConjugated is true, it is derived as the union of the sets of Interfaces used by the type of the Port and its supertypes.
UMLPackage.getPort_Provided()
,
com.nomagic.uml2.ext.magicdraw.classes.mdinterfaces.Interface#get_portOfProvided
java.util.Collection<Port> getRedefinedPort()
Port
.
It is bidirectional and its opposite is
'port Of Redefined Port
'.
A Port may be redefined when its containing EncapsulatedClassifier is specialized. The redefining Port may have additional Interfaces to those that are
associated with the redefined Port or it may replace an Interface by one of its subtypes.
UMLPackage.getPort_RedefinedPort()
,
get_portOfRedefinedPort()
java.util.Collection<Port> get_portOfRedefinedPort()
Port
.
It is bidirectional and its opposite is 'Redefined Port
'.
If the meaning of the 'port Of Redefined Port' reference list isn't clear, there really should be more of a description here...
UMLPackage.getPort__portOfRedefinedPort()
,
getRedefinedPort()
java.util.Collection<Trigger> get_triggerOfPort()
Trigger
.
It is bidirectional and its opposite is 'Port
'.
If the meaning of the 'trigger Of Port' reference list isn't clear, there really should be more of a description here...
UMLPackage.getPort__triggerOfPort()
,
Trigger.getPort()
boolean hasRequired() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean has_invocationActionOfOnPort() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasProvided() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean hasRedefinedPort() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean has_portOfRedefinedPort() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException
boolean has_triggerOfPort() throws javax.jmi.reflect.JmiException
javax.jmi.reflect.JmiException