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

de.twenty11.skysail.common.graphs.EdgeDetails Maven / Gradle / Ivy

package de.twenty11.skysail.common.graphs;

public class EdgeDetails {

	private String label;

	private String source;

	private String target;

	private int weight;

	public EdgeDetails() {
        // TODO Auto-generated constructor stub
    }
	
	public EdgeDetails(String label, String source, String target) {
		this(label, source, target, 0);
	}
	
	public String getLabel() {
        return label;
    }
	public void setLabel(String label) {
        this.label = label;
    }
	public String getSource() {
        return source;
    }
	public void setSource(String source) {
        this.source = source;
    }
	public String getTarget() {
        return target;
    }
	public void setTarget(String target) {
        this.target = target;
    }
	public int getWeight() {
        return weight;
    }
	public void setWeight(int weight) {
        this.weight = weight;
    }

	public EdgeDetails(String label, String source, String target,
			int weight) {
		this.label = label;
		this.source = source;
		this.target = target;
		this.weight = weight;
	}

	@Override
	public String toString() {
		StringBuffer sb = new StringBuffer();
		sb.append(label).append(": ");
		sb.append(source).append(" -(").append(weight).append(")-> ");
		sb.append(target).append("\n");
		return sb.toString();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy