GDS(Goop Development Suite)

cancel
Showing results for 
Search instead for 
Did you mean: 

Beginner questions

Solved!
Go to solution

I really like the OpenGDS project. I played around with it for a while now and I have some things I am not sure about.


The interfaces I see in OpenGDS examples are actually GOOP classes. Is a GOOP4 class fully compatible with native LV interfaces?

 

Is it really necessary to have static Create methods? Can't a dynamic dispatch Create method just call the parent's Create method from it's own Create method?

Actor Framework
0 Kudos
Message 1 of 6
(380 Views)
Solution
Accepted by topic author Quiztus2

@Quiztus2 wrote:

The interfaces I see in OpenGDS examples are actually GOOP classes. Is a GOOP4 class fully compatible with native LV interfaces?


I use Interfaces with GOOP classes a lot and never had any problem. Why should they be?

 

 

_____________________________________
www.azinterface.net - Interface-based multiple inheritance for LabVIEW OOP
0 Kudos
Message 2 of 6
(330 Views)
Is it really necessary to have static Create methods? Can't a dynamic dispatch Create method just call the parent's Create method from it's own Create method?

 What about the static named Create methods? Do you know the rational behind them?

 

Actor Framework
0 Kudos
Message 3 of 6
(316 Views)

Hi,
Those were added before NI added native interface support.
So you can ignore all those special Interface implementations.
We've removed the support for those special interface classes, but it looks like the examples is still there 🙂

0 Kudos
Message 4 of 6
(297 Views)
Solution
Accepted by topic author Quiztus2

The Create method have a name prefix of the class's name, to make sure it's unique.

That will prevent you from using, Call parent method.
In some framework you might like to use  Call Parent Method, and then you just need to rename it to “Create.vi” only.
If you think about it, a constructor of a class often needs to use different connector panes.
Two child classes of a Logger-Base class (e.g. FileLogger, CloudLogger) you need different inputs to the create, that means you can’t use dynamic dispatch.

Message 5 of 6
(295 Views)

Thanks for clarification. Your project is amazing.

Actor Framework
0 Kudos
Message 6 of 6
(288 Views)