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

de.tsl2.nano.util.ActivityGraph Maven / Gradle / Ivy

Go to download

TSL2 Framework Commons (Collections, Actions/Excecution, Readers, Xml, Print, Mail, FuzzyFinder, Proxies, Network-Structure)

There is a newer version: 2.5.2
Show newest version
package de.tsl2.nano.util;

import java.util.function.Function;

import de.tsl2.nano.core.ENV;

public class ActivityGraph extends GraphLog {

	public ActivityGraph(String name) {
		super(name);
	}

	public ActivityGraph(String name, Function styler) {
		super(name, styler);
	}
	
	@Override
	protected String gravizStart() {
		return "";
	}
	@Override
	public GraphLog add(Object node, Object dest, Object descriptor) {
		graph.append("\"" + node + "\" --> [" + descriptor + "]  \"" + dest + "\"\n");
		return this;
	}
	public String getFileName() {
		return ENV.getConfigPath() + name + "-activity.md.html";
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy