|
Evaluating Software Design Patterns — the "Gang of Four" patterns implemented in Java 6 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
E - The type of values delivered by applicable stateable sequences.@Participant(value="State") public interface FunctionalState<E>
A functional state encapsulates specific state related
functionality of a stateable sequence.
Transitions between functional states are based on requests
using internal states via the action(Sequence.State, StateableSequence) method.
| Method Summary | |
|---|---|
E |
action(Sequence.State internalState,
StateableSequence<E> sequence)
Depending on the value of the internal state supplied as internalState, the following forms of actions are
inferred:
Sequence.State.START: initialisation requested. |
| Method Detail |
|---|
E action(Sequence.State internalState,
StateableSequence<E> sequence)
internalState, the following forms of actions are
inferred:
Sequence.State.START: initialisation requested.
Sequence.State.RESET: reset requested.
Sequence.State.RESTART: restart requested.
Sequence.State.NORMAL: next value requested.
null: current value requested.
internalState - The internal state representing the requested action;
can be null (current).sequence - The stateable sequence in question; cannot be null.
NullPointerException - If sequence is null.
|
Gunni Rode / rode.dk | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||