Package jadex.bridge
Class CheckedAction
- java.lang.Object
- 
- jadex.bridge.CheckedAction
 
- 
- All Implemented Interfaces:
- java.lang.Runnable
 
 public abstract class CheckedAction extends java.lang.Object implements java.lang.RunnableCan be used as external action, which will only be executed when isValid() is true. Further, it is guaranteed that cleanup() will be executed. Contract is: if(isValid()) run(); cleanup();
- 
- 
Field SummaryFields Modifier and Type Field Description protected booleanvalidThe valid flag.
 - 
Constructor SummaryConstructors Constructor Description CheckedAction()Create a new action.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()Cleanup will be executed at the end of the action.booleanisValid()Test if the timed object is valid.voidsetValid(boolean valid)Set the valid state.
 
- 
- 
- 
Method Detail- 
cleanuppublic void cleanup() Cleanup will be executed at the end of the action. Override if cleanup actions are necessary.
 - 
isValidpublic boolean isValid() Test if the timed object is valid.- Returns:
- True, if entry is valid.
 
 - 
setValidpublic void setValid(boolean valid) Set the valid state.
 
- 
 
-