|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
controller.ProcessusOrigin
public class ProcessusOrigin
Attention / take care !
This controller is used on the old code made
by Stefan Engelen in 2006 (latest version got) for the web interface...
No garanty are given to the results and good work of algorithms as work
has been done on it to fix problems and gett same results !
Seen also tests testsorigin
to know exactly some uses and limits.
Main controler ; interaction between modele (algorithms implementation)
and viewing with JSP/web pages.
Some uses of new model (2008) for conversion and use of JSP/HTML pages.
Conversion are made here for comprehension, control of work and tests.
Some "XXX BLACKBOX warning" in the code due to use of Vector... (java 1.4 => 1.5 and changes).
Compilation could be done with flags [-source 1.4 -target 1.4] (1)
Compilation could be done with flags [-source 1.4 -target 1.4] (2)
Processus_old
,
Processus
,
ADN1cible
,
ADN1test
,
Palindrome1cible
,
Palindrome
,
PalindromeListe
,
PalindromeListeListe
,
Sequence
,
SequenceListe
,
Fichier
,
FichierFasta
,
Serialized FormField Summary | |
---|---|
private int |
maxPredictions
|
private boolean |
muchpredictions
|
private boolean |
searchPseudoknots
|
private static long |
serialVersionUID
Servlet serial Number (42). |
Constructor Summary | |
---|---|
ProcessusOrigin()
|
Method Summary | |
---|---|
static java.lang.String |
alignmentRecord(java.lang.String alignement)
Making the recording of alignment in a file. |
static void |
computing(java.util.Vector tabsadn,
ADN1cible adncible,
boolean morePrediction,
boolean searchPseudoknots)
Computing the main algorithm made by Stefan Engelen. |
static java.util.Vector |
conversionFrom(ADN1test adntcible,
SequenceListe[] listes)
Conversion of a set of sequences listes to a vector of tabs of ADN1test's and put the target sequence at position 0 on each table. |
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 Do not forget that target sequence must be on position 0 of each table ! |
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. |
private static java.lang.String |
decoupeString(java.lang.String chaineDecoupe)
This method to cut a String by 80 characters length substring. |
void |
doGet(javax.servlet.http.HttpServletRequest requete,
javax.servlet.http.HttpServletResponse reponse)
To prevent from reload pages of accession without any "normal use". |
void |
doPost(javax.servlet.http.HttpServletRequest requete,
javax.servlet.http.HttpServletResponse reponse)
To obtain data from POST form. |
private static PalindromeListeListe |
getRecordingStructures(ADN1cible adncible)
To get the recording structure in a good conversion format. |
static java.lang.String |
getScreenToSee(java.util.Vector tabsadn,
ADN1cible adncible)
Working about what will be on screen |
static java.lang.String |
getScreenToSeeHTML(java.util.Vector tabsadn,
ADN1cible adncible)
Working about what will be on screen |
private static java.lang.String |
getScriptDestination(int numInterface)
To get the page where to go... |
private static void |
setValues(ADN1cible adncible,
boolean optimal,
int maximumPredictions,
boolean searchingPseudoknots)
To be sure that good values are set as parameters... |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private boolean muchpredictions
private int maxPredictions
private boolean searchPseudoknots
Constructor Detail |
---|
public ProcessusOrigin()
Method Detail |
---|
public void doGet(javax.servlet.http.HttpServletRequest requete, javax.servlet.http.HttpServletResponse reponse)
doGet
in class javax.servlet.http.HttpServlet
Processus.doPost(HttpServletRequest, HttpServletResponse)
public void doPost(javax.servlet.http.HttpServletRequest requete, javax.servlet.http.HttpServletResponse reponse)
doPost
in class javax.servlet.http.HttpServlet
requete
- HttpServletRequestreponse
- HttpServletResponseprivate static void setValues(ADN1cible adncible, boolean optimal, int maximumPredictions, boolean searchingPseudoknots)
adncible
- (ADN1cible)optimal
- (boolean) if true : incertitude == 0.0 else : 0.05maximumPredictions
- (int) maximum number of predictionssearchingPseudoknots
- (boolean) if searching pseudoknots or not...private static PalindromeListeListe getRecordingStructures(ADN1cible adncible)
adncible
- (ADN1cible)
public static java.util.Vector conversionFrom(SequenceListe[] listes)
listes
- (SequenceListe[])
ADN1test
,
Sequence
,
SequenceListe
,
controller
public static java.util.Vector conversionFrom(ADN1test adntcible, SequenceListe[] listes)
listes
- (SequenceListe[])
ADN1test
,
Sequence
,
SequenceListe
,
controller
public static ADN1test[] conversionFrom(SequenceListe liste)
liste
- (SequenceListe)
ADN1test
,
Sequence
,
SequenceListe
public static ADN1cible convertFrom(Sequence cible)
cible
- (Sequence)
public static ADN1test convertFrom(Sequence cible, int diff)
cible
- (Sequence)diff
- (int) [unused]
public static void computing(java.util.Vector tabsadn, ADN1cible adncible, boolean morePrediction, boolean searchPseudoknots)
tabsadn
- (Vector) Vector of tabs of ADN1testsadncible
- (ADN1test)morePrediction
- (boolean) if more than one structure as result or notsearchPseudoknots
- (boolean) Searching pseudoknots or notconversionFrom(SequenceListe[])
,
getRecordingStructures(ADN1cible)
,
getScreenToSee(Vector, ADN1cible)
public static java.lang.String getScreenToSee(java.util.Vector tabsadn, ADN1cible adncible)
tabsadn
- (Vector) vector of tabs of palindromesadncible
- (ADN1cible)
public static java.lang.String getScreenToSeeHTML(java.util.Vector tabsadn, ADN1cible adncible)
tabsadn
- (Vector) vector of tabs of palindromesadncible
- (ADN1cible)
private static java.lang.String getScriptDestination(int numInterface)
numInterface
- number of the page
public static java.lang.String alignmentRecord(java.lang.String alignement)
alignement
- (String)
FichierFasta
private static java.lang.String decoupeString(java.lang.String chaineDecoupe)
chaineDecoupe
- (String)
Processus.doPost(HttpServletRequest, HttpServletResponse)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |