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

com.vmlens.trace.agent.bootstrap.interleave.normalized.PotentialOrderSingle Maven / Gradle / Ivy

There is a newer version: 1.1.5
Show newest version
package com.vmlens.trace.agent.bootstrap.interleave.normalized;

public class PotentialOrderSingle implements PotentialOrder {

	private final LeftBeforeRight a;
	private final LeftBeforeRight b;
	
	public PotentialOrderSingle(LeftBeforeRight a, LeftBeforeRight b) {
		super();
		this.a = a;
		this.b = b;
	}

	@Override
	public String toString() {
		return "PotentialOrder [a=" + a + ", b=" + b + "]";
	}

	@Override
	public void addEdge(GraphNode[][] graph, boolean takeA) {
		
		if(takeA)
		{
			OrderedList.addEdge(graph,a.left , a.right);
		}
		else
		{
			OrderedList.addEdge(graph,b.left , b.right);
		}
		
		
		
	}
	
	
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy