Interface FunctionLogic
- All Known Implementing Classes:
SpawnThreadFunctionLogic,SynchroniseProcessStateFunctionLogic
public interface FunctionLogic
Encapsulates simple logic for a
FunctionState.- Author:
- Daniel Sagenschneider
-
Method Summary
Modifier and TypeMethodDescriptionExecutes the logic.default TeamManagementObtains the responsibleTeamManagementfor thisFunctionLogic.default booleanIndicates if theFunctionLogicrequiresThreadStatesafety.
-
Method Details
-
getResponsibleTeam
Obtains the responsibleTeamManagementfor thisFunctionLogic.- Returns:
TeamManagementresponsible for thisFunctionLogic. May benullto use anyTeam.
-
isRequireThreadStateSafety
default boolean isRequireThreadStateSafety()Indicates if theFunctionLogicrequiresThreadStatesafety.- Returns:
trueshouldFunctionLogicrequireThreadStatesafety.
-
execute
Executes the logic.- Parameters:
flow-Flowthat contains thisFunctionLogic.- Returns:
- Optional
FunctionStateto execute next. - Throws:
Throwable- If logic fails.
-