Hello, is there a nice way of getting some sort of hash representation of a node (that would include children etc)?... Follow
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

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

Comment actions
Permalink
I think, Slack user:U6L4B9THU> implemented something for the modelix analog to the git hashes

Comment actions
Permalink
You can use com.mbeddr.mpsutil.serializer.xml.serializer.NodeSerializer to serialize a node into a string before computing the hash.

Comment actions
Permalink
Awesome, thanks both!

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
Post is closed for comments.