You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On some classes we encounter special rules regarding some attributes which then need to be dealt with in for example the used Accessor's methods like __get__ and __set__, __delete__, ... (for the change API). This probably is a big reason why there are so many different Accessor's, looking at you CustomAccessor. The idea will be presented in a response by @Wuestengecko. Here follows a list of encountered special cases for notation:
cs.Parts xmltag are non-unique and depend on their parent's class: If the parent is a ComponentPkg the xmltag is ownedParts, under Components it has ownedFeatures. The latter which is shared by ComponentPorts,
exchanges have non-None.source and .target attributes else they are broken,
A Component has atleast one Part,
Some is_actor, is_abstract and is_human rules,
...
The implementation of validation rules could reduce the amount of Accessor's and lessen the complexity of our infrastructure.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
On some classes we encounter special rules regarding some attributes which then need to be dealt with in for example the used Accessor's methods like
__get__and__set__,__delete__, ... (for the change API). This probably is a big reason why there are so many different Accessor's, looking at youCustomAccessor. The idea will be presented in a response by @Wuestengecko. Here follows a list of encountered special cases for notation:cs.Parts xmltag are non-unique and depend on their parent's class: If the parent is aComponentPkgthe xmltag isownedParts, underComponents it hasownedFeatures. The latter which is shared byComponentPorts,None.sourceand.targetattributes else they are broken,Componenthas atleast onePart,is_actor,is_abstractandis_humanrules,The implementation of validation rules could reduce the amount of Accessor's and lessen the complexity of our infrastructure.
Beta Was this translation helpful? Give feedback.
All reactions