testssuite02
Class AlignedSequences

java.lang.Object
  extended by modele.ObjectListe
      extended by modele.SequenceListe
          extended by testssuite02.AlignedSequences
Direct Known Subclasses:
Alignedalphad, Alignedtmrna, Alignedtrna

public class AlignedSequences
extends SequenceListe

This class to provide some records of sets of tests aligned sequences.
Singleton Design Pattern
DO NOT use directly this class!

Since:
August 2008
Author:
Gabriel Chandesris (2008)

Field Summary
protected static AlignedSequences localinstance
          The local set of aligned sequences.
 
Constructor Summary
AlignedSequences()
           
 
Method Summary
static ADN1test[] conversionFrom(SequenceListe liste)
          Conversion of a set of sequences listes to a tab of ADN1test's
static java.util.Vector conversionFrom(SequenceListe[] listes)
          Conversion of a set of sequences listes to a vector of tabs of ADN1test's
static ADN1cible convertFrom(Sequence cible)
          To get a "cible sequence" from an instance of Sequence.
static ADN1test convertFrom(Sequence cible, int diff)
          To get a "test sequence" from an instance of Sequence.
static AlignedSequences getAlignedSequences()
          To get the original set of aligned sequences.
static AlignedSequences getAlignment()
           
 
Methods inherited from class modele.SequenceListe
addSequence, clone, combinationWithoutRepetition, combinatoire, computeAverageVariabilite, equals, factorielle, getListe, getMoyenneVariabilite, getSequence, getSequence, has, isIn, length, removeSequence, removeSequence, setListe, setSequence, sortByDecreasing, sortByIncreasing
 
Methods inherited from class modele.ObjectListe
addObjet, equals, getListeObjects, getObject, has, removeObject, removeObject, setListe, setObject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

localinstance

protected static AlignedSequences localinstance
The local set of aligned sequences.

Constructor Detail

AlignedSequences

public AlignedSequences()
Method Detail

getAlignedSequences

public static AlignedSequences getAlignedSequences()
To get the original set of aligned sequences.

Returns:
(AlignedSequences)

getAlignment

public static AlignedSequences getAlignment()

conversionFrom

public static java.util.Vector conversionFrom(SequenceListe[] listes)
Conversion of a set of sequences listes to a vector of tabs of ADN1test's

Parameters:
listes - (SequenceListe[])
Returns:
(Vector) Vector of tabs of ADN1tests
See Also:
ADN1test, Sequence, SequenceListe, controller

conversionFrom

public static ADN1test[] conversionFrom(SequenceListe liste)
Conversion of a set of sequences listes to a tab of ADN1test's

Parameters:
liste - (SequenceListe)
Returns:
(ADN1test[]) Tab of ADN1tests
See Also:
ADN1test, Sequence, SequenceListe

convertFrom

public static ADN1cible convertFrom(Sequence cible)
To get a "cible sequence" from an instance of Sequence.

Parameters:
cible - (Sequence)
Returns:
(ADN1cible)

convertFrom

public static ADN1test convertFrom(Sequence cible,
                                   int diff)
To get a "test sequence" from an instance of Sequence.

Parameters:
cible - (Sequence)
diff - (int) [unused]
Returns:
(ADN1test)