Interface IPort
The public interface for Port
[DefaultImplementationType(typeof(Port))]
[XmlDefaultImplementationType(typeof(Port))]
[ModelRepresentationClass("http://www.eclipse.org/uml2/5.0.0/UML#//Port")]
public interface IPort : IProperty, IDeploymentTarget, IConnectableElement, IParameterableElement, IStructuralFeature, IMultiplicityElement, ITypedElement, IFeature, IRedefinableElement, INamedElement, IElement, IEModelElement, IModelElement, INotifyPropertyChanged, INotifyPropertyChanging
- Inherited Members
Properties
IsBehavior
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. <p>From package UML::StructuredClassifiers.</p>
[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isBehavior")]
[XmlAttribute(true)]
bool IsBehavior { get; set; }
Property Value
IsConjugated
Specifies the way that the provided and required Interfaces are derived from the Port’s Type. <p>From package UML::StructuredClassifiers.</p>
[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isConjugated")]
[XmlAttribute(true)]
bool IsConjugated { get; set; }
Property Value
IsService
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. <p>From package UML::StructuredClassifiers.</p>
[TypeConverter(typeof(LowercaseBooleanConverter))]
[XmlElementName("isService")]
[XmlAttribute(true)]
bool IsService { get; set; }
Property Value
Protocol
An optional ProtocolStateMachine which describes valid interactions at this interaction point. <p>From package UML::StructuredClassifiers.</p>
[XmlElementName("protocol")]
[XmlAttribute(true)]
IProtocolStateMachine Protocol { get; set; }
Property Value
RedefinedPort
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. <p>From package UML::StructuredClassifiers.</p>
[XmlElementName("redefinedPort")]
[XmlAttribute(true)]
ISetExpression<IPort> RedefinedPort { get; }
Property Value
Methods
BasicProvided()
The union of the sets of Interfaces realized by the type of the Port and its supertypes, or directly the type of the Port if the Port is typed by an Interface. result = (if type.oclIsKindOf(Interface) then type.oclAsType(Interface)->asSet() else type.oclAsType(Classifier).allRealizedInterfaces() endif) <p>From package UML::StructuredClassifiers.</p>
ISetExpression<IInterface> BasicProvided()
Returns
BasicRequired()
The union of the sets of Interfaces used by the type of the Port and its supertypes. result = ( type.oclAsType(Classifier).allUsedInterfaces() ) <p>From package UML::StructuredClassifiers.</p>
ISetExpression<IInterface> BasicRequired()
Returns
Default_value(object, object)
A defaultValue for port cannot be specified when the type of the Port is an Interface. type.oclIsKindOf(Interface) implies defaultValue->isEmpty()
bool Default_value(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
Encapsulated_owner(object, object)
All Ports are owned by an EncapsulatedClassifier. owner = encapsulatedClassifier
bool Encapsulated_owner(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.
Returns
GetProvideds()
Derivation for Port::/provided result = (if isConjugated then basicRequired() else basicProvided() endif) <p>From package UML::StructuredClassifiers.</p>
ISetExpression<IInterface> GetProvideds()
Returns
GetRequireds()
Derivation for Port::/required result = (if isConjugated then basicProvided() else basicRequired() endif) <p>From package UML::StructuredClassifiers.</p>
ISetExpression<IInterface> GetRequireds()
Returns
Port_aggregation(object, object)
Port.aggregation must be composite. aggregation = AggregationKind::composite
bool Port_aggregation(object diagnostics, object context)
Parameters
diagnostics
objectThe chain of diagnostics to which problems are to be appended.
context
objectThe cache of context-specific information.