Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Multiple inheritance #8

Closed
dauryg opened this issue Jul 25, 2018 · 2 comments
Closed

Enhancement: Multiple inheritance #8

dauryg opened this issue Jul 25, 2018 · 2 comments

Comments

@dauryg
Copy link
Contributor

dauryg commented Jul 25, 2018

Allow derived nodes to be created from multiple defined base nodes.

for example with these base nodes:

{
    "name": "BaseNodeA",
    "isAbstract" : true,
    "properties": [
      {
        "name": "prop-from-baseA-1",
        "type": "string"
      },
      {
        "name": "prop-from-baseA-2",
        "type": "number"
      }
    ]
},
{
    "name": "BaseNodeB",
    "isAbstract" : true,
    "properties": [
      {
        "name": "prop-from-baseB-1",
        "type": "string"
      },
      {
        "name": "prop-from-baseB-2",
        "type": "number"
      }
    ]
}

and derived node:

{
    "name": "DerivedNode",
    "base": ["BaseNodeA", "BaseNodeB"]
}

would produce node:

{
    "name": "DerivedNode",
    "properties": [
      {
        "name": "prop-from-baseA-1",
        "type": "string"
      },
      {
        "name": "prop-from-baseA-2",
        "type": "number"
      },
      {
        "name": "prop-from-baseB-1",
        "type": "string"
      },
      {
        "name": "prop-from-baseB-2",
        "type": "number"
      }
    ]
}
@dauryg
Copy link
Contributor Author

dauryg commented Jul 25, 2018

I'll submit a pull request

dauryg added a commit to dauryg/owl-bt that referenced this issue Jul 27, 2018
dauryg added a commit to dauryg/owl-bt that referenced this issue Jul 27, 2018
@pruttned
Copy link
Owner

Thanks for your contribution. Its merged in 1.2.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants