-
Notifications
You must be signed in to change notification settings - Fork 0
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
[Documentation] Questions concerning MatchAdapter #35
Comments
I've added some explainations to the Javadocs regarding these questions. However, regarding number 2: I'm not sure where to put this information in the Javadocs however. Perhaps in the docs for the Graph API? |
Yes, the Graph API would make sense. Something I found confusing: Victory doesn't seem to distinguish between "rule" graphs, and "model" graphs. This means that model (match) graphs have properties (action) that don't really make sense... You should explain in the API how this stuff is handled (or perhaps introduce RuleGraph, ModelGraph? Or throw an exception?). Domains for model graphs is also strange (as it is more a rule concept -- some crazy tool might match source and target rule variables to the same model element). I agree, however, that simplicity is great... and the visualisation should not pose too many clever restrictions. |
Yes, Victory only knows graphs that have nodes and edges, and it offers a number of ways to customize how those nodes and edges are drawn. If we were very precise, then Victory shouldn't really have any concept of Domain or Action at all, as they are just indicators for the coloring of background and foreground, respectively. Ideally Victory should just ask the adapter for the foreground and background color of each node, and then the adapter can deal with concepts like domain and action, but I don't think that's a change we can get implemented properly by tomorrow. |
Final conclusion: it would be nice to use terms like "BackgroundColour", "ForegroundColour", etc as opposed to "Domain" and "Action"... |
I'm creating this as an issue so you know what questions your JavaDoc documentation should answer...
Concerning the getGraph method for MatchAdapters:
The text was updated successfully, but these errors were encountered: