org.abora.white.tumbler
Class SequenceEdge

java.lang.Object
  |
  +--org.abora.white.xpp.basic.Heaper
        |
        +--org.abora.white.edgeregion.TransitionEdge
              |
              +--org.abora.white.tumbler.SequenceEdge
Direct Known Subclasses:
AfterSequence, BeforeSequence, BeforeSequencePrefix

public abstract class SequenceEdge
extends TransitionEdge


Field Summary
protected  Sequence mySequence
           
 
Constructor Summary
SequenceEdge(Rcvr receiver)
           
SequenceEdge(Sequence sequence)
           
 
Method Summary
 int actualHashForEqual()
          Defined by subclasses to produce the value returned by hashForEqual.
abstract  boolean follows(Position pos)
          Whether the position is strictly less than this edge
abstract  boolean isEqual(Heaper other)
          Return true if the two objects are equal.
abstract  boolean isFollowedBy(TransitionEdge next)
          Whether there is precisely one position between this edge and the next one
abstract  boolean isGE(TransitionEdge other)
          Defines a full ordering among all edges in a given CoordinateSpace
 void printOn(java.io.PrintWriter oo)
          This should rarely be overridden.
abstract  void printTransitionOn(java.io.PrintWriter oo, boolean entering, boolean touchesPrevious)
          Print a description of this transition
 void sendSelfTo(Xmtr xmtr)
           
 Sequence sequence()
           
abstract  boolean touches(TransitionEdge other)
          Whether this edge touches the same position the other does
abstract  SequenceEdge transformedBy(SequenceMapping dsp)
          Transform the edge by the given mapping
 
Methods inherited from class org.abora.white.edgeregion.TransitionEdge
ceiling, floor
 
Methods inherited from class org.abora.white.xpp.basic.Heaper
destroy, destruct, equals, hashForEqual, printContentsOn, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

mySequence

protected Sequence mySequence
Constructor Detail

SequenceEdge

public SequenceEdge(Sequence sequence)

SequenceEdge

public SequenceEdge(Rcvr receiver)
Method Detail

actualHashForEqual

public int actualHashForEqual()
Description copied from class: Heaper
Defined by subclasses to produce the value returned by hashForEqual.

Overrides:
actualHashForEqual in class TransitionEdge

follows

public abstract boolean follows(Position pos)
Whether the position is strictly less than this edge

Specified by:
follows in class TransitionEdge

isEqual

public abstract boolean isEqual(Heaper other)
Description copied from class: Heaper
Return true if the two objects are equal.

Specified by:
isEqual in class TransitionEdge

isFollowedBy

public abstract boolean isFollowedBy(TransitionEdge next)
Whether there is precisely one position between this edge and the next one

Specified by:
isFollowedBy in class TransitionEdge

isGE

public abstract boolean isGE(TransitionEdge other)
Defines a full ordering among all edges in a given CoordinateSpace

Specified by:
isGE in class TransitionEdge

touches

public abstract boolean touches(TransitionEdge other)
Whether this edge touches the same position the other does

Specified by:
touches in class TransitionEdge

sequence

public Sequence sequence()

transformedBy

public abstract SequenceEdge transformedBy(SequenceMapping dsp)
Transform the edge by the given mapping


printOn

public void printOn(java.io.PrintWriter oo)
Description copied from class: Heaper
This should rarely be overridden. In Tofu, it prints ClassName(...), where ... is either produced by printInsideOn or is ??? if printInsideOn it not overridden.

Overrides:
printOn in class Heaper

printTransitionOn

public abstract void printTransitionOn(java.io.PrintWriter oo,
                                       boolean entering,
                                       boolean touchesPrevious)
Print a description of this transition

Specified by:
printTransitionOn in class TransitionEdge

sendSelfTo

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


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