Package adams.flow.processor
Interface InteractiveProcessor
-
- All Superinterfaces:
ActorProcessor
,Comparable<ActorProcessor>
,Destroyable
,OptionHandler
,ShallowCopySupporter<ActorProcessor>
- All Known Implementing Classes:
AbstractModifyingInteractiveProcessor
public interface InteractiveProcessor extends ActorProcessor
Interface for processors that interact with the user.- Author:
- fracpete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canInteract(Object obj)
Checks whether interaction can happen with the given object.boolean
doInteract(Object obj)
Does the actual interaction with the user on the given object.-
Methods inherited from interface adams.flow.processor.ActorProcessor
compareTo, getErrors, hasErrors, process, shallowCopy, shallowCopy
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
-
-
-
Method Detail
-
canInteract
boolean canInteract(Object obj)
Checks whether interaction can happen with the given object.- Parameters:
obj
- the current object that the traversal came across- Returns:
- true if interaction should occur for this object
-
doInteract
boolean doInteract(Object obj)
Does the actual interaction with the user on the given object.- Parameters:
obj
- the object to use for interaction- Returns:
- true if successful interaction
-
-