In my application, I model a decision diagram (nodes+connections). I have model classes ready (two basic classes: Node and Connection + subclasses for special cases). This diagram gets very big and keeping track of all the connections and nodes only through code is not easy (and take into account future maintenance). I was wondering if there’s a tool (Eclipse plugin or other) that I could feed with my model classes (i.e. types of nodes, types of connections), use it to “draw” the diagram graphically (making nodes and connections) and then generate the code of the diagram?
Model classes:
Node: contains List<Connection> of all connections FROM this node
Connection: Node from, Node to
EDIT:
I want to generate a method that initializes all the needed nodes and connections (Node and Connection objects) and returns the head/start node. This in-memory structure is then traversed by the application when it makes decisions.
Sounds a bit like you want something like jgraph? http://www.jgraph.com/jgraph.html