org.abora.gold.xcvr
Class Binary2Xmtr

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.xcvr.Xmtr
                    |
                    +--org.abora.gold.xcvr.SpecialistXmtr
                          |
                          +--org.abora.gold.xcvr.Binary2Xmtr

public class Binary2Xmtr
extends SpecialistXmtr


Field Summary
protected static int MaxNumberLength
           
protected  IntegerVar myDepth
           
protected  XnWriteStream myStream
           
protected static byte NumberBuffer
           
protected static InstanceCache SomeXmtrs
           
 
Fields inherited from class org.abora.gold.xcvr.SpecialistXmtr
myIbids, myNextIbid, mySpecialist, XmtrIbidCache
 
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
Binary2Xmtr(TransferSpecialist specialist, XnWriteStream stream)
           
 
Method Summary
 void destroy()
           
 void endInstance()
          end sending an instance
 void endPacket()
          Put in a separator pattern so we can detect the packets visually.
 void endThing()
           
static void initTimeNonInherited()
           
static void linkTimeNonInherited()
           
static Heaper make(TransferSpecialist specialist, XnWriteStream stream)
           
 void printOn(java.io.PrintWriter oo)
           
 void putIntegerVar(IntegerVar num)
          Send a Dean style humber.
 void sendBooleanVar(boolean b)
           
 void sendCategory(Category cat)
           
 void sendIEEEDoubleVar(double x)
          Sending the normal decimal approximation doesn't work because it introduces
roundoff error.
 void sendInt32(int n)
           
 void sendInt8(byte n)
           
 void sendIntegerVar(IntegerVar n)
           
 void sendNULL()
           
 void sendString(java.lang.String s)
           
 void sendUInt32(int n)
           
 void sendUInt4(byte n)
           
 void sendUInt8(byte n)
           
 void sendUInt8Data(UInt8Array array)
          Send the contents of the UInt8Array as data.
 void startNewInstance(Category cat)
          start sending an instance of a particular class.
 XnWriteStream stream()
           
 void uint8()
           
 
Methods inherited from class org.abora.gold.xcvr.SpecialistXmtr
destruct, sendHeaper, sendIbid, specialist, startInstance
 
Methods inherited from class org.abora.gold.xcvr.Xmtr
actualHashForEqual, isEqual, send, sendData
 
Methods inherited from class org.abora.gold.xpp.basic.Heaper
abstractDeclarationFor, abstractTypeFor, 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, 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, make, makeClassTable, makeFillTable, makeRequestTable, mangle, markChildren, markCount, markInstances, mayBecome, mayBecomeAnySubclassOf, new1, newX, nonCopyVariables, notWorking, pack, packageClasses, packagingCategory, parseExportName, passe, pointerToStaticMember, pointerToStaticMember, pointerToVirtualMember, preorderMax, preorderNumber, PROBLEM, problems, promiseClass, promiseDefaultValue, promiseName, promiseNameTable, promiseToAbstract, registerPackageCategory, removeGeneratedCode, removeStubbleMethods, removeSubclassGeneratedCode, removeSubclassStubbleMethods, requestProcedure, requestProceduresFrom, returnTypeFor, rootName, scheduleTermination, sendProxyTo, sendSelfTo, 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
 

Field Detail

myStream

protected XnWriteStream myStream

myDepth

protected IntegerVar myDepth

MaxNumberLength

protected static int MaxNumberLength

NumberBuffer

protected static byte NumberBuffer

SomeXmtrs

protected static InstanceCache SomeXmtrs
Constructor Detail

Binary2Xmtr

public Binary2Xmtr(TransferSpecialist specialist,
                   XnWriteStream stream)
Method Detail

sendBooleanVar

public void sendBooleanVar(boolean b)
Overrides:
sendBooleanVar in class SpecialistXmtr

sendCategory

public void sendCategory(Category cat)
Overrides:
sendCategory in class SpecialistXmtr

sendIEEEDoubleVar

public void sendIEEEDoubleVar(double x)
Sending the normal decimal approximation doesn't work because it introduces
roundoff error. What we need to do instead is send a hex encoding of the IEEE
double precision (64-bit) representation of the number. For clarity in the
textual protocol, we also include the decimal approximation in a comment.

Overrides:
sendIEEEDoubleVar in class SpecialistXmtr

sendInt32

public void sendInt32(int n)
Overrides:
sendInt32 in class SpecialistXmtr

sendInt8

public void sendInt8(byte n)
Overrides:
sendInt8 in class SpecialistXmtr

sendIntegerVar

public void sendIntegerVar(IntegerVar n)
Overrides:
sendIntegerVar in class SpecialistXmtr

sendString

public void sendString(java.lang.String s)
Overrides:
sendString in class SpecialistXmtr

sendUInt32

public void sendUInt32(int n)
Overrides:
sendUInt32 in class SpecialistXmtr

sendUInt4

public void sendUInt4(byte n)

sendUInt8

public void sendUInt8(byte n)
Overrides:
sendUInt8 in class SpecialistXmtr

sendUInt8Data

public void sendUInt8Data(UInt8Array array)
Description copied from class: SpecialistXmtr
Send the contents of the UInt8Array as data.

Overrides:
sendUInt8Data in class SpecialistXmtr

printOn

public void printOn(java.io.PrintWriter oo)
Overrides:
printOn in class Heaper

endPacket

public void endPacket()
Put in a separator pattern so we can detect the packets visually.

Overrides:
endPacket in class SpecialistXmtr

uint8

public void uint8()

endThing

public void endThing()

putIntegerVar

public void putIntegerVar(IntegerVar num)
Send a Dean style humber. Like Drexler style, except all the tag bits go into the first
byte.


sendNULL

public void sendNULL()
Overrides:
sendNULL in class SpecialistXmtr

startNewInstance

public void startNewInstance(Category cat)
start sending an instance of a particular class. Add one because 0 means NULL

Overrides:
startNewInstance in class SpecialistXmtr

stream

public XnWriteStream stream()

destroy

public void destroy()
Overrides:
destroy in class Heaper

endInstance

public void endInstance()
end sending an instance

Overrides:
endInstance in class SpecialistXmtr

make

public static Heaper make(TransferSpecialist specialist,
                          XnWriteStream stream)

initTimeNonInherited

public static void initTimeNonInherited()

linkTimeNonInherited

public static void linkTimeNonInherited()


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