package username.genetics; /** * A metric for the costs of the various changes that must be made * when converting one string to another. * * @author Gene Geneticist * @author Gena Geneticist * @author Samuel A. Rebelsky * @version 1.0 of April 2006 */ public interface CostMetric { /** * The cost for deleting character sc from source. */ public int deleteCost(char sc); /** * The cost for inserting character tc into source. */ public int insertCost(char tc); /** * The cost for changing char sc of source to char tc of target. */ public int replaceCost(char sc, char tc); } // interface CostMetric