Math2mat

/home/ythoma/docs/math2mat/svn/wp1/framework/m2mGUI/src/m2m/backend/buildingblocks/BuildingBlockFloat.java

Go to the documentation of this file.
00001 
00002 package m2m.backend.buildingblocks;
00003 
00010 public abstract class BuildingBlockFloat extends BuildingBlockFloatAbstract {
00011         
00016         BuildingBlockFloat() {
00017                 m_significandSize=24;
00018                 m_exponentSize=7;
00019         }
00020         
00024         public final NumType numType() {
00025                 return NumType.FLOAT;
00026         }
00027 
00028         
00035         @Override
00036         public boolean useGenericSize() {
00037                 return true;
00038         }
00039         
00048         public boolean setSize(int significandSize, int exponentSize) {
00049                 if (!useGenericSize())
00050                         return false;
00051                 if (significandSize<0)
00052                         return false;
00053                 if (exponentSize<0)
00054                         return false;
00055                 m_exponentSize = exponentSize;
00056                 m_significandSize = significandSize;
00057                 return true;
00058         }
00059 }
00060 
 All Classes Namespaces Files Functions Variables Enumerations