예제 #1
0
 @Override
 public void complement() {
   final char base = getChar();
   switch (base) {
     case 'A':
       setChar('T');
       break;
     case 'T':
       setChar('A');
       break;
     case 'G':
       setChar('C');
       break;
     case 'C':
       setChar('G');
       break;
   }
 }
예제 #2
0
 public void set(final Base base) {
   switch (base) {
     case A:
       setChar('A');
       return;
     case T:
       setChar('T');
       return;
     case G:
       setChar('G');
       return;
     case C:
       setChar('C');
       return;
     case gap:
       setChar(' ');
       return;
     default:
       setChar('N');
       return;
   }
 }
예제 #3
0
 // this is the constructor if you want it to be a variable
 public BasePairCharType(final char value) {
   img = null;
   dataAccess = new CharArray(1);
   setChar(value);
 }