Interface AspectCallbackListener<T>
public interface AspectCallbackListener<T>
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivateAspect(T stepControlAspect) Activate the aspect.voidactivateOppositeAspect(T stepControlAspect) Activate the opposite aspect.voiddiscardChanges(Callable<T> func) Discard pending changes.voidsaveChanges(T originalAspect, Function<StepControlAspect, StepControlAspect> func) Save the changes.voidverifyUniquePosition(T originalAspect, Long position, Long positionOpposite) Verify that the postition is unique.
-
Method Details
-
activateAspect
Activate the aspect.- Parameters:
stepControlAspect- the aspect
-
activateOppositeAspect
Activate the opposite aspect.- Parameters:
stepControlAspect- the aspect
-
saveChanges
void saveChanges(T originalAspect, Function<StepControlAspect, StepControlAspect> func) throws ExceptionSave the changes.- Parameters:
originalAspect- the aspectfunc- the callback function- Throws:
Exception
-
discardChanges
Discard pending changes.- Parameters:
func- the callback function- Throws:
Exception
-
verifyUniquePosition
Verify that the postition is unique.- Parameters:
originalAspect- the aspectposition- the position to verifypositionOpposite- the opposite position to verify
-
getCurrentTurntablePosition
Long getCurrentTurntablePosition()- Returns:
- the current turntable position
-