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
In his current API implementation, the Moose API for MooseModel and MooseGroup does not let us add an entity and check if another instance is already inside its entity storage.
Current behavior
myMooseModel :=MooseModelnew.
"assuming that MyMooseObj has an id attribute"
myMooseModel
add: (MyMooseObjnewid:555; name:'Foo'; yourself).
myMooseModel entities." an OrderedCollection(a GLHProject #Foo)"
myMooseModel
addAll: {(MyMooseObjnewid:555; name:'Foo'; yourself). (MyMooseObjnewid:444; name:'Bar'; yourself) }.
myMooseModel entities." an OrderedCollection(a MyMooseObj #Foo a MyMooseObj #Foo a MyMooseObj #Bar)"
Proposed API
myMooseModel :=MooseModelnew.
myMooseModel
add: (MyMooseObjnewid:555; name:'Foo'; yourself).
myMooseModel entities." an OrderedCollection(a GLHProject #Foo)""add:unless:"
myMooseModel
addAll: {(MyMooseObjnewid:555; name:'Foo'; yourself). (MyMooseObjnewid:444; name:'Bar'; yourself) }
unless: [:existing : new| existing id =new id].
myMooseModel entities." an OrderedCollection(a MyMooseObj #Foo a MyMooseObj #Bar)"
The implementation of add:unless: and addAll:unless: are available in this repository.
In his current API implementation, the Moose API for
MooseModel
andMooseGroup
does not let us add an entity and check if another instance is already inside its entity storage.Current behavior
Proposed API
The implementation of
add:unless:
andaddAll:unless:
are available in this repository.This API could also be implemented for
FMSlotMultivalueLink
like in the following extensionThe text was updated successfully, but these errors were encountered: