Override of methods
Posted: 12 Jun 2021, 12:41
Hello,
while working with the UaModeler to create custom models for a specific use case, I came to a logic question.
Scenario:
I created a new information model structure within the object type tree. As a result of that we have different departments in our company with different requirements, the structure looks something like that:
MainType
>>>BodyShopSpecific
>>>PaintShopSpecific
Now I specified methods in the MainType with the structure:
Method
>InputArgument1
>InputArgument2
Now I want to inherit them in the BodyShopSpecific with the Override functionality. Following that, the InputArgument1 and InputArgument2 completely disappear in the BodyShopSpecific type and are not inherited. For every other entity, like objects and variables, sub-structures are inherited.
Logic question: Do you strictly use here the rule of Polymorphism from object-oriented programming? For the workflow, it makes in my eyes not that much sense, as you can easily forget it to only create the InputArguments for methods.
Thanks in advance for your thoughts!
Greetings,
RKM
while working with the UaModeler to create custom models for a specific use case, I came to a logic question.
Scenario:
I created a new information model structure within the object type tree. As a result of that we have different departments in our company with different requirements, the structure looks something like that:
MainType
>>>BodyShopSpecific
>>>PaintShopSpecific
Now I specified methods in the MainType with the structure:
Method
>InputArgument1
>InputArgument2
Now I want to inherit them in the BodyShopSpecific with the Override functionality. Following that, the InputArgument1 and InputArgument2 completely disappear in the BodyShopSpecific type and are not inherited. For every other entity, like objects and variables, sub-structures are inherited.
Logic question: Do you strictly use here the rule of Polymorphism from object-oriented programming? For the workflow, it makes in my eyes not that much sense, as you can easily forget it to only create the InputArguments for methods.
Thanks in advance for your thoughts!
Greetings,
RKM