FeatureValue SysML
- class FeatureValue
Implementation of
FeatureValuedefined in the KerML specification.Specification:
A
FeatureValueis aMembershipthat identifies a particular memberExpressionthat provides the value of theFeaturethat owns theFeatureValue. The value is specified as either a bound value or an initial value, and as either a concrete or default value. AFeaturecan have at most oneFeatureValue.The result of the
valueExpressionis bound to thefeature_with_valueusing aBindingConnector. Ifis_initial = false, then thefeaturing_typeof theBindingConnectoris the same as thefeaturing_typeof thefeature_with_value. Ifis_initial = true, then thefeaturing_typeof theBindingConnectoris restricted to itsstart_shot.If
is_default = false, then the above semantics of theFeatureValueare realized for the givenfeature_with_value. Otherwise, the semantics are realized for any individual of thefeaturing_typeof thefeature_with_value, unless another value is explicitly given for thefeature_with_valuefor that individual.For language description, see section 7.4.11 of the KerML specification. For more details on the model, see section 8.3.4.10.2 of the KerML specification.
Members defined in
FeatureValue(5 members)
R
RThe Feature to be provided a value.
RWWhether this
FeatureValueis a concrete specification of the bound or initial value of thefeature_with_value, or just a default value that may be overridden.
RWWhether this
FeatureValuespecifies a bound value or an initial value for thefeature_with_value.
RThe Expression that provides the value as a result.
Members inherited from
OwningMembership(4 members)
RThe
Elementthat becomes anowned_memberof themembership_owning_namespacedue to thisOwningMembership.
RThe
element_idof theowned_member_element.
RThe
nameof theowned_member_element.
RThe
short_nameof theowned_member_element.Members inherited from
Membership(10 members)
RThe elements enclosed by curly brackets in textual syntax.
RWReturns
Trueif thisMembershipwas parsed fromInitialNodesyntax rule.
RThe
Elementthat becomes amemberof themembership_owning_namespacedue to thisMembership.
RThe
element_idof themember_element.
RThe name of the
member_elementrelative to themembership_owning_namespace.
RThe short name of the
member_elementrelative to themembership_owning_namespace.
RThe
Namespaceof which themember_elementbecomes amemberdue to thisMembership.
RThe related_element of this Relationship that owns the Relationship, if any.
RThe
related_elements from which this Relationship is considered to be directed.
RThe
related_elementsto which this Relationship is considered to be directed.Members inherited from
Relationship(9 members)
RConvenience method for sources[0].
RConvenience method for targets[0].
RWWhether this Relationship was generated by tooling to meet semantic rules, rather than being directly created by a modeler.
RReturns
Trueif thisRelationshipis using implicit visibility.
RThe related_elements of this Relationship that are owned by the Relationship.
RThe Elements that are related by this Relationship, derived as the union of the
sourceandtargetElements of the Relationship.
RWThe visibility level of the related elements from this
Relationshiprelative to theowning_related_element.
Members inherited from
Element(23 members)
RThe owned
Commentsrelated byowned_relationships.
RWThe declared name of this
Element.
RWAn optional alternative name for the
Elementthat is intended to be shorter or in some way more succinct than its primaryname. It may act as a modeler-specified identifier for theElement, though it is then the responsibility of the modeler to maintain the uniqueness of this identifier within a model or relative to some other context.
RThe Documentation owned by this Element.
RW- The globally unique identifier for this Element. This is intended to be
set by tooling, and it must not change during the lifetime of the Element.
RWhether all necessary implied Relationships have been included in the
owned_relationshipsof this Element. This property may be true, even if there are not actually anyowned_relationshipswithis_implied = true, meaning that no such Relationships are actually implied for this Element. However, if it is false, thenowned_relationshipsmay not contain any implied Relationships. That is, either all required implied Relationships must be included, or none of them.
RWhether this Element is contained in the ownership tree of a library model.
RThe owned metadata related by
owned_relationships.
RThe name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_name()operation. By default, it is the same as thedeclared_name, but this is overridden for certain kinds ofElementsto compute anameeven when thedeclared_nameis null.
RThe
owned_relationshipsof thisElementthat areAnnotations, for which thisElementis theannotated_element.
RThe Elements owned by this Element, derived as the owned_related_elements of the owned_relationships of this Element.
RThe Relationships for which this Element is the owning_related_element.
RThe owner of this Element, derived as the
owning_related_elementof theowning_relationshipof this Element, if any.
RThe
owning_relationshipof thisElement, if thatRelationshipis aMembership.
RThe
Namespacethat owns thisElement, which is themembership_owning_namespaceof theowning_membershipof thisElement, if any.
RThe Relationship for which this Element is an owned_related_element, if any.
RThe full ownership-qualified name of this
Element, represented in a form that is valid according to the KerML textual concrete syntax for qualified names (including use of unrestricted name notation and escaped characters, as necessary). Thequalified_nameis null if thisElementhas noowning_namespaceor if there is not a complete ownership chain of namedNamespacesfrom a rootNamespaceto thisElement.
RThe owner of this
Elementas the parent ofowning_membershiporowning_relationshipotherwise.
RWThe state of semantic resolution for this
Element. Based on this, sema may skip elements to avoid duplicate work, e.g. when resolving elements in a group of related documents.
RThe short name to be used for this
Elementduring name resolution within itsowning_namespace. This is derived using theeffective_short_name()operation. By default, it is the same as thedeclared_short_name, but this is overridden for certain kinds ofElementsto compute ashort_nameeven when thedeclared_nameis null.
RThe
TextualRepresentationsthat annotate thisElement.
Members inherited from
AstNode(7 members) Attributes
- STD: tuple[type[syside.FeatureValue], ...] = ()
- property feature_with_value: syside.Feature | None
The Feature to be provided a value.
The
Featureto be provided a value.
- property is_default: bool
Whether this
FeatureValueis a concrete specification of the bound or initial value of thefeature_with_value, or just a default value that may be overridden.
- property is_initial: bool
Whether this
FeatureValuespecifies a bound value or an initial value for thefeature_with_value.
- property value: syside.Expression | None
The Expression that provides the value as a result.
The
Expressionthat provides the value of thefeature_with_valueas itsresult.