|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
|
+--org.abora.gold.java.AboraHeaper
|
+--org.abora.gold.xpp.basic.Heaper
|
+--org.abora.gold.props.PropChange
Each concrete class has just one canonical instance and no state. A PropChange is used to
represent which property aspect changed (such as permission vs endorsement vs both).
| Field Summary | |
protected static PropChange |
TheBertPropChange
|
protected static PropChange |
TheCannotPartializeChange
|
protected static PropChange |
TheDetectorWaitingChange
|
protected static PropChange |
TheEndorsementsChange
|
protected static PropChange |
ThePermissionsChange
|
protected static PropChange |
TheSensorPropChange
|
| 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 | |
PropChange()
|
|
| Method Summary | |
int |
actualHashForEqual()
|
boolean |
areEqualPropJoints(PropJoint a,
PropJoint b)
compare the changed parts of two PropJoints |
boolean |
areEqualProps(Prop a,
Prop b)
compare the changed parts of two Props |
static PropChange |
bertPropChange()
|
static PropChange |
cannotPartializeChange()
|
Prop |
changed(Prop old,
Prop a)
Return a Prop which is the same as 'old' for aspects which I don't represent as changing, and 'a' for aspects that I do represent as changing. This is used to replace Props with minimum effort, given that the 'a' parameter has only new props which are of the aspect this change replaces, while the 'old' parameter starts as the original set of Props, perhaps including other aspects. See also: with:with:, which unions rather than replacing. |
PropJoint |
changedJoint(PropJoint old,
PropJoint a)
Return a PropJoint which is the same as 'old' for aspects which I don't represent as changing, and 'a' for aspects that I do represent as changing. This is used to replace PropJoints with minimum effort, given that the 'a' parameter has only new PropJoints which are of the aspect this change replaces, while the 'old' parameter starts as the original set of PropJoints, perhaps including other aspects. See also: change:with:, which does this for Props rather than PropJoints. |
static PropChange |
detectorWaitingChange()
|
static PropChange |
endorsementsChange()
|
PropFinder |
fetchFinder(Prop before,
Prop after)
|
PropFinder |
fetchFinder(Prop before,
Prop after,
BeRangeElement element)
|
PropFinder |
fetchFinder(Prop before,
Prop after,
BeRangeElement element,
PropFinder oldFinder)
return a finder looking for this change from before to after, in addition to whatever oldFinder is looking for (assumes this changes is a subset of oldFinder's change) |
PropFinder |
finderPartFrom(PropFinder finder)
|
static void |
initTimeNonInherited()
|
boolean |
isEqual(Heaper other)
Return true if the two objects are equal. |
boolean |
isEqualToJointOf(PropJoint a,
Prop b)
compare the changed parts of a PropJoint and a Prop |
boolean |
isFull()
whether this is a complete change of props |
PropJoint |
join(PropJoint old,
PropJoint a,
PropJoint b)
combine two PropJoints with minimum effort, given the previous result |
PropJoint |
joinProp(PropJoint old,
PropJoint a,
PropJoint b,
Prop prop)
combine two PropJoints and a prop with minimum effort, given the previous result |
static void |
linkTimeNonInherited()
|
static PropChange |
permissionsChange()
|
static PropChange |
sensorPropChange()
Returns the canonical PropChange object for propagating the properties that result from installing a recorder (permissions and endorsement filters). |
Prop |
with(Prop old,
Prop a)
Return a Prop which is the same as 'old' for aspects which I don't represent as changing, and the union of 'old' and 'a' for aspects that I do represent as changing. This is used to accumulate changes to Props with minimum effort, given that the 'a' parameter has only new props which are of the aspect this change changes, while the 'old' parameter starts as the original set of Props, perhaps including other aspects. See also changed:with:, which replaces rather than unioning. |
| 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 |
protected static PropChange TheBertPropChange
protected static PropChange TheCannotPartializeChange
protected static PropChange TheDetectorWaitingChange
protected static PropChange TheEndorsementsChange
protected static PropChange ThePermissionsChange
protected static PropChange TheSensorPropChange
| Constructor Detail |
public PropChange()
| Method Detail |
public boolean areEqualProps(Prop a,
Prop b)
public Prop changed(Prop old,
Prop a)
public PropFinder fetchFinder(Prop before,
Prop after,
BeRangeElement element,
PropFinder oldFinder)
public boolean isFull()
public Prop with(Prop old,
Prop a)
public int actualHashForEqual()
actualHashForEqual in class Heaperpublic boolean isEqual(Heaper other)
Heaper
isEqual in class Heaper
public PropFinder fetchFinder(Prop before,
Prop after)
public PropFinder finderPartFrom(PropFinder finder)
public PropFinder fetchFinder(Prop before,
Prop after,
BeRangeElement element)
public boolean areEqualPropJoints(PropJoint a,
PropJoint b)
public PropJoint changedJoint(PropJoint old,
PropJoint a)
public boolean isEqualToJointOf(PropJoint a,
Prop b)
public PropJoint join(PropJoint old,
PropJoint a,
PropJoint b)
public PropJoint joinProp(PropJoint old,
PropJoint a,
PropJoint b,
Prop prop)
public static PropChange bertPropChange()
public static PropChange cannotPartializeChange()
public static PropChange detectorWaitingChange()
public static PropChange endorsementsChange()
public static PropChange permissionsChange()
public static PropChange sensorPropChange()
public static void initTimeNonInherited()
public static void linkTimeNonInherited()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||