70 SpaceTimeDataController::SpaceTimeDataController(
FileData* locations)
79 height = dataTrace->getNumberOfRanks();
80 experimentXML = locations->
fileXML;
82 tracesInitialized =
false;
87 void SpaceTimeDataController::setInfo(
Time _minBegTime,
Time _maxEndTime,
90 minBegTime = _minBegTime;
91 maxEndTime = _maxEndTime;
92 headerSize = _headerSize;
97 int SpaceTimeDataController::getNumRanks()
102 string SpaceTimeDataController::getExperimentXML()
104 return experimentXML;
109 if (attributes->lineNum
110 < min(attributes->numPixelsV, attributes->endProcess - attributes->begProcess))
113 minBegTime + attributes->begTime, headerSize);
114 attributes->lineNum++;
123 cerr <<
"Saving a null PTL?" << endl;
124 traces[NextPtl->
line()] = NextPtl;
128 void SpaceTimeDataController::fillTraces()
136 while (nextTrace !=
NULL)
139 addNextTrace(nextTrace);
141 nextTrace = getNextTrace();
145 int* SpaceTimeDataController::getValuesXProcessID()
147 return dataTrace->getProcessIDs();
149 short* SpaceTimeDataController::getValuesXThreadID()
151 return dataTrace->getThreadIDs();
154 void SpaceTimeDataController::resetTraces()
157 int numTraces = min(attributes->numPixelsV,
158 attributes->endProcess - attributes->begProcess);
163 tracesLength = numTraces;
164 tracesInitialized =
true;
167 void SpaceTimeDataController::applyFilters(
FilterSet filters)
169 dataTrace->setFilters(filters);
171 void SpaceTimeDataController::deleteTraces()
173 if (tracesInitialized) {
175 for (
int var = 0; var < tracesLength; var++)
177 delete (traces[var]);
182 tracesInitialized =
false;
184 SpaceTimeDataController::~SpaceTimeDataController()