Math2mat
|
00001 /****************************************************************************** 00002 * Greater 00003 ****************************************************************************** 00004 * Auteur : Trolliet Gregory 00005 * Date : 14 avr. 2009 00006 * Description : 00007 ******************************************************************************/ 00008 00009 package m2m.backend.structure; 00010 00020 public class Greater extends Comparison { 00021 00022 final static String OPNAME="great"; 00023 00024 public Greater() { 00025 super(OPNAME); 00026 this.setName(OPNAME); 00027 } 00028 00029 @Override 00030 public String getOpSymbol() { 00031 return ">"; 00032 } 00033 00034 @Override 00035 public String toOctave(int level) { 00036 return super.toOctave(level, ">"); 00037 } 00038 00039 @Override 00040 public void copyTo(Element e,Function newFunc) { 00041 Greater newElement=(Greater)e; 00042 super.copyTo(newElement,newFunc); 00043 } 00044 00045 @Override 00046 public Element copy(Function newFunc) { 00047 Greater newElement=new Greater(); 00048 this.copyTo(newElement,newFunc); 00049 return newElement; 00050 } 00051 }