|
MASA-Core
|
00001 /******************************************************************************* 00002 * 00003 * Copyright (c) 2010-2015 Edans Sandes 00004 * 00005 * This file is part of MASA-Core. 00006 * 00007 * MASA-Core is free software: you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation, either version 3 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * MASA-Core is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with MASA-Core. If not, see <http://www.gnu.org/licenses/>. 00019 * 00020 ******************************************************************************/ 00021 00022 #ifndef BLOCKALIGNERPARAMETERS_HPP_ 00023 #define BLOCKALIGNERPARAMETERS_HPP_ 00024 00025 00026 #include "AbstractAlignerParameters.hpp" 00027 00028 #define MAX_GRID_SIZE 1024 00029 #define MAX_BLOCK_SIZE 1024*20 00030 #define MIN_GRID_SIZE 1 00031 #define MIN_BLOCK_SIZE 128 00032 00033 /** 00034 * This class contains the parameters for the AbstractBlockAligner. 00035 */ 00036 class BlockAlignerParameters : public AbstractAlignerParameters { 00037 00038 private: 00039 /** Number of column of blocks */ 00040 int gridWidth; 00041 00042 /** Number of rows of blocks */ 00043 int gridHeight; 00044 00045 /** Height of one block */ 00046 int blockHeight; 00047 00048 /** Width of one block. 0 indicates variable */ 00049 int blockWidth; 00050 00051 public: 00052 BlockAlignerParameters(); 00053 virtual ~BlockAlignerParameters(); 00054 00055 /** 00056 * @see AbstractAlignerParameters::processArgument() method. 00057 */ 00058 virtual int processArgument(int argc, char** argv); 00059 00060 /** 00061 * Prints the usage text in the command line. 00062 */ 00063 virtual void printUsage() const; 00064 00065 int getBlockHeight() const; 00066 int getBlockWidth() const; 00067 int getGridWidth() const; 00068 int getGridHeight() const; 00069 }; 00070 00071 00072 #endif /* BLOCKALIGNERPARAMETERS_HPP_ */
1.7.6.1