I'm currently working on a UML/SysML profile (using the Cameo Systems Modeler (NoMagic)).
I created two new stereotypes. One is a new relationship with the metaclass dependency «collaborates» and the other is a class stereotype called «SystemGroup».
I then added a derived attribute to the «SystemGroup» stereotype called "/size". The idea is that this property is derived by the number of Systems which are connected to the SystemGroup via the new «collaborates» stereotype.
I think that shouldn't be to difficult using OCL (or maybe even the Expressions of the tool?). I'm an absolute beginner in MBSE, the OCL specification and Google didn't help so far since the specification is really detailed and answers on google are mostly general like "a derived property is a property which is derived by a specific expression in OCL or other languages".
Can somebody help me or send me a link how to do some top level OCL for derived properties?
Thanks in advance!