public abstract class SwitchTask extends AbstractTask
| Constructor and Description |
|---|
SwitchTask(TransitionMatcher[] onMatchers,
TransitionMatcher... offMatchers)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(Transition transition)
Checks if given
transition matches to any of target
matchers. |
void |
perform(Transition transition)
Performs desired actions for given
transition. |
protected abstract void |
performOff(Transition trasition)
Performs for switched off.
|
protected abstract void |
performOn(Transition transition)
Performs for switched on.
|
public SwitchTask(TransitionMatcher[] onMatchers, TransitionMatcher... offMatchers)
onMatchers - matchers for switching on; none null; none emptyoffMatchers - matchers for switching off; none null; none emptypublic boolean matches(Transition transition)
Tasktransition matches to any of target
matchers.matches in interface Taskmatches in class AbstractTasktransition - transition to match.public void perform(Transition transition)
Tasktransition.transition - transitionprotected abstract void performOn(Transition transition)
transition - transitionprotected abstract void performOff(Transition trasition)
trasition - transitionCopyright © 2011-2012. All Rights Reserved.