// 0 -> time scan
// 1 -> scan 1d
// 2 -> scan 2d
switch (scanType) {
case 0:
scanResult = new ScanResultImpl();
scanResult.setResultType(IScanResult.ResultType.RESULT_TIMESCAN);
break;
case 1:
scanResult = new ScanResult1DImpl();
scanResult.setResultType(IScanResult.ResultType.RESULT_1D);