gt: 	protected String getCommand() {
context: /*
   * Copyright (C) 2015  Vincibean <Andre Bessi>
   * 
   *  This program is free software: you can redistribute it and/or modify
   *  it under the terms of the GNU General Public License as published by
   *  the Free Software Foundation, either version 3 of the License, or
   *  (at your option) any later version.
   *  
   *  This program is distributed in the hope that it will be useful,
   *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   *  GNU General Public License for more details.
   *  
   *  You should have received a copy of the GNU General Public License
   *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
   */
  
  package it.mad.ext.r;
  
  import it.mad.ext.r.preferences.RMADPreferenceProvider;
  
  import java.util.ArrayList;
  import java.util.Collection;
  import org.knime.core.data.DataTableSpec;
  import org.knime.core.data.DoubleValue;
  import org.knime.core.node.BufferedDataTable;
  import org.knime.core.node.ExecutionContext;
  import org.knime.core.node.InvalidSettingsException;
  import org.knime.core.node.NodeSettingsRO;
  import org.knime.core.node.NodeSettingsWO;
  import org.knime.core.node.defaultnodesettings.SettingsModelBoolean;
  import org.knime.core.node.defaultnodesettings.SettingsModelFilterString;
  import org.knime.core.node.defaultnodesettings.SettingsModelInteger;
  import org.knime.core.node.defaultnodesettings.SettingsModelIntegerBounded;
  import org.knime.core.node.defaultnodesettings.SettingsModelString;
  import org.knime.core.node.port.PortObject;
  
  /**
   * This is the model implementation of RMAD_clara.
   * Computes a "clara" object, a list representing a clustering of the data into k clusters. 
   *
   * @author Andre Bessi, University of Milan Bicocca
   */
  public class RMAD_claraNodeModel extends RMADCoreNodeModel {
  
  	/***********************************/
  	/** Constant for the inport index. */
  	/***********************************/
  	public static final int IN_PORT = 0;
  
  
  	/***********************************/
  	/** Constants for the ColumnFilter */
  	/***********************************/
  
  	/** the identifier the values are stored with in the NodeSettings object*/
  	static final String m_defaultTabTitle = "configName";
  
  	static final Collection<String> m_inclList = new ArrayList<String>();
  
  	static final Collection<String> m_exclList = new ArrayList<String>();
  
  	private final SettingsModelFilterString m_filter = 
  			new SettingsModelFilterString(
  					RMAD_claraNodeModel.m_defaultTabTitle, 
  					RMAD_claraNodeModel.m_inclList, 
  					RMAD_claraNodeModel.m_exclList);
  
  
  	/*****************************************************************/
  	/** Constants for the DialogComponentNumber (number of clusters) */
  	/*****************************************************************/
  
  	/** The settings key which is used to retrieve and 
      store the settings (from the dialog or from a settings file)    
     (package visibility to be usable from the dialog). */
  	static final String CFGKEY_COUNT_CLUSTERS = "Clusters_Number";
  
  	/** Initial default count value. */
  	static final int DEFAULT_COUNT_CLUSTERS = 5;
  
  	/** Minimum value. */
  	static final int K_MIN_VALUE = 0;
  
  	/** Maximum value. */
  	static final int K_MAX_VALUE = Integer.MAX_VALUE;
  
  	private final SettingsModelIntegerBounded m_count =
  			new SettingsModelIntegerBounded(RMAD_claraNodeModel.CFGKEY_COUNT_CLUSTERS,
  					RMAD_claraNodeModel.DEFAULT_COUNT_CLUSTERS,
  					RMAD_claraNodeModel.K_MIN_VALUE, 
  					RMAD_claraNodeModel.K_MAX_VALUE);
  
  	/********************************************/
  	/** Constants for the Button Group (metric) */
  	/********************************************/
  
  	static final String CFGKEY_STRING = "Metric";
  
  	static final String EUCLIDEAN_VALUE = "euclidean";
  
  	static final String MANHATTAN_VALUE = "manhattan";
  
  	static final String[] METRIC_ELEMENTS = {EUCLIDEAN_VALUE, MANHATTAN_VALUE} ;
  
  	private final SettingsModelString m_metric =
  			new SettingsModelString(RMAD_claraNodeModel.CFGKEY_STRING,
  					RMAD_claraNodeModel.EUCLIDEAN_VALUE);
  
  
  	/***************************************************/
  	/** Constants for the SettingsModelBoolean (stand) */
  	/***************************************************/
  
  	static final String CFGKEY_BOOLEAN_STAND = "Stand";
  
  	private final SettingsModelBoolean m_stand = new SettingsModelBoolean(
  			RMAD_claraNodeModel.CFGKEY_BOOLEAN_STAND, 
  			false);
  
  
  	/******************************************************/
  	/** Constants for the DialogComponentNumber (samples) */
  	/******************************************************/
  
  	static final String CFGKEY_COUNT_SAMPLES = "Samples_Number";
  
  	/** Initial default count value. */
  	static final int DEFAULT_COUNT_SAMPLES = 5;
  
  	private final SettingsModelInteger m_samples = new SettingsModelInteger(
  			RMAD_claraNodeModel.CFGKEY_COUNT_SAMPLES, 
  			RMAD_claraNodeModel.DEFAULT_COUNT_SAMPLES);
  
  
  	/*******************************************************/
  	/** Constants for the DialogComponentNumber (sampsize) */
  	/*******************************************************/
  
  	static final String CFGKEY_COUNT_SAMPSIZE = "Sampsize";
  
  	/** Initial default count value. */
  	static final int DEFAULT_COUNT_SAMPSIZE = 40 + 2*DEFAULT_COUNT_CLUSTERS;
  
  	/** Minimum value. */
  	static final int SAMPSIZE_MIN_VALUE = 0;
  
  	/** Maximum value. */
  	static final int SAMPSIZE_MAX_VALUE = Integer.MAX_VALUE;
  
  	private final SettingsModelIntegerBounded m_sampsize = new SettingsModelIntegerBounded(
  			RMAD_claraNodeModel.CFGKEY_COUNT_SAMPSIZE,
  			RMAD_claraNodeModel.DEFAULT_COUNT_SAMPSIZE,
  			RMAD_claraNodeModel.SAMPSIZE_MIN_VALUE, 
  			RMAD_claraNodeModel.SAMPSIZE_MAX_VALUE);
  
  
  	/****************************************************/
  	/** Constants for the DialogComponentNumber (trace) */
  	/****************************************************/
  
  	static final String CFGKEY_COUNT_TRACE = "Trace_Number";
  
  	/** Initial default count value. */
  	static final int DEFAULT_COUNT_TRACE = 0;
  
  	private final SettingsModelInteger m_trace = new SettingsModelInteger(
  			RMAD_claraNodeModel.CFGKEY_COUNT_TRACE, 
  			RMAD_claraNodeModel.DEFAULT_COUNT_TRACE);
  
  	/*******************************************************/
  	/** Constants for the SettingsModelBoolean (medoids.x) */
  	/*******************************************************/
  
  	static final String CFGKEY_BOOLEAN_MEDOIDS = "medoids.x";
  
  	private final SettingsModelBoolean m_medoids = new SettingsModelBoolean(
  			RMAD_claraNodeModel.CFGKEY_BOOLEAN_MEDOIDS, 
  			true);
  
  	/*******************************************************/
  	/** Constants for the SettingsModelBoolean (keep.data) */
  	/*******************************************************/
  
  	static final String CFGKEY_BOOLEAN_KEEP_DATA = "keep.data";
  
  	private final SettingsModelBoolean m_keepData = new SettingsModelBoolean(
  			RMAD_claraNodeModel.CFGKEY_BOOLEAN_KEEP_DATA, 
  			false);
  
  	/**************************************************/
  	/** Constants for the SettingsModelBoolean (rngR) */
  	/**************************************************/
  
  	static final String CFGKEY_BOOLEAN_RNGR = "rngR";
  
  	private final SettingsModelBoolean m_rngR = new SettingsModelBoolean(
  			RMAD_claraNodeModel.CFGKEY_BOOLEAN_RNGR, 
  			false);
  
  	/*****************************************************/
  	/** Constants for the SettingsModelBoolean (pamLike) */
  	/*****************************************************/
  
  	static final String CFGKEY_BOOLEAN_PAMLIKE = "pamLike";
  
  	private final SettingsModelBoolean m_pamLike = new SettingsModelBoolean(
  			RMAD_claraNodeModel.CFGKEY_BOOLEAN_PAMLIKE, 
  			false);
  
  
  
  	/**
  	 * Creates new instance of <code>RMAD_claraNodeModel</code> with one
  	 * data in and data one out port.
  	 * @param pref R preference provider
  	 */
  	public RMAD_claraNodeModel(final RMADPreferenceProvider pref) {
  		super(pref);
  	}
  	
  	@Override
  