This page has examples for the use of Cyan metaobjects with treplica. Note that the example that are in the article itself are not here. Currently, the Cyan compiler only works on Windows (sorry about that).
This last directory has subdirectories
app cyanMetaobjects meta treplica jar lib
treplica is subdirectory of
meta that is subdirectory of
cyanMetaobjects. The Java code of the metaobjects
nonDeterministic are inside directory
treplica. To change these metaobjects or to compile them, read the primer on how to build metaobjects.
To test the examples, open a DOS command prompt and make
D:\ the current drive. Create a directory
D:\treplica\tmpDirs and subdirectories
Go to directory
Now there are four examples, calculator, rogue, treplica, verify. To call them, copy each the following commands to the DOS prompt:
start /wait call-exem calculator "D:\treplica\projeto" "D:\treplica\lib" "\treplica\tmpDirs"
start /wait call-exem rogue "D:\treplica\projeto" "D:\treplica\lib" "\treplica\tmpDirs"
start /wait call-exem treplica "D:\treplica\projeto" "D:\treplica\lib" "\treplica\tmpDirs"
start /wait call-exem verify "D:\treplica\projeto" "D:\treplica\lib" "\treplica\tmpDirs"
Do not put the drive letter in the last directory. That is, do not use this: