Hello, is there a nice way of getting some sort of hash representation of a node (that would include children etc)?...
This is an auto-generated question from the MPS Slack community: Hello, is there a nice way of getting some sort of hash representation of a node (that would include children etc)?
5 comments
Sort by
Date
Votes
I guess you would calculate it by traversal/visiting of SNode.getProperties + SNode.getChildren + SNode.getConcept , but maybe I am missing some other important data
I think, Slack user:U6L4B9THU> implemented something for the modelix analog to the git hashes
You can use com.mbeddr.mpsutil.serializer.xml.serializer.NodeSerializer to serialize a node into a string before computing the hash.
Awesome, thanks both!
This is auto-generated question from the MPS Community Slack Workspace. If you want to comment on the question, do it from the Slack workspace
Post is closed for comments.