org.abora.white.edgeregion
Class EdgeAccumulator

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.collection.steppers.Accumulator
              |
              +--org.abora.white.edgeregion.EdgeAccumulator

public class EdgeAccumulator
extends Accumulator


Field Summary
protected  PtrArray myEdges
           
protected  int myIndex
           
protected  EdgeManager myManager
           
protected  TransitionEdge myPending
           
protected  boolean myResultGiven
           
protected  boolean myStartsInside
           
protected static InstanceCache SomeAccumulators
           
 
Constructor Summary
EdgeAccumulator(EdgeManager manager, boolean startsInside)
           
EdgeAccumulator(EdgeManager manager, boolean startsInside, PtrArray edges, int index, TransitionEdge pending)
           
EdgeAccumulator(Rcvr receiver)
           
 
Method Summary
 Accumulator copy()
          Return a new Accumulator just like the current one, except that from now on they accumulate separately
 void destroy()
           
 void edge(TransitionEdge x)
          add a transition at the given position.
 void edges(EdgeStepper stepper)
          add a whole bunch of edges at once, assuming that they are sorted and there are no duplicates
static EdgeAccumulator make(EdgeManager manager, boolean startsInside)
           
 XnRegion region()
          make a region out of the accumulated edges
 void restartEdgeAccumulator(Rcvr rcvr)
           
 void sendSelfTo(Xmtr xmtr)
           
 void step(Heaper someObj)
          Accumulate a new object into the Accumulator
 void storeStep(TransitionEdge edge)
          Just store an edge into the array and increment the count
 Heaper value()
          Return the object that results from accumulating all those objects
 
Methods inherited from class org.abora.white.collection.steppers.Accumulator
actualHashForEqual, isEqual, ptrArray
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destruct, equals, hashForEqual, printContentsOn, printOn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myManager

protected EdgeManager myManager

myStartsInside

protected boolean myStartsInside

myEdges

protected PtrArray myEdges

myIndex

protected int myIndex

myPending

protected TransitionEdge myPending

myResultGiven

protected boolean myResultGiven

SomeAccumulators

protected static InstanceCache SomeAccumulators
Constructor Detail

EdgeAccumulator

public EdgeAccumulator(EdgeManager manager,
                       boolean startsInside)

EdgeAccumulator

public EdgeAccumulator(EdgeManager manager,
                       boolean startsInside,
                       PtrArray edges,
                       int index,
                       TransitionEdge pending)

EdgeAccumulator

public EdgeAccumulator(Rcvr receiver)
Method Detail

copy

public Accumulator copy()
Description copied from class: Accumulator
Return a new Accumulator just like the current one, except that from now on they accumulate separately

Specified by:
copy in class Accumulator

destroy

public void destroy()
Overrides:
destroy in class Heaper

step

public void step(Heaper someObj)
Description copied from class: Accumulator
Accumulate a new object into the Accumulator

Specified by:
step in class Accumulator

value

public Heaper value()
Description copied from class: Accumulator
Return the object that results from accumulating all those objects

Specified by:
value in class Accumulator

edge

public void edge(TransitionEdge x)
add a transition at the given position. doing it again cancels it


edges

public void edges(EdgeStepper stepper)
add a whole bunch of edges at once, assuming that they are sorted and there are no duplicates


region

public XnRegion region()
make a region out of the accumulated edges


storeStep

public void storeStep(TransitionEdge edge)
Just store an edge into the array and increment the count


restartEdgeAccumulator

public void restartEdgeAccumulator(Rcvr rcvr)

sendSelfTo

public void sendSelfTo(Xmtr xmtr)
Overrides:
sendSelfTo in class Heaper

make

public static EdgeAccumulator make(EdgeManager manager,
                                   boolean startsInside)


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