_Group
- class compas_fea2.model._Group[source]
Bases:
FEAData,Generic[_MemberType]Base class for all groups.
- Parameters:
- member_classtype
The type that all members of this group must conform to.
- membersIterable, optional
An iterable containing members belonging to the group. Default is None.
- Attributes:
membersSet[_MemberType]Return the members of the group.
- members_classtype
The expected class type for all members in this group.
- partAny
Reference to the parent Part, if applicable.
- modelAny
Reference to the parent Model, if applicable.
Methods
Add a single member to the group.
Add multiple members to the group.
Clear all members from the group.
Create a new group containing members that are in this group but not in another.
Group members into multiple subgroups based on a key function.
Create a new group containing only members that are present in both groups.
Remove a member from the group.
Remove multiple members from the group.
Return the members of the group sorted based on a custom key function.
Create a subgroup based on a given condition.
Return the members of the group as a list.
Create a new group containing all members from this group and another group.
Return a new group containing only unique members.
Inherited Methods
Converts the instance to a string.
Make an independent copy of the data object.
Construct an object of this type from a JSON file.
Construct an object of this type from a JSON string.
Compute a hash of the data for comparison during version control using the sha256 algorithm.
Convert an object to its native data representation and save it to a JSON file.
Convert an object to its native data representation and save it to a JSON string.
Validate the data against the object's data schema.