|
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 this stateable sequence.@Participant(value="Context") public interface StateableSequence<E>
A stateable sequence is implemented internally using
functional state
objects to
determine the current functional state.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface dk.rode.thesis.meta.model.Sequence |
---|
Sequence.State |
Method Summary | |
---|---|
FunctionalState<E> |
getFunctionalState()
Returns the functional state currently
set for this stateable sequence if this sequence allows disclosure
of such states. |
FunctionalState<E> |
setFunctionalState(FunctionalState<E> functionalState,
Sequence.State internalState)
Updates the functional state for this
stateable sequence to functionalState , as well as the
internal state to state , if supplied. |
Methods inherited from interface dk.rode.thesis.meta.model.Sequence |
---|
bounded, consistent, copy, current, next, reset, state, unique |
Methods inherited from interface dk.rode.thesis.strategy.Stringable |
---|
getStringablePolicy, toString |
Method Detail |
---|
FunctionalState<E> getFunctionalState()
state
currently
set for this stateable sequence if this sequence allows disclosure
of such states.
A functional state is not the same as an internal sequence
state
, but functional states will update the
internal state.
setFunctionalState(FunctionalState, Sequence.State)
FunctionalState<E> setFunctionalState(FunctionalState<E> functionalState, Sequence.State internalState)
state
for this
stateable sequence to functionalState
, as well as the
internal state
to state
, if supplied.
A functional state is not the same as an internal sequence
state, but functional states will update the internal state. After
the functional sequence state has been set, its
FunctionalState.action(Sequence.State, StateableSequence)
method is invoked using the internal state supplied as argument.
functionalState
- The functional state; cannot be null.internalState
- The internal state; can be null.
NullPointerException
- If functionalState
is null.
IllegalStateException
- If functionalState
cannot be set, or
if it does not accept a internalState
request.getFunctionalState()
|
Gunni Rode / rode.dk | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |