Home
Random
Recent changes
Special pages
Community portal
Preferences
About Intino
Disclaimers
Intino
Search
User menu
Talk
Contributions
Log in
Editing
Magritte
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Saving Information to the Graph ==== Whenever you save a root node, all root nodes associated with the stash of that node are saved as well. You also have the option to save a particular stash or all stashes. This ensures that your graph's data is consistently updated and preserved. Below is a code example for saving stashes: Car car1 = carGraph.car(0); car1.save$(); carGraph.core$().save("car1"); carGraph.core$().saveAll(); First line is retrieving the first car of the graph. This is a wrapped graph (see Wrapping section) in which you can retrieve all the root elements that were declared in the model. In the second line we are saving this node and all the nodes that are in the same stash. The third line is equivalent to the second line but in this case we are making explicit that we want to save the stash "car1". Note we use the "core$" function to access low level functions of the graph. Also under core$ we have the option to save the whole graph by using saveAll as it can be seen in the last line.
Summary:
Please note that all contributions to Intino may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Intino:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)