001    /**
002     *  "TRMSim-WSN, Trust and Reputation Models Simulator for Wireless
003     * Sensor Netowrks" is free software: you can redistribute it and/or
004     * modify it under the terms of the GNU Lesser General Public License
005     * as published by the Free Software Foundation, either version 3 of
006     * the License, or (at your option) any later version always keeping
007     * the addicional terms specified in this license.
008     *
009     * This program is distributed in the hope that it will be useful,
010     * but WITHOUT ANY WARRANTY; without even the implied warranty of
011     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
012     * GNU Lesser General Public License for more details.
013     *
014     *
015     * Additional Terms of this License
016     * --------------------------------
017     *
018     * 1. It is Required the preservation of specified reasonable legal notices
019     *   and author attributions in that material and in the Appropriate Legal
020     *   Notices displayed by works containing it.
021     *
022     * 2. It is limited the use for publicity purposes of names of licensors or
023     *   authors of the material.
024     *
025     * 3. It is Required indemnification of licensors and authors of that material
026     *   by anyone who conveys the material (or modified versions of it) with
027     *   contractual assumptions of liability to the recipient, for any liability
028     *   that these contractual assumptions directly impose on those licensors
029     *   and authors.
030     *
031     * 4. It is Prohibed misrepresentation of the origin of that material, and it is
032     *   required that modified versions of such material be marked in reasonable
033     *   ways as different from the original version.
034     *
035     * 5. It is Declined to grant rights under trademark law for use of some trade
036     *   names, trademarks, or service marks.
037     *
038     * You should have received a copy of the GNU Lesser General Public License
039     * along with this program (lgpl.txt).  If not, see <http://www.gnu.org/licenses/>
040    */
041    
042    package es.ants.felixgm.trmsim_wsn.trm.templatetrm;
043    
044    import es.ants.felixgm.trmsim_wsn.trm.TRMParameters;
045    
046    /**
047     * <p>This class represents the set of parameters' values of {@link TemplateTRM}.</p>
048     * <p>A TemplateTRM parameters file has the following structure:</p>
049     * <pre>
050     *    ####################################
051     *    # TemplateTRM parameters file
052     *    ####################################
053     *    parameter1Name=parameter1Value
054     *    parameter2Name=parameter2Value
055     * </pre>
056     * This file can be downloaded
057     * <a href="http://ants.dif.um.es/~felixgm/research/trmsim-wsn/resources/TemplateTRMparameters.txt" target=_blank">here</a>.
058     * But if any of the parameters can not be succesfully extracted from the file, they are set
059     * to a default value.
060     *
061     * @author <a href="http://ants.dif.um.es/~felixgm/en" target="_blank">F&eacute;lix G&oacute;mez M&aacute;rmol</a>, <a href="http://webs.um.es/gregorio" target="_blank">Gregorio Mart&iacute;nez P&eacute;rez</a>
062     * @version 0.3
063     * @since 0.3
064     */
065    public class TemplateTRM_Parameters extends TRMParameters {
066        /** Default parameters file name */
067        public static final String defaultParametersFileName = "trmodels/templatetrm/TemplateTRMparameters.txt";
068    
069        /**
070         * Creates a new instance of TemplateTRM_Parameters setting them to their default values
071         */
072        public TemplateTRM_Parameters() {
073            super();
074        }
075    
076        /**
077         * Creates a new instance of TemplateTRM_Parameters from a given parameters file name
078         * @param fileName TemplateTRM parameters file name
079         * @throws java.lang.Exception If any parameter can not be successfully retrieved
080         */
081        public TemplateTRM_Parameters(String fileName) throws Exception {
082            super(fileName);
083        }
084    
085        @Override
086        public String toString() {
087            throw new UnsupportedOperationException("Not supported yet.");
088        }
089    }