Mercurial > repos > rliterman > csp2
comparison CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/current/consensus/BaseGraphPart.java @ 68:5028fdace37b
planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author | jpayne |
---|---|
date | Tue, 18 Mar 2025 16:23:26 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
67:0e9998148a16 | 68:5028fdace37b |
---|---|
1 package consensus; | |
2 | |
3 import java.io.Serializable; | |
4 | |
5 /** | |
6 * Superclass for BaseEdge and BaseNode. | |
7 * | |
8 * @author Brian Bushnell | |
9 * @date September 6, 2019 | |
10 * | |
11 */ | |
12 public abstract class BaseGraphPart extends ConsensusObject implements Serializable { | |
13 | |
14 /** | |
15 * | |
16 */ | |
17 private static final long serialVersionUID = 3854022870880887972L; | |
18 | |
19 /*--------------------------------------------------------------*/ | |
20 /*---------------- Initialization ----------------*/ | |
21 /*--------------------------------------------------------------*/ | |
22 | |
23 public BaseGraphPart(int type_){ | |
24 type=type_; | |
25 assert(type==REF || type==INS || type==DEL) : type; | |
26 } | |
27 | |
28 /*--------------------------------------------------------------*/ | |
29 /*---------------- Methods ----------------*/ | |
30 /*--------------------------------------------------------------*/ | |
31 | |
32 /** Name of this type */ | |
33 public final String typeString(){ | |
34 return TYPE_NAMES[type]; | |
35 } | |
36 | |
37 /** Name of this part */ | |
38 public abstract String partString(); | |
39 | |
40 /*--------------------------------------------------------------*/ | |
41 /*---------------- Fields ----------------*/ | |
42 /*--------------------------------------------------------------*/ | |
43 | |
44 /** Type of this part */ | |
45 public final int type; | |
46 | |
47 } |