ktmprabhu / spray

Automatically exported from code.google.com/p/spray
0 stars 0 forks source link

smart connections #270

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
When we have for example a petrinet with the 2 elements place and transition 
with the restrictions, that we can connect these elements only in this way:

Place -->Transition
Transition --> Place

This affects, that we have to define 2 Connections in the spray-dsl - that’s 
not the problem, but in the Graphiti-Editor we need also 2 connections. So, a 
smart connection would be nice, which is able to choose the right and valid 
connection from the spray-dsl --> only one connection needed in the 
Graphiti-Editor.  

Current Situation:

Node
Place -> Node
Transition -> Node
Edge 
PlaceToTransitionEdge -> Edge (from : Place, to : Transition)
TransitionToPlaceEdge -> Edge (from : Transition, to : Place)

Desired Situation:

Node
Place -> Node
Transition -> Node
Edge (from : Node {1: Place, 2: Transition }, to : Node {1: Transition, 2: 
Place })

Original issue reported on code.google.com by lethi...@gmail.com on 22 Jun 2013 at 12:18