SatisfactionSubjectAccessor
- class SatisfactionSubjectAccessor
-
Members defined in
SatisfactionSubjectAccessor(4 members)
RThe target of this satisfaction subject.
Set a new owned
member_element, ownership constraints apply. Replaces the previousmember_element, which may be reused by the model.name_idhas no effect since theelementis always taken ownership of.
Set the target to a referenced
Feature.
Set the reference to a chain of
Features. Replaces the previoustarget.Members inherited from
OwnedMemberAccessor(1 member)
Constructs a new
member_elementwith the default type if thismemberis empty, otherwise does nothing.Members inherited from
MemberAccessor(5 members)
RThe
member_elementof thismemberif it is not empty.
RThe
membershipof thismemberif it is not empty.
Extract the
member_elementleaving thismemberempty. Note that not all emptymembersare valid textual syntax. This does not check that the model is left in a valid state.
Remove the
member_elementleaving thismemberempty. Note that not all emptymembersare valid textual syntax. This does not check that the model is left in a valid state. Attributes
- property target: syside.Feature | None
The target of this satisfaction subject.
Methods
- set_member_element(element: syside.SatisfactionSubjectAccessor.set_member_element.M, name: syside.NameID = ...) tuple[syside.SubjectMembership, syside.SatisfactionSubjectAccessor.set_member_element.M]
Set a new owned
member_element, ownership constraints apply. Replaces the previousmember_element, which may be reused by the model.name_idhas no effect since theelementis always taken ownership of.Returns a pair of (
membership,member_element) wheremember_elementiselement.
- set_member_element(element: syside.SatisfactionSubjectAccessor.set_member_element.M | None, name: syside.NameID = ...) tuple[syside.SubjectMembership, syside.SatisfactionSubjectAccessor.set_member_element.M] | None
set_member_elementoverload that will remove the member element ifelementisNone, otherwise the behaviour is the same.
- set_member_element(element: type[syside.SatisfactionSubjectAccessor.set_member_element.M]) tuple[syside.SubjectMembership, syside.SatisfactionSubjectAccessor.set_member_element.M]
Constructs a new empty
member_elementwith the provided type. Replaces the previousmember_element. Because a new element is always constructed, ownership constraints do not apply.Returns a pair of (
membership,member_element).
- set_target(element: syside.SatisfactionSubjectAccessor.set_target.T, name: syside.NameID = ...) tuple[syside.Membership, syside.SatisfactionSubjectAccessor.set_target.T]
Set the target to a referenced
Feature.Returns a pair of (
membership,target).
- set_target(element: syside.SatisfactionSubjectAccessor.set_target.T | None, name: syside.NameID = ...) tuple[syside.Membership, syside.SatisfactionSubjectAccessor.set_target.T] | None
set_targetoverload that will remove the target element ifelementisNone, otherwise the behaviour is the same.
- set_target_chain(arg: Sequence[syside.Feature], /) tuple[syside.OwningMembership, syside.Feature]
Set the reference to a chain of
Features. Replaces the previoustarget.Returns a pair of (
membership,member_element) wheremember_elementis theFeaturewith ownedFeatureChainingsto the providedFeatureswith order preserved.