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
Comment actions Permalink
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
0
Comment actions Permalink
I think, Slack user:U6L4B9THU> implemented something for the modelix analog to the git hashes
0
Comment actions Permalink
You can use com.mbeddr.mpsutil.serializer.xml.serializer.NodeSerializer to serialize a node into a string before computing the hash.
0
Comment actions Permalink
Awesome, thanks both!
0
Comment actions Permalink
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
0

Post is closed for comments.