All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.biojava.nbio.structure.align.seq.SmithWaterman3DParameters Maven / Gradle / Ivy

There is a newer version: 7.2.2
Show newest version
/*
 *                    BioJava development code
 *
 * This code may be freely distributed and modified under the
 * terms of the GNU Lesser General Public Licence.  This should
 * be distributed with the code.  If you do not have a copy,
 * see:
 *
 *      http://www.gnu.org/copyleft/lesser.html
 *
 * Copyright for this code is held jointly by the individual
 * authors.  These should be listed in @author doc comments.
 *
 * For more information on the BioJava project and its aims,
 * or to join the biojava-l mailing list, visit the home page
 * at:
 *
 *      http://www.biojava.org/
 *
 * Created on Jun 7, 2010
 * Author: ap3
 *
 */

package org.biojava.nbio.structure.align.seq;

import org.biojava.nbio.structure.align.ce.ConfigStrucAligParams;

import java.util.ArrayList;
import java.util.List;

public class SmithWaterman3DParameters implements ConfigStrucAligParams
{


	private short gapOpen ;
	private short gapExtend ;

	public SmithWaterman3DParameters(){
		reset();
	}



	@Override
	public List getUserConfigHelp()
	{
		List params =new ArrayList();
		params.add("The Gap open penalty");
		params.add("The Gap Extension penalty");



		// TODO Auto-generated method stub
		return params;
	}

	@Override
	public List getUserConfigParameterNames()
	{
		List params =new ArrayList();
		params.add("Gap Open");
		params.add("Gap Extension");


		return params;
	}

	@Override
	public List getUserConfigParameters()
	{
		List params =new ArrayList();
		params.add("GapOpen");
		params.add("GapExtend");

		return params;
	}

	@Override
	@SuppressWarnings("rawtypes")
	public List getUserConfigTypes()
	{
		List params = new ArrayList();
		params.add(Short.class);
		params.add(Short.class);

		return params;
	}

	@Override
	public void reset()
	{
		gapOpen = (short) 8;
		gapExtend = (short) 1;

	}


	public Short getGapExtend()
	{
		return gapExtend;
	}



	public void setGapExtend(Short gapExtend)
	{
		this.gapExtend = gapExtend;
	}



	public Short getGapOpen() {
		return gapOpen;
	}



	public void setGapOpen(Short gapOpen) {
		this.gapOpen = gapOpen;
	}




}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy