pobs
Interface PControl

All Known Implementing Classes:
PDisableActions, PDisableCase, PDisableSkip, PEnableActions, PEnableCase, PEnableSkip, PFirstAlternative, PLongestAlternative, PShortestAlternative

public interface PControl

Interface of all classes which manipulate PDirective.

Author:
Franz-Josef Elmer

Method Summary
 java.lang.Object modifyState(PDirective directive)
          Modifies a sub state of the specified directive.
 void reestablishPreviousState(PDirective directive, java.lang.Object previousState)
          Reestablishes the previous state before modification.
 

Method Detail

modifyState

public java.lang.Object modifyState(PDirective directive)
Modifies a sub state of the specified directive.

Parameters:
directive - Directive to be modified.
Returns:
sub state before modification which allows reestablishing the previous state.

reestablishPreviousState

public void reestablishPreviousState(PDirective directive,
                                     java.lang.Object previousState)
Reestablishes the previous state before modification.

Parameters:
directive - Directive which has been modified.
previousState - Previous state as returned by modifyState(PDirective).