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

Separate plugins and type conversion from graph #112

Open
moaxcp opened this issue Apr 13, 2018 · 0 comments
Open

Separate plugins and type conversion from graph #112

moaxcp opened this issue Apr 13, 2018 · 0 comments

Comments

@moaxcp
Copy link
Owner

moaxcp commented Apr 13, 2018

Graphs are tightly coupled to type and plugins. A new design for graph to make it strongly typed would be more useful outside of the dsl.

There would be classes for Graph, DirectedGraph, and DirectedAcyclicGraph.

The dsl can delegate to a spec object rather than graph. It can handle type conversions and plugins while using strongly typed objects.

class GraphDsl {
     Graph graph

    ...missing goes to plugins then graph...

    void plugin(String name) //add plugin methods to this
    void type(String type)  // change type of graph
}
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

1 participant