galois.objects
Interface GObject

All Known Subinterfaces:
Accumulator, Bag<T>, Counter<T>, DoubleGraph<N>, FloatGraph<N>, GMutableInteger, GNode<N>, Graph<N>, IndexedGraph<N>, IntGraph<N>, LongGraph<N>, ObjectGraph<N,E>
All Known Implementing Classes:
AbstractBaseObject, AbstractNoConflictBaseObject, ArrayIndexedTree, ArrayIndexedTree.IndexedTreeNode, LocalComputationGraph, VoidGraphToObjectGraphAdapter

public interface GObject


Method Summary
 void access(byte flags)
          Accesses this object.
 

Method Detail

access

void access(byte flags)
Accesses this object. Appropriate place to add hooks into the runtime system to implement conflict detection and rollback.

This method should be called before each access to a Galois object. Many implementing classes leave this implementation empty and instead implement conflict detection and rollback for each method of the object (e.g., GSet, Graph, etc), which is also known as "boosting".

Parameters:
flags - Galois runtime actions (e.g., conflict detection) that need to be executed upon invocation of this method. See MethodFlag