Debian Codegraph @

current/assemble/ShaveObject.java

raw symbols SCIP
1 package assemble;
2
3 import java.io.PrintStream;
4
5 /**
6 * Holds constants for shaving.
7 * @author Brian Bushnell
8 * @date Jul 20, 2015
9 *
10 */
11 public abstract class ShaveObject {
12
13 /*--------------------------------------------------------------*/
14 /*---------------- Static Fields ----------------*/
15 /*--------------------------------------------------------------*/
16
17 /** Print messages to this stream */
18 static PrintStream outstream=System.err;
19
20 public static final int contigMode=0;
21 public static final int extendMode=1;
22 public static final int correctMode=2;
23 public static final int insertMode=3;
24 public static final int discardMode=4;
25
26 /** Explore codes */
27 public static final int KEEP_GOING=0, DEAD_END=1, TOO_SHORT=2, TOO_LONG=3, TOO_DEEP=4, LOOP=7, SUCCESS=8;
28 /** Branch codes */
29 public static final int BRANCH_BIT=16, F_BRANCH=BRANCH_BIT|1, B_BRANCH=BRANCH_BIT|2, D_BRANCH=BRANCH_BIT|3;
30
31 public static final boolean isBranchCode(int code){return (code&BRANCH_BIT)==BRANCH_BIT;}
32
33 /** Extend codes */
34 public static final int BAD_OWNER=11, BAD_SEED=12/*, BRANCH=13*/;
35
36 public static final int STATUS_UNEXPLORED=0, STATUS_EXPLORED=1, STATUS_REMOVE=2, STATUS_KEEP=3;
37
38 public static final String[] codeStrings=new String[] {
39 "KEEP_GOING", "DEAD_END", "TOO_SHORT", "TOO_LONG", "TOO_DEEP", "5",
40 "6", "LOOP", "SUCCESS", "9", "10",
41 "BAD_OWNER", "BAD_SEED", "BRANCH", "14", "15",
42 "BRANCH", "F_BRANCH", "B_BRANCH", "D_BRANCH"
43 };
44
45 public static final int MAX_CODE=codeStrings.length;
46
47 public static boolean printEventCounts=false;
48
49 /** Verbose messages */
50 public static boolean verbose=false;
51 /** Debugging verbose messages */
52 public static boolean verbose2=false;
53
54 }