org.abora.gold.x
Class PrimFloatValue

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.x.PrimValue
                    |
                    +--org.abora.gold.x.PrimFloatValue
Direct Known Subclasses:
PrimIEEE32, PrimIEEE64

public class PrimFloatValue
extends PrimValue

A boxed representation of a floating point value


Field Summary
 
Fields inherited from class org.abora.gold.xpp.basic.Heaper
AllBlasts, BecomeMap, GarbageCount, InGC, InitializedClasses, InitializingClasses, LastMemory, NextClientRequestNumber, NotOneElementSignal, PackageTable, PromiseNameTable, StringHashSBoxes
 
Fields inherited from class org.abora.gold.java.AboraHeaper
ActiveClubs, CurrentAuthor, CurrentBertCanopyCache, CurrentBertCrum, CurrentChunk, CurrentGrandMap, CurrentKeyMaster, CurrentPacker, CurrentSensorCanopyCache, CurrentServer, CurrentSession, CurrentSessions, CurrentTrace, InitialEditClub, InitialOwner, InitialReadClub, InitialSponsor, InsideTransactionFlag
 
Constructor Summary
PrimFloatValue(Rcvr receiver)
           
 
Method Summary
 IEEE128 asIEEE128()
          The value as an IEEE 128-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.
 float asIEEE32()
          The value as an IEEE 32-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.
 double asIEEE64()
          The value as an IEEE 64-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.
 int bitCount()
          What precision is it, in terms of the number of bits used to represent it.
 IntegerVar exponent()
          If this is a number, return the exponent
static void info()
          {IEEE128 CLIENT} asIEEE128
{IEEE128 CLIENT} asIEEE128Approximation
{IEEE32 CLIENT} asIEEE32
{IEEE32 CLIENT} asIEEE32Approximation
{IEEE64 CLIENT} asIEEE64
{IEEE64 CLIENT} asIEEE64Approximation
{IntegerVar CLIENT} exponent
{BooleanVar CLIENT} isANumber
{IntegerVar CLIENT} mantissa
{Int32 CLIENT} precision
 boolean isANumber()
          Return TRUE if value represents a number.
 boolean isNumber()
           
 IntegerVar mantissa()
          If this is a number, return the signed mantissa
 int precision()
           
 void sendSelfTo(Xmtr xmtr)
          do nothing
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, actualHashForEqual, addMethodAttributeToInOf, addPackage, addPackageCategory, allClientProtocolOn, argumentTypesFor, arrow, blast, blast, BLAST, cachePromiseNameTable, cachePromiseNameTableIn, canYouBecome, cast, cleanPromiseClasses, cleanupGarbage, clientClassesDo, clientFunctionsOn, clientMethodsOn, clientProtocol, clientProtocolDo, clientProtocolOn, clientProtocolOn, collectibleClasses, compare, compileClientSubclasses, compileConstantPromiseMethods, compileCreateFromRcvr, compileEQ, compileGeneratedClassMethod, compileGeneratedMethod, compileHook, compilePromise, compilePromiseDefaultMethods, compilePromiseFluidDeclarations, compilePromiseHandlers, compilePromiseMethods, compileRequestCreateMsgInArguments, compileRequestEvaluateMsgInReturningArguments, compileRPCSpecialistEvaluateMsgForReturningArguments, compileSendSelfTo, compileSendSelfToSendHook, compileStubbleMethods, compileSubclassStubbleMethods, computeMangle, computePreorder, constantTypeValue, convert, convertCopyDeclarations, convertDeferredDeclarations, convertProxyDeclarations, convertSubclassCopyDeclarations, convertSubclassDeferredDeclarations, convertSubclassProxyDeclarations, copyReferencesToType, create, create, create, create, create, create, create, create, create, create, createRequestClassArguments, definesProxyMethods, delete, deref, destroy, destruct, destructor, enum, enumFlags, equals, exportName, fetchAttribute, fetchPackage, fetchSuperCategory, fileOutClientProtocol, findCategory, findSenderAndReceiverMethods, findTailInto, flushPromiseNameTable, foo, freezeClientClasses, freezeClientProtocol, freezeStProtocol, frozenClasses, garbageCollect, garbageCollectFrom, gcOpportunity, gcOpportunity, generatedCategory, generatePromiseNames, getCategory, getOrMakePackage, getSuperCategory, handlerSignaturesFrom, hash, hashForEqual, hasProxyMethods, info_clientClasses, info_clientSideClasses, info_promiseClasses, info_stProtocol, inGC, initializedClasses, initializingClasses, initPackages, initStringHashSBoxes, inspectPieces, instanceSize, IntegerVar, isByProxy, isConstructed, isDestructed, isEqual, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, isUnlocked, linkTimeNonInherited, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, printOn, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, serverNameFor, setGC, signal, signals, smalltalkSelector, stClientProtocol, stubbleSelectorTokenReturnsArguments, subclassNonCopyVariables, takeOop, togglePromiseName, togglePromiseOfParse, unimplemented, unmangle, verifyFreeze, wipeStubble
 
Methods inherited from class org.abora.gold.java.AboraHeaper
asOop, basicInspect, displayString, error, hack, halt, inspect, knownBug, mightNotImplement, REQUIRES, shouldImplement, shouldNotImplement, stubbleForSubclassResponsibility, thingToDo, willNotImplement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrimFloatValue

public PrimFloatValue(Rcvr receiver)
Method Detail

asIEEE128

public IEEE128 asIEEE128()
The value as an IEEE 128-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.


asIEEE32

public float asIEEE32()
The value as an IEEE 32-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.


asIEEE64

public double asIEEE64()
The value as an IEEE 64-bit floating point number.
May not be possible if conversion from subclass to IEEE type is not available.


bitCount

public int bitCount()
What precision is it, in terms of the number of bits used to represent it. In the
interests of efficiency, this may return a number larger than that *needed* to represent
it. However, the precision reported must be at least that needed to represent this
number. It is assumed that the format of the number satisfies the IEEE radix independent
floating point spec. Should we represent real numbers other that those representable in
IEEE, the meaning of this message will be more fully specified.
The fact that this message is allowed to overestimate precision doesn't interfere with
equality: a->isEqual(b) exactly when they represent that same real number, even if one of
them happens to overestimate precision more that the other.


exponent

public IntegerVar exponent()
If this is a number, return the exponent


isANumber

public boolean isANumber()
Return TRUE if value represents a number.


mantissa

public IntegerVar mantissa()
If this is a number, return the signed mantissa


isNumber

public boolean isNumber()

precision

public int precision()

sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Description copied from class: Heaper
do nothing

Overrides:
sendSelfTo in class Heaper

info

public static void info()
{IEEE128 CLIENT} asIEEE128
{IEEE128 CLIENT} asIEEE128Approximation
{IEEE32 CLIENT} asIEEE32
{IEEE32 CLIENT} asIEEE32Approximation
{IEEE64 CLIENT} asIEEE64
{IEEE64 CLIENT} asIEEE64Approximation
{IntegerVar CLIENT} exponent
{BooleanVar CLIENT} isANumber
{IntegerVar CLIENT} mantissa
{Int32 CLIENT} precision



Translation - Copyright © 2003 David G Jones. All Rights Reserved.
Original Udanax-Gold - Copyright © 1979-1999 Udanax.com. All rights reserved.