Evaluating Software Design Patterns
— the "Gang of Four" patterns implemented in Java 6

Uses of Class
dk.rode.thesis.memento.SequenceMemento

Packages that use SequenceMemento
dk.rode.thesis.bridge Implementations and examples of the Bridge design pattern [Gamma95, p.151]. 
dk.rode.thesis.command Implementations and examples of the Command design pattern [Gamma95, p.233]. 
dk.rode.thesis.memento Implementations and examples of the Memento design pattern [Gamma95, p.283]. 
 

Uses of SequenceMemento in dk.rode.thesis.bridge
 

Methods in dk.rode.thesis.bridge that return SequenceMemento
 SequenceMemento<E> MemorizableSequenceAbstraction.getMemorizableState()
           
 

Methods in dk.rode.thesis.bridge that return types with arguments of type SequenceMemento
private static
<E> Map<MemorizableSequence<E>,SequenceMemento<E>>
Main.createMap()
          Creates a new map to store (memorizable sequence, memento) pairs.
 

Methods in dk.rode.thesis.bridge with parameters of type SequenceMemento
 void MemorizableSequenceAbstraction.setMemorizableState(SequenceMemento<E> memento)
           
 

Method parameters in dk.rode.thesis.bridge with type arguments of type SequenceMemento
private static
<E> boolean
Main.create(Log out, Map<MemorizableSequence<E>,SequenceMemento<E>> mementos, MemorizableSequence<E> sequence)
          Creates a new memento acquired from sequence.
private static
<E> boolean
Main.use(Log out, Map<MemorizableSequence<E>,SequenceMemento<E>> mementos, MemorizableSequence<E> sequence)
          Updates sequence using the relevant memento stored in mementos.
 

Uses of SequenceMemento in dk.rode.thesis.command
 

Fields in dk.rode.thesis.command declared as SequenceMemento
private  SequenceMemento<E> SequenceCommand.memento
          A sequence memento to restore the previous state if SequenceCommand.sequence is a memorizable sequence.
 

Uses of SequenceMemento in dk.rode.thesis.memento
 

Subclasses of SequenceMemento in dk.rode.thesis.memento
 class GuardedSequenceMemento<E>
          A guarded sequence memento offer the same functionality as SequenceMemento, but enforce access rules to ensure that only a (memorizable) sequence can set or get the memento state.
 

Methods in dk.rode.thesis.memento that return SequenceMemento
 SequenceMemento<Integer> RangeSequence.getMemorizableState()
           
 SequenceMemento<E> MemorizableSequence.getMemorizableState()
          Returns a sequence memento representing the current state of this sequence.
 SequenceMemento<String> MemorizableEnglishAlphabetSequence.getMemorizableState()
           
 

Methods in dk.rode.thesis.memento that return types with arguments of type SequenceMemento
private static
<E> Map<MemorizableSequence<E>,SequenceMemento<E>>
Main.createMap()
          Creates a new map to store (memorizable sequence, memento) pairs.
 

Methods in dk.rode.thesis.memento with parameters of type SequenceMemento
 void MemorizableSequence.setMemorizableState(SequenceMemento<E> memento)
          Updates this sequence to the state supplied as memento.
 void RangeSequence.setMemorizableState(SequenceMemento<Integer> memento)
           
 void MemorizableEnglishAlphabetSequence.setMemorizableState(SequenceMemento<String> memento)
           
 

Method parameters in dk.rode.thesis.memento with type arguments of type SequenceMemento
private static
<E> boolean
Main.checkAccess(Log out, Map<MemorizableSequence<E>,SequenceMemento<E>> mementos, Sequence<E> sequence)
          Checks access rules to guarded mementos.
private static
<E> boolean
Main.create(Log out, Map<MemorizableSequence<E>,SequenceMemento<E>> mementos, MemorizableSequence<E> sequence)
          Creates a new memento acquired from sequence.
private static
<E> boolean
Main.use(Log out, Map<MemorizableSequence<E>,SequenceMemento<E>> mementos, MemorizableSequence<E> sequence)
          Updates sequence using the relevant memento stored in mementos.
 

Constructors in dk.rode.thesis.memento with parameters of type SequenceMemento
MemorizableException(SequenceMemento<?> memento)
          Constructor.
 


Gunni Rode / rode.dk

Feel free to use and/or modify the Java 6 source code developed for this thesis AT YOUR OWN RISK, but note that the source code comes WITHOUT ANY — and I do mean WITHOUT ANY — form of warranty WHAT SO EVER!

The original thesis and source code are available at rode.dk/thesis.