1 package jalview.datamodel;
4 * An enumeration of the kinds of mapping (from nucleotide or peptide, to
5 * nucleotide or peptide), and the corresponding word lengths
7 public enum MappingType
9 NucleotideToPeptide(3, 1)
12 public MappingType getInverse()
14 return PeptideToNucleotide;
17 PeptideToNucleotide(1, 3)
20 public MappingType getInverse()
22 return NucleotideToPeptide;
25 NucleotideToNucleotide(1, 1)
28 public MappingType getInverse()
30 return NucleotideToNucleotide;
33 PeptideToPeptide(1, 1)
36 public MappingType getInverse()
38 return PeptideToPeptide;
42 private int fromRatio;
46 private MappingType(int fromSize, int toSize)
52 public abstract MappingType getInverse();
54 public int getFromRatio()
59 public int getToRatio()