TimelineDepthThread.java
Go to the documentation of this file.00001 package edu.rice.cs.hpc.traceviewer.depth;
00002
00003 import java.util.Queue;
00004 import java.util.concurrent.atomic.AtomicInteger;
00005
00006 import org.eclipse.core.runtime.IProgressMonitor;
00007
00008 import edu.rice.cs.hpc.traceviewer.data.db.DataPreparation;
00009 import edu.rice.cs.hpc.traceviewer.data.db.TimelineDataSet;
00010 import edu.rice.cs.hpc.traceviewer.data.graph.ColorTable;
00011 import edu.rice.cs.hpc.traceviewer.spaceTimeData.SpaceTimeDataController;
00012 import edu.rice.cs.hpc.traceviewer.timeline.BaseTimelineThread;
00013
00014 import edu.rice.cs.hpc.traceviewer.data.timeline.ProcessTimeline;
00015
00016
00017
00018
00019
00020
00021
00022 public class TimelineDepthThread
00023 extends BaseTimelineThread
00024 {
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035 public TimelineDepthThread(SpaceTimeDataController data,
00036 double scaleY, Queue<TimelineDataSet> queue,
00037 AtomicInteger timelineDone, boolean usingMidpoint, IProgressMonitor monitor)
00038 {
00039 super(data, scaleY, queue, timelineDone, usingMidpoint, monitor);
00040 }
00041
00042
00043 @Override
00044 protected ProcessTimeline getNextTrace() {
00045 return stData.getNextDepthTrace();
00046 }
00047
00048 @Override
00049 protected boolean init(ProcessTimeline trace) {
00050
00051 return true;
00052 }
00053
00054 @Override
00055 protected void finalize() {
00056 }
00057
00058 @Override
00059 protected DataPreparation getData(ColorTable colorTable,
00060 ProcessTimeline timeline, long timeBegin, int linenum, int height,
00061 double pixelLength, boolean midPoint) {
00062
00063 return new DepthDataPreparation(stData.getColorTable(),
00064 timeline, timeBegin,
00065 linenum, height, pixelLength, midPoint);
00066 }
00067 }