diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/opt/bbmap-39.01-1/current/consensus/BaseGraphPart.java	Tue Mar 18 16:23:26 2025 -0400
@@ -0,0 +1,47 @@
+package consensus;
+
+import java.io.Serializable;
+
+/**
+ * Superclass for BaseEdge and BaseNode.
+ * 
+ * @author Brian Bushnell
+ * @date September 6, 2019
+ *
+ */
+public abstract class BaseGraphPart extends ConsensusObject implements Serializable {
+	
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 3854022870880887972L;
+	
+	/*--------------------------------------------------------------*/
+	/*----------------        Initialization        ----------------*/
+	/*--------------------------------------------------------------*/
+
+	public BaseGraphPart(int type_){
+		type=type_;
+		assert(type==REF || type==INS || type==DEL) : type;
+	}
+	
+	/*--------------------------------------------------------------*/
+	/*----------------            Methods           ----------------*/
+	/*--------------------------------------------------------------*/
+	
+	/** Name of this type */
+	public final String typeString(){
+		return TYPE_NAMES[type];
+	}
+
+	/** Name of this part */
+	public abstract String partString();
+	
+	/*--------------------------------------------------------------*/
+	/*----------------            Fields            ----------------*/
+	/*--------------------------------------------------------------*/
+	
+	/** Type of this part */
+	public final int type;
+	
+}