Debian Codegraph @

current/consensus/BaseGraphPart.java

raw symbols SCIP
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 }