Source
xxxxxxxxxx
94
94
#endif
95
95
dbus_thread->join( );
96
96
delete dbus_thread;
97
97
dbus_thread = NULL;
98
98
}
99
99
LogIO os( LogOrigin("SynthesisIterBot","destructor",WHERE) );
100
100
os << LogIO::DEBUG1 << "SynthesisIterBot destroyed" << LogIO::POST;
101
101
SynthesisUtilMethods::getResource("End SynthesisIterBot");
102
102
}
103
103
104
-
void SynthesisIterBot::setIterationDetails(Record iterpars) {
104
+
void SynthesisIterBot::setIterationDetails(const Record &iterpars) {
105
105
LogIO os( LogOrigin("SynthesisIterBot","setIterationDetails",WHERE) );
106
106
try {
107
107
108
108
//itsLoopController.reset( new SIIterBot("SynthesisImage_"));
109
109
if ( itsLoopController ) itsLoopController->setControlsFromRecord(iterpars);
110
110
111
111
} catch(AipsError &x) {
112
112
throw( AipsError("Error in updating iteration parameters : " + x.getMesg()) );
113
113
}
114
114
}
131
131
try {
132
132
if ( itsLoopController )
133
133
returnRecord = itsLoopController->getSummaryRecord();
134
134
} catch(AipsError &x) {
135
135
throw( AipsError("Error in retrieving iteration parameters : " + x.getMesg()) );
136
136
}
137
137
return returnRecord;
138
138
}
139
139
140
140
141
-
void SynthesisIterBot::setupIteration(Record iterpars) {
141
+
void SynthesisIterBot::setupIteration(const Record &iterpars) {
142
142
LogIO os( LogOrigin("SynthesisIterBot","setupIteration",WHERE) );
143
143
os << "Set Iteration Control Options" << LogIO::POST;
144
144
try {
145
145
setIterationDetails(iterpars);
146
146
} catch(AipsError &x) {
147
147
throw( AipsError("Error in setting iteration parameters : "+x.getMesg()) );
148
148
}
149
149
} //end of setupIteration
150
150
151
151
void SynthesisIterBot::setInteractiveMode(Bool interactiveMode) {
210
210
}
211
211
returnRecord = itsLoopController->getMinorCycleControls();
212
212
}
213
213
214
214
} catch(AipsError &x) {
215
215
throw( AipsError("Error in constructing SubIterBot : "+x.getMesg()) );
216
216
}
217
217
return returnRecord;
218
218
}
219
219
220
-
void SynthesisIterBot::startMinorCycle(Record& initializationRecord) {
220
+
void SynthesisIterBot::startMinorCycle(const Record& initializationRecord) {
221
221
try {
222
222
LogIO os( LogOrigin("SynthesisIterBot",__FUNCTION__,WHERE) );
223
223
if ( itsLoopController )
224
224
itsLoopController->mergeCycleInitializationRecord(initializationRecord);
225
225
} catch(AipsError &x) {
226
226
throw( AipsError("Error in running Minor Cycle : "+x.getMesg()) );
227
227
}
228
228
}
229
229
230
-
void SynthesisIterBot::endMinorCycle(Record& executionRecord) {
230
+
void SynthesisIterBot::endMinorCycle(const Record& executionRecord) {
231
231
try {
232
232
//SISubIterBot loopController(subIterBotRecord);
233
233
LogIO os( LogOrigin("SynthesisIterBot",__FUNCTION__,WHERE) );
234
234
if ( itsLoopController )
235
235
itsLoopController->mergeCycleExecutionRecord(executionRecord);
236
236
} catch(AipsError &x) {
237
237
throw( AipsError("Error in running Minor Cycle : "+x.getMesg()) );
238
238
}
239
239
}
240
240
257
257
}
258
258
}
259
259
260
260
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
261
261
//// SynthesisIterBotWithOldGUI code starts.
262
262
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
263
263
264
264
SynthesisIterBotWithOldGUI::SynthesisIterBotWithOldGUI() :
265
265
SynthesisIterBot(), itsInteractiveMasker( ) {
266
266
}
267
-
void SynthesisIterBotWithOldGUI::setIterationDetails(Record iterpars) {
267
+
void SynthesisIterBotWithOldGUI::setIterationDetails(const Record &iterpars) {
268
268
LogIO os( LogOrigin("SynthesisIterBot","setIterationDetails",WHERE) );
269
269
try {
270
270
271
271
////////////////////////////////////////////////////////////////////////////////////////////////////////
272
272
///// START : code to get a list of image names for interactive masking
273
273
274
274
// Setup interactive masking : list of image names.
275
275
if( itsImageList.nelements()==0 ) {
276
276
if( iterpars.isDefined("allimages") ) {
277
277
Record allnames = iterpars.subRecord(RecordFieldId("allimages"));