Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/backend/structure/Addition.java

Go to the documentation of this file.
00001 /******************************************************************************
00002  *                                                                                      Addition
00003  ******************************************************************************
00004  * Auteur               : Trolliet Gregory
00005  * Date                 : 4 mars 2009
00006  * Description : Addition
00007  ******************************************************************************/
00008 package m2m.backend.structure;
00009 
00017 public class Addition extends Operation {
00018 
00019         final static String OPNAME="add";
00020         
00021         public Addition() {
00022                 super(OPNAME);
00023                 this.setName(OPNAME);
00024         }
00025 
00026         @Override
00027         public void copyTo(Element e,Function newFunc) {
00028                 Addition newElement=(Addition)e;
00029                 super.copyTo(newElement,newFunc);
00030         }
00031         
00032         @Override
00033         public Element copy(Function newFunc) {
00034                 Addition newElement=new Addition();
00035                 this.copyTo(newElement,newFunc);
00036                 return newElement;
00037         }
00038         
00039         @Override
00040         public String getOpSymbol() {
00041                 return "+";
00042         }
00043 
00044         @Override
00045         public String toOctave(int level) {
00046                 return super.toOctave(level, "+");
00047         }
00048 }
 All Classes Namespaces Files Functions Variables Enumerations