Newer
Older
MagnetRON / src / org / ntlab / deltaViewer / DeltaObjectCallGraph.java
package org.ntlab.deltaViewer;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

import org.ntlab.deltaExtractor.ExtractedStructure;
import org.ntlab.trace.MethodExecution;
import org.ntlab.trace.Reference;
import org.ntlab.trace.TracePoint;

public class DeltaObjectCallGraph implements IObjectCallGraph {
	private List<Reference> references = new ArrayList<>();
	private List<MethodExecution> startPoints = new ArrayList<>();
	private List<TracePoint> relatedPoints = new ArrayList<>();

	public DeltaObjectCallGraph(ExtractedStructure e) {
		references.addAll(e.getDelta().getSrcSide());
		references.addAll(e.getDelta().getDstSide());
		startPoints.add(e.getCoordinator());
		relatedPoints.add(e.getRelatedTracePoint());
	}

	@Override
	public List<Reference> getReferences() {
		return references;
	}

	@Override
	public List<MethodExecution> getStartPoints() {
		return startPoints;
	}

	@Override
	public List<TracePoint> getRelatedPoints() {
		// TODO Auto-generated method stub
		return relatedPoints;
	}

	@Override
	public Map<MethodExecution, List<MethodExecution>> getCallTree() {
		// TODO Auto-generated method stub
		return null;
	}
}