Im looking to establish relationships between "formulae" and its "variables" in a super effective way...
And I'd want this behavior to be dynamic, to be established at runtime, hence I'm having a data model that supports it would be very very helpful.
Consider einsteins equation here..
I could add Energy(einsteins) as ParentObject, it has two child entities - mass and lightspeed. (E = mc^2)
Ofcourse, calculation part would be done later.. But,
What If the child (mass) would be derived from another two variables
Mass = Volume * Density. In this case, all three are essentially "child" entities.
Which is why i add a to-many relationship child ----->>child and named it "sub child" though it should be "associatedChild" relationship.
When fetching and Einstain, I would want Mass to be replaced by Volume X Density. or perhaps return those two child, even though einstein isn't directly related with Volume and density.
Another could be Velocity as a ParentObject, which will have U(early speed), Aceleration and Timetaken as child entities. (v= u+at)
Then again, all of them can be child entities, With some math relationships with each other reducing the parentEntity to only be a fancy name .. like "bernoilli's principle," pythagoras . .etc..
Basically i want to establish physical variable relationships with themselves without the need to have a "Parent" entity.
I hope you get the point, i really need help here..
thanks