A specification has a name and a root module, which
is in a file whose extension is .tla
.
You will probably give your spec the same name as its root module, but
you need not.
Two different specs cannot have the same name. Here are the Toolbox's
spec operations.
Warning: if you want to use the model checker,
your spec must not contain a module named MC
.
.tla
) and the specification name.
Note: here's how to change the name of both a spec and its root module from
Foo
to Bar
: Rename spec
Foo
to Bar
, save module Foo
as module Bar
(using the File/Save As
command), Forget module Bar
, and Open a new spec named
Bar
with module Bar
as its root module.
Here is how to move an existing spec named SName to a different folder (directory) on the same computer, or to a different computer. Copy all the spec's module files (the root-module file and its imported module files) and the folder (directory) named SName.toolbox to the new location. (If you're using TLAPS, also copy the directory SName.tlaps.)
If there is already a spec named SName (which will be the case if you're moving the spec to a different place on the same computer), have the Toolbox forget or delete it. Open a new specification named SName using the new copy of the root-module file.
You may want to run the Toolbox on different machines for the same spec. Once you've created a spec on one machine, copy the spec's module files and .toolbox directory to the other machine and use the instructions above to create a copy of the spec on that machine. The Toolbox can get confused if a spec or its models is modified from from outside the Toolbox. So, here's how to import changes to a spec or its models from another computer onto the computer you're now using.
If you forget to close the spec before externally modifying its files, closing the spec and refreshing it may solve the problem. If it doesn't, see Getting Out of Trouble.