A .tra file is just a very simple format to store a Markov chain or MDP
in a file. It is specific to PRISM so other software will not support it
directly, but the format is very simple so you could easily translate to
a .tra file from another format.
The key question is where you get the model itself from, i.e. what the
states and transition probabilities are. In PRISM, you do this by
writing a model in the PRISM modelling language. I guess you have a
different source of Markov models in mind. In what format are your
Markov chains currently?
Dave.
http://www.prismmodelchecker.org/manual/RunningPRISM/ExplicitModelImport
The format of the tra file is a plain text file. The first line contains
the number of states and transitions. Subsequent lines list the
transitions in the form "x y p" where x and y are 0-indexed state
indices for the source/target and p is a probability. Here is a simple
example:
6 9
0 1 0.5
0 3 0.5
1 0 0.5
1 2 0.25
1 4 0.25
2 5 1
3 3 1
4 4 1
5 2 1
It should be straightforward to write a script to convert your data into
this form.
Regards,