Math2mat

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

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