origincomment
Class Case

java.lang.Object
  extended by origincomment.Case

public class Case
extends java.lang.Object

An element of the matrix of score ?

Author:
Stéfan Engelen (2006) for coding..., Gabriel Chandesris (2008) for comments and makeing the code readable.

Field Summary
static int ALIGN
          Operation ALIGN is 4
static int AUCUNE
          Operation AUCUNE (no one) is 0.
private  boolean deja_choisi
          Already choose.
static int DELETION
          Operation DELETION is 2.
static int INSERTION
          Operation INSERTION is 1.
private  int operation
          Operation.
private  int score
          Score.
private  int score_normal
          Normal Score.
 
Constructor Summary
Case()
          Default constructor.
Case(int sc, int scnorm)
          Deprecated. [never used]
Case(int sc, int scnorm, int ope)
          Deprecated. [never used]
 
Method Summary
 void change_choisi(boolean bool)
           
 void change_operation(int ope)
           
 void change_score_normal(int sc)
           
 void change_score(int sc)
           
 boolean choisi()
           
 int quel_score_normal()
           
 int quel_score()
           
 int quelle_operation()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

AUCUNE

public static final int AUCUNE
Operation AUCUNE (no one) is 0.

See Also:
Constant Field Values

INSERTION

public static final int INSERTION
Operation INSERTION is 1.

See Also:
Constant Field Values

DELETION

public static final int DELETION
Operation DELETION is 2.

See Also:
Constant Field Values

ALIGN

public static final int ALIGN
Operation ALIGN is 4

See Also:
Constant Field Values

score

private int score
Score.


score_normal

private int score_normal
Normal Score.


deja_choisi

private boolean deja_choisi
Already choose.


operation

private int operation
Operation.

See Also:
AUCUNE, ALIGN, DELETION, INSERTION
Constructor Detail

Case

public Case()
Default constructor. Choice is false. Scores are 0. Operation is AUCUNE.

See Also:
Matrice_ALN.initialiser()

Case

public Case(int sc,
            int scnorm)
Deprecated. [never used]

Constructor with given scores. Choice is false and operation is AUCUNE.

Parameters:
sc - (int) score
scnorm - (int) normal score

Case

public Case(int sc,
            int scnorm,
            int ope)
Deprecated. [never used]

Constructor with given socre and operation. Choice is false.

Parameters:
sc - (int) score
scnorm - (int) normal score
ope - (int) operation
Method Detail

quel_score

public int quel_score()

quel_score_normal

public int quel_score_normal()

choisi

public boolean choisi()

quelle_operation

public int quelle_operation()

change_score

public void change_score(int sc)

change_score_normal

public void change_score_normal(int sc)

change_choisi

public void change_choisi(boolean bool)

change_operation

public void change_operation(int ope)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object