I'm making a graph, and I want to make a system for specifying the conditions to transition between nodes along an edge. I am unsure of what the method signature should look like, since different transitions will have different parameters.
So the 2 functions of interest are these:
-addEdge(NSString* firstState, NSString* secondState,NSString* edgeName, block (?))
-(bool)transition(NSString* edgeName, parameters (?) ... )
addEdge() passes in a block that defines the transition condition between firstState and secondState, and gives it a name.
transition() takes in a list of parameters and applies them to the block associated with the edge name.
What should the method signatures look like, in this case?