origincomment
Class Base

java.lang.Object
  extended by origincomment.Base

public class Base
extends java.lang.Object

This class is a definition of a base in an "aligned or not" sequence.

Author:
Stéfan Engelen (2006) for coding..., Gabriel Chandesris (2008) for comments and makeing the code readable.
See Also:
ADN1cible.ADN1cible(String, String), ADN1cible.calcul_Resultat(ADN1test[], int, boolean, boolean), ADN1cible.copier(), ADN1cible.recherche_Palindrome(ADN1cible, int, int, int, ADN1test[], int, int, boolean, int), ADN1cible.recherche_Pseudonoeud(Base[], ADN1test[], boolean, int, int)

Field Summary
private  char acgt
          Base.
private  int position
          Position.
 
Constructor Summary
Base(char base, int position)
          Constructor with given base and position in the sequence.
 
Method Summary
 void change_base(char base)
          To set current base.
 void change_position(int pos)
          To set current position.
 char quelle_base()
          To get current base.
 int quelle_position()
          To get current position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

acgt

private char acgt
Base.


position

private int position
Position.

Constructor Detail

Base

public Base(char base,
            int position)
Constructor with given base and position in the sequence.

Parameters:
base - (char)
position - (int)
Method Detail

quelle_base

public char quelle_base()
To get current base.

Returns:
(char)

quelle_position

public int quelle_position()
To get current position.

Returns:
(int)

change_base

public void change_base(char base)
To set current base.

Parameters:
base - (char)

change_position

public void change_position(int pos)
To set current position.

Parameters:
pos - (int)