org.abora.gold.be.ents
Class Loaf

java.lang.Object
  |
  +--org.abora.gold.java.AboraHeaper
        |
        +--org.abora.gold.xpp.basic.Heaper
              |
              +--org.abora.gold.snarf.Abraham
                    |
                    +--org.abora.gold.be.ents.OPart
                          |
                          +--org.abora.gold.be.ents.Loaf
Direct Known Subclasses:
InnerLoaf, OExpandingLoaf

public class Loaf
extends OPart


Field Summary
protected  HUpperCrum myHCrum
           
 
Fields inherited from class org.abora.gold.be.ents.OPart
mySensorCrum
 
Fields inherited from class org.abora.gold.snarf.Abraham
DismantleStatistics, myHash, myInfo, myToken, TheTokenSource
 
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
Loaf(HUpperCrum hcrum, SensorCrum scrum)
           
Loaf(int hash, HUpperCrum hcrum, SensorCrum scrum)
           
Loaf(Rcvr receiver)
           
 
Method Summary
 byte actualSplay(XnRegion region, XnRegion limitRegion)
          Speciall handle the splay cases in which the region partially intersects
with limitedRegion.
 void addOParent(OPart oParent)
          This should probably take a bertCanopyCrum argument, as well.
 FeEdition asFeEdition()
          Make a FeEdition out of myself.
 XnRegion attachTrailBlazer(TrailBlazer blazer)
          Attach the TrailBlazer to this Edition, and return the region of partiality it is attached
to
 Stepper bundleStepper(XnRegion region, OrderSpec order, Dsp globalDsp)
          Return a stepper of bundles according to the order.
 void checkChildRecorders(BeEdition stamp, PropFinder finder)
           
 void checkChildRecorders(PropFinder finder)
          send checkRecorders to all children
 void checkRecorders(BeEdition edition, PropFinder finder, SensorCrum scrum)
           
 void checkRecorders(PropFinder finder, SensorCrum scrum)
          check any recorders that might be triggered by a change in the edition.
Walk leafward on O-plane, filtered by sensor canopy, ringing recorders.
Not in a consistent block: It spawns unbounded work.
 void checkTrailBlazer(TrailBlazer blazer)
          Make sure that everyone below here that might have a TrailBlazer, has the given one
 OrglRoot combine(ActualOrglRoot another, XnRegion limitRegion, Dsp globalDsp)
           
 Mapping compare(TracePosition trace, XnRegion region)
          return a mapping from my data to corresponding stuff in the given trace
 int contentsHash()
          A hash of the contents of this flock
 IntegerVar count()
           
 void delayedStoreMatching(PropFinder finder, RecorderFossil recorder, HashSetCache hCrumCache)
           
 void delayedStoreMatching(PropFinder finder, RecorderFossil fossil, ResultRecorder recorder, HashSetCache hCrumCache)
          One step of walk south on the O-tree during the 'now' part of a backfollow.
 void dismantle()
          Disconnect me from the universe and throw me off the disk.
For GC safety, we keep a strongptr to ourself -- is this still necessary?
 XnRegion domain()
           
 FeRangeElement fetch(Position key, BeEdition edition, Position globalKey)
          Look up the range element for the key.
 OExpandingLoaf fetchBottomAt(Position key)
          Return the bottom-most Loaf.
 TrailBlazer fetchTrailBlazer()
          If there is a TrailBlazer somewhere below this Edition, return one of them
 void fill(XnRegion keys, Arrangement toArrange, PrimArray toArray, Dsp globalDsp, BeEdition edition)
          Fill an array with my contents
 BeRangeElement getBe(Position key)
          Get or Make the BeRangeElement at the location.
 HistoryCrum hCrum()
           
 void inform(Position key, HRoot value, TracePosition trace)
          inform a piece of partiality
 XnRegion keysLabelled(BeLabel label)
          Just search for now.
static Heaper make(PrimDataArray values, Arrangement arrangement)
           
static Heaper make(XnRegion region)
           
static Heaper make(XnRegion region, BeCarrier element)
           
 XnRegion rangeOwners(XnRegion positions)
           
 void removeOParent(OPart oparent)
          remove oparent from the set of upward pointers.
 void sendSelfTo(Xmtr xmtr)
          do nothing
 OrglRoot setAllOwners(ID owner)
          Recur assigning owners.
 XnRegion sharedRegion(TracePosition trace, XnRegion limitRegion)
          Return a region describing the stuff that can backfollow to trace.
 byte splay(XnRegion region, XnRegion limitRegion)
          Make each child completely contained or completely outside
the region.
 void storeMatching(PropFinder finder, MuTable table, HashSetCache hCrumCache)
           
 void storeRecordingAgents(RecorderFossil recorder, Agenda agenda)
          Go ahead and actually store the recorder in the sensor canopy.
 Loaf transformedBy(Dsp externalDsp)
          Return a copy with externalDsp added to the receiver's dsp.
 void triggerDetector(FeFillRangeDetector detect)
          A Detector has been added to my parent.
 Loaf unTransformedBy(Dsp globalDsp)
          Return a copy with globalDsp removed from the receiver's dsp.
 boolean updateBCrumTo(BertCrum newBCrum)
          Ensure the my bertCrum is not be leafward of newBCrum.
 XnRegion usedDomain()
           
 void wait(XnSensor sensor)
           
 
Methods inherited from class org.abora.gold.be.ents.OPart
hinspect, inspect, inspectCanopy, inspectMenuArray, inspectRecorderCanopy, mappingTo, sensorCrum, showOn
 
Methods inherited from class org.abora.gold.snarf.Abraham
actualHashForEqual, becomeStub, cleanupGarbage, destroy, destruct, diskUpdate, dismantleStatistics, fetchInfo, fetchShepherd, flockInfo, forget, getInfo, getShepherdStubCategory, initTimeNonInherited, isConstructed, isDestructed, isEqual, isKindOf, isPurgeable, isShepherd, isStub, isUnlocked, linkTimeNonInherited, newShepherd, remember, restartAbraham, restartAbraham, returnToken, staticTimeNonInherited, token
 
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, 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, isEqualOrSubclassOf, isGenerated, isIntType, isKindOf, isRawType, 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, 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

myHCrum

protected HUpperCrum myHCrum
Constructor Detail

Loaf

public Loaf(HUpperCrum hcrum,
            SensorCrum scrum)

Loaf

public Loaf(int hash,
            HUpperCrum hcrum,
            SensorCrum scrum)

Loaf

public Loaf(Rcvr receiver)
Method Detail

compare

public Mapping compare(TracePosition trace,
                       XnRegion region)
return a mapping from my data to corresponding stuff in the given trace


count

public IntegerVar count()

domain

public XnRegion domain()

fetch

public FeRangeElement fetch(Position key,
                            BeEdition edition,
                            Position globalKey)
Look up the range element for the key. If it is embedded within a virtual
structure, then make a virtual range element using the edition and globalKey.


fetchBottomAt

public OExpandingLoaf fetchBottomAt(Position key)
Return the bottom-most Loaf. Used to get the owner and such of a position.


fill

public void fill(XnRegion keys,
                 Arrangement toArrange,
                 PrimArray toArray,
                 Dsp globalDsp,
                 BeEdition edition)
Fill an array with my contents


getBe

public BeRangeElement getBe(Position key)
Get or Make the BeRangeElement at the location.


rangeOwners

public XnRegion rangeOwners(XnRegion positions)

setAllOwners

public OrglRoot setAllOwners(ID owner)
Recur assigning owners. Return the portion of the o-tree that
couldn't be assigned, or NULL if it was all assigned.


usedDomain

public XnRegion usedDomain()

bundleStepper

public Stepper bundleStepper(XnRegion region,
                             OrderSpec order,
                             Dsp globalDsp)
Return a stepper of bundles according to the order.


combine

public OrglRoot combine(ActualOrglRoot another,
                        XnRegion limitRegion,
                        Dsp globalDsp)

keysLabelled

public XnRegion keysLabelled(BeLabel label)
Just search for now.


sharedRegion

public XnRegion sharedRegion(TracePosition trace,
                             XnRegion limitRegion)
Return a region describing the stuff that can backfollow to trace.


transformedBy

public Loaf transformedBy(Dsp externalDsp)
Return a copy with externalDsp added to the receiver's dsp.


unTransformedBy

public Loaf unTransformedBy(Dsp globalDsp)
Return a copy with globalDsp removed from the receiver's dsp.


splay

public byte splay(XnRegion region,
                  XnRegion limitRegion)
Make each child completely contained or completely outside
the region. Return the number of children completely in the region.
Full containment cases can be handled generically.


actualSplay

public byte actualSplay(XnRegion region,
                        XnRegion limitRegion)
Speciall handle the splay cases in which the region partially intersects
with limitedRegion. These require rotations and splitting.


addOParent

public void addOParent(OPart oParent)
This should probably take a bertCanopyCrum argument, as well.


attachTrailBlazer

public XnRegion attachTrailBlazer(TrailBlazer blazer)
Description copied from class: OPart
Attach the TrailBlazer to this Edition, and return the region of partiality it is attached
to

Overrides:
attachTrailBlazer in class OPart

checkChildRecorders

public void checkChildRecorders(PropFinder finder)
send checkRecorders to all children


checkRecorders

public void checkRecorders(PropFinder finder,
                           SensorCrum scrum)
check any recorders that might be triggered by a change in the edition.
Walk leafward on O-plane, filtered by sensor canopy, ringing recorders.
Not in a consistent block: It spawns unbounded work.


checkTrailBlazer

public void checkTrailBlazer(TrailBlazer blazer)
Description copied from class: OPart
Make sure that everyone below here that might have a TrailBlazer, has the given one

Overrides:
checkTrailBlazer in class OPart

delayedStoreMatching

public void delayedStoreMatching(PropFinder finder,
                                 RecorderFossil fossil,
                                 ResultRecorder recorder,
                                 HashSetCache hCrumCache)
One step of walk south on the O-tree during the 'now' part of a backfollow.


fetchTrailBlazer

public TrailBlazer fetchTrailBlazer()
Description copied from class: OPart
If there is a TrailBlazer somewhere below this Edition, return one of them

Overrides:
fetchTrailBlazer in class OPart

hCrum

public HistoryCrum hCrum()
Overrides:
hCrum in class OPart

removeOParent

public void removeOParent(OPart oparent)
remove oparent from the set of upward pointers.


storeRecordingAgents

public void storeRecordingAgents(RecorderFossil recorder,
                                 Agenda agenda)
Go ahead and actually store the recorder in the sensor canopy. However, instead of
propogating the props immediately, accumulate all those agenda items into the 'agenda'
parameter. This is done instead of scheduling them directly because our client needs to
schedule something else following all the prop propogation.


triggerDetector

public void triggerDetector(FeFillRangeDetector detect)
A Detector has been added to my parent. Walk down and trigger it on all non-partial stuff


updateBCrumTo

public boolean updateBCrumTo(BertCrum newBCrum)
Ensure the my bertCrum is not be leafward of newBCrum.


asFeEdition

public FeEdition asFeEdition()
Make a FeEdition out of myself. Used for triggering Detectors


dismantle

public void dismantle()
Description copied from class: Abraham
Disconnect me from the universe and throw me off the disk.
For GC safety, we keep a strongptr to ourself -- is this still necessary?

Overrides:
dismantle in class OPart

contentsHash

public int contentsHash()
Description copied from class: Abraham
A hash of the contents of this flock

Overrides:
contentsHash in class OPart

checkChildRecorders

public void checkChildRecorders(BeEdition stamp,
                                PropFinder finder)

checkRecorders

public void checkRecorders(BeEdition edition,
                           PropFinder finder,
                           SensorCrum scrum)

delayedStoreMatching

public void delayedStoreMatching(PropFinder finder,
                                 RecorderFossil recorder,
                                 HashSetCache hCrumCache)

inform

public void inform(Position key,
                   HRoot value,
                   TracePosition trace)
inform a piece of partiality


storeMatching

public void storeMatching(PropFinder finder,
                          MuTable table,
                          HashSetCache hCrumCache)

wait

public void wait(XnSensor sensor)
Overrides:
wait in class OPart

sendSelfTo

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

Overrides:
sendSelfTo in class OPart

make

public static Heaper make(XnRegion region,
                          BeCarrier element)

make

public static Heaper make(XnRegion region)

make

public static Heaper make(PrimDataArray values,
                          Arrangement arrangement)


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