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

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

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



import java.util.Iterator;

import com.vmlens.trace.agent.bootstrap.util.TLinkableWrapper;

import gnu.trove.list.linked.TLinkedList;
import gnu.trove.set.hash.THashSet;

public class RelationArray {

	public final TLinkableWrapper[] array; 
	public final TLinkedList> startOrders;
	public final TLinkedList> joinThread;
	
	//public final THashSet expectedJoins;
	
	
	public RelationArray(TLinkableWrapper[] array,
			TLinkedList> startOrders, TLinkedList> joinThread) {
		super();
		this.array = array;
		this.startOrders = startOrders;
		this.joinThread = joinThread;
		
//		THashSet expect = new THashSet ();
//		
//		Iterator> it = joinThread.iterator();
//		
//		while( it.hasNext() )
//		{
//			TLinkableWrapper current= it.next();
//			expect.add( current.element.right );
//			
//		}
//		
//		expectedJoins = expect;
		
		
	}



	int length()
	{
		return array.length;
	}


	static RelationArray create(TLinkedList> potentialOrders,	TLinkedList> startOrders, TLinkedList> joinThread )
	{
		return new RelationArray ((TLinkableWrapper[]) potentialOrders
				.toArray(new TLinkableWrapper[0]), startOrders, joinThread);
	}
	
	
	
}





© 2015 - 2025 Weber Informatics LLC | Privacy Policy