Annotation of OpenXM/src/OpenMath/ORG/openxm/tam/CMO_BIGFLOAT.java, Revision 1.1
1.1 ! tam 1: /**
! 2: * $OpenXM$
! 3: */
! 4: package ORG.openxm.tam;
! 5:
! 6: import java.io.*;
! 7:
! 8: /**
! 9: * CMO $B7A<0$N(B BIGFLOAT $B7?$rI=$7$^$9(B.
! 10: */
! 11: final public class CMO_BIGFLOAT extends CMO{
! 12: // a * 2^e
! 13: private CMO_ZZ a,e;
! 14:
! 15: /**
! 16: * (a * 2^e) $B$rI=$9(B BIGFLOAT $B$r:n@.$7$^$9(B.
! 17: */
! 18: CMO_BIGFLOAT(CMO_ZZ a,CMO_ZZ e){
! 19: this.a = a;
! 20: this.e = e;
! 21: }
! 22:
! 23: public int DISCRIMINATOR(){
! 24: return CMO.BIGFLOAT;
! 25: }
! 26:
! 27: public void sendByObject(OpenXMconnection os) throws IOException{
! 28: a.sendByObject(os);
! 29: e.sendByObject(os);
! 30: }
! 31:
! 32: static protected CMO receive(OpenXMconnection is) throws IOException{
! 33: CMO_ZZ a,e;
! 34:
! 35: a = (CMO_ZZ) CMO_ZZ.receive(is);
! 36: e = (CMO_ZZ) CMO_ZZ.receive(is);
! 37:
! 38: return new CMO_BIGFLOAT(a,e);
! 39: }
! 40:
! 41: public String toCMOexpressionByObject(){
! 42: return "CMO_BIGFLOAT,"+ a.toCMOexpression() +","+ e.toCMOexpression();
! 43: }
! 44:
! 45: /**
! 46: * $B>.?tIt$rF@$^$9(B.
! 47: */
! 48: public CMO_ZZ getSyosubu(){
! 49: return a;
! 50: }
! 51:
! 52: /**
! 53: * $B;X?tIt$rF@$^$9(B.
! 54: */
! 55: public CMO_ZZ getShisubu(){
! 56: return e;
! 57: }
! 58: }
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>