Math2mat

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

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