001/*
002 *                    BioJava development code
003 *
004 * This code may be freely distributed and modified under the
005 * terms of the GNU Lesser General Public Licence.  This should
006 * be distributed with the code.  If you do not have a copy,
007 * see:
008 *
009 *      http://www.gnu.org/copyleft/lesser.html
010 *
011 * Copyright for this code is held jointly by the individual
012 * authors.  These should be listed in @author doc comments.
013 *
014 * For more information on the BioJava project and its aims,
015 * or to join the biojava-l mailing list, visit the home page
016 * at:
017 *
018 *      http://www.biojava.org/
019 *
020 */
021
022
023package org.biojava.bio.dp;
024
025import java.io.Serializable;
026
027import org.biojava.bio.Annotation;
028import org.biojava.bio.symbol.FundamentalAtomicSymbol;
029
030/**
031 * A Dot state that you can make and use.
032 * <p>
033 * Dot states emit no sequence. They are there purely to make the wireing
034 * of the model look neater, and to cut down the number of combinatorial
035 * transitions that can so easily swamp models.
036 *
037 * @author Matthew Pocock
038 * @author Thomas Down
039 */
040public class SimpleDotState
041extends FundamentalAtomicSymbol implements DotState, Serializable {
042  /**
043   * Construct a new state with the specified name and annotation.
044   * The token parameter is ignored but included for compatibility.
045   *
046   * @deprecated token is ignored since 1.2.  Use the 2-arg constructor instead.
047   */
048    
049  public SimpleDotState(char token, String name, Annotation annotation) {
050    super(name, annotation);
051  }
052  
053  /**
054   * Construct a new state with the specified name and annotation
055   */
056    
057  public SimpleDotState(String name, Annotation annotation) {
058    super(name, annotation);
059  }
060  
061  public SimpleDotState(String name) {
062    super(name, Annotation.EMPTY_ANNOTATION);
063  }
064}