be.ac.ulg.montefiore.run.jahmm.draw
Class GenericHmmDrawerDot

java.lang.Object
  extended by be.ac.ulg.montefiore.run.jahmm.draw.GenericHmmDrawerDot

public class GenericHmmDrawerDot
extends java.lang.Object

An HMM to dot file converter. See http://www.research.att.com/sw/tools/graphviz/ for more information on the dot tool.

The command dot -Tps -o <outputfile> <inputfile> should produce a Postscript file describing an HMM.


Field Summary
protected  double minimumAij
           
protected  double minimumPi
           
protected  java.text.NumberFormat probabilityFormat
           
 
Constructor Summary
GenericHmmDrawerDot()
           
 
Method Summary
protected  java.lang.String beginning()
           
protected  java.lang.String convert(H hmm)
           
protected  java.lang.String ending()
           
protected  java.lang.String opdfLabel(H hmm, int stateNb)
           
protected  java.lang.String states(H hmm)
           
protected  java.lang.String transitions(Hmm<?> hmm)
           
 void write(H hmm, java.lang.String filename)
          Writes a dot file depicting the given HMM.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

minimumAij

protected double minimumAij

minimumPi

protected double minimumPi

probabilityFormat

protected java.text.NumberFormat probabilityFormat
Constructor Detail

GenericHmmDrawerDot

public GenericHmmDrawerDot()
Method Detail

convert

protected java.lang.String convert(H hmm)

beginning

protected java.lang.String beginning()

transitions

protected java.lang.String transitions(Hmm<?> hmm)

states

protected java.lang.String states(H hmm)

opdfLabel

protected java.lang.String opdfLabel(H hmm,
                                     int stateNb)

ending

protected java.lang.String ending()

write

public void write(H hmm,
                  java.lang.String filename)
           throws java.io.IOException
Writes a dot file depicting the given HMM.

Parameters:
hmm - The HMM to depict.
filename - The resulting 'dot' file filename.
Throws:
java.io.IOException


Copyright © 2004,2005 Jean-Marc François.