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