package net.seninp.jmotif.sax.alphabet; import net.seninp.jmotif.sax.SAXException; /** * The Alphabet class template. * * @author Pavel Senin. * */ public abstract class Alphabet { /** * get the max size of the alphabet. * * @return maximum size of the alphabet. */ public abstract Integer getMaxSize(); /** * Get cut intervals corresponding to the alphabet size. * * @param size The alphabet size. * @return cut intervals for the alphabet. * @throws SAXException if error occurs. */ public abstract double[] getCuts(Integer size) throws SAXException; /** * Get the distance matrix for the alphabet size. * * @param size The alphabet size. * @return The distance matrix. * @throws SAXException if error occurs. */ public abstract double[][] getDistanceMatrix(Integer size) throws SAXException; }