[Jspro-cvs] jsPro/chemistry Chemica.js,NONE,1.1
Brought to you by:
wigleys
|
From: Stuart W. <wi...@us...> - 2005-02-22 11:22:41
|
Update of /cvsroot/jspro/jsPro/chemistry In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28755/chemistry Added Files: Chemica.js Log Message: no message --- NEW FILE: Chemica.js --- /** * +--------------------------------------------------------------------------+ * | jsPro - Chemica | * +--------------------------------------------------------------------------+ * | Copyright (C) 2001-2005 Stuart Wigley | * +--------------------------------------------------------------------------+ * | This library is free software; you can redistribute it and/or modify it | * | under the terms of the GNU Lesser General Public License as published by | * | the Free Software Foundation; either version 2.1 of the License, or (at | * | your option) any later version. | * | | * | This library 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 Lesser | * | General Public License for more details. | * | | * | You should have received a copy of the GNU Lesser General Public License | * | along with this library; if not, write to the Free Software Foundation, | * | Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | * +--------------------------------------------------------------------------+ * | Authors: Stuart Wigley <stu...@ya...> | * | Randolph Fielding <gat...@ci...> | * +--------------------------------------------------------------------------+ * $Id: Chemica.js,v 1.1 2005/02/22 11:22:32 wigleys Exp $ */ /** * Creates an object that is a superclass of the chemical element classes. All * of the element classes that subclass this method can then use the provided * get methods. * * @author Stuart Wigley * @author Randolph Fielding */ function Chemica() { } /** * Returns the Atomic Number of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Atomic Number of this chemical element */ Chemica.prototype.getAtomicNo = function() { return this.ATOMIC_NUMBER; } /** * Returns the Atomic Weight of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Atomic Weight of this chemical element */ Chemica.prototype.getAtomicWt = function() { return this.ATOMIC_WEIGHT; } /** * Returns the Chemical Name of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @return the Chemical Name of this chemical element */ Chemica.prototype.getName = function() { return this.NAME; } /** * Returns the Chemical Symbol of this chemical element. * * @author Stuart Wigley * @author Randolph Fielding * @interface <code>Chemica.getSymbol()</code> * @return the Chemical Symbol of this chemical element */ Chemica.prototype.getSymbol = function() { return this.SYMBOL; } |