Interface AspectCallbackListener<T>
-
public interface AspectCallbackListener<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidactivateAspect(T stepControlAspect)Activate the aspect.voidactivateOppositeAspect(T stepControlAspect)Activate the opposite aspect.voiddiscardChanges(Callable<T> func)Discard pending changes.LonggetCurrentTurntablePosition()voidsaveChanges(T originalAspect, Function<StepControlAspect,StepControlAspect> func)Save the changes.voidverifyUniquePosition(T originalAspect, Long position, Long positionOpposite)Verify that the postition is unique.
-
-
-
Method Detail
-
activateAspect
void activateAspect(T stepControlAspect)
Activate the aspect.- Parameters:
stepControlAspect- the aspect
-
activateOppositeAspect
void activateOppositeAspect(T stepControlAspect)
Activate the opposite aspect.- Parameters:
stepControlAspect- the aspect
-
saveChanges
void saveChanges(T originalAspect, Function<StepControlAspect,StepControlAspect> func) throws Exception
Save the changes.- Parameters:
originalAspect- the aspectfunc- the callback function- Throws:
Exception
-
discardChanges
void discardChanges(Callable<T> func) throws Exception
Discard pending changes.- Parameters:
func- the callback function- Throws:
Exception
-
verifyUniquePosition
void verifyUniquePosition(T originalAspect, Long position, Long positionOpposite)
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
-
-