All Downloads are FREE. Search and download functionalities are using the official Maven repository.

prerna.ds.export.gexf.AbstractGexfIterator Maven / Gradle / Ivy

The newest version!
package prerna.ds.export.gexf;

import java.util.HashMap;
import java.util.Map;

public abstract class AbstractGexfIterator implements IGexfIterator {

	// string containing the nodes and its properties
	protected String nodeMap;
	protected String[] nodeMapSplit;
	protected int nodeIndex = 0;
	
	// string containing the edges and their properties
	protected String edgeMap;
	protected String[] edgeMapSplit;
	protected int edgeIndex = 0;
	
	// map containing the alias to apply to nodes
	protected Map aliasMap;
	
	/**
	 * Default constructor for the gexf iterator
	 * @param selectorMap
	 * @param edgeMap
	 * @param aliasMap
	 */
	public AbstractGexfIterator(String nodeMap, String edgeMap, Map aliasMap) {
		this.nodeMap = nodeMap;
		this.edgeMap = edgeMap;
		this.aliasMap = aliasMap;
		
		if(this.nodeMap == null) {
			this.nodeMap = "";
		}
		if(this.edgeMap == null) {
			this.edgeMap = "";
		}
		if(this.aliasMap == null) {
			this.aliasMap = new HashMap();
		}
		
		this.nodeMapSplit = this.nodeMap.split(";");
		this.edgeMapSplit = this.edgeMap.split(";");
	}
	
	@Override
	public String getStartString() {
		return ""
				+ ""
				+ "";
	}
	
	@Override
	public String getEndString() {
		return "";
	}
	
	@Override
	public String getNodeStart() {
		return "";
	}
	
	@Override
	public String getNodeEnd() {
		return "";
	}
	
	@Override
	public String getEdgeStart() {
		return "";
	}
	
	@Override
	public String getEdgeEnd() {
		return "";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy