Interface ThreadStateContext
-
public interface ThreadStateContextContext for executing aThreadState.- Author:
- Daniel Sagenschneider
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FunctionStatecreateFunction(FunctionLogic logic, ThreadState fallbackThreadState)FunctionStateexecuteFunction(FunctionState function)Executes theFunctionStatereturning the nextFunctionStateto execute.voidflagRequiresThreadStateSafety()Flag theThreadStaterequiresThreadsafety.ManagedObjectContainergetManagedObject(ManagedObjectIndex index)Obtains theManagedObjectContainerfor theManagedObjectIndex.booleanisRequireThreadStateSafety()Indicates if theThreadStaterequiresThreadsafety.
-
-
-
Method Detail
-
isRequireThreadStateSafety
boolean isRequireThreadStateSafety()
Indicates if theThreadStaterequiresThreadsafety.- Returns:
trueifThreadStaterequiresThreadsafety.
-
flagRequiresThreadStateSafety
void flagRequiresThreadStateSafety()
Flag theThreadStaterequiresThreadsafety.
-
createFunction
FunctionState createFunction(FunctionLogic logic, ThreadState fallbackThreadState)
- Parameters:
logic-FunctionLogic.fallbackThreadState- Fall backThreadStateshould there be no currentThreadState.- Returns:
FunctionStatefor theFunctionLogic.
-
executeFunction
FunctionState executeFunction(FunctionState function) throws java.lang.Throwable
Executes theFunctionStatereturning the nextFunctionStateto execute.- Parameters:
function-FunctionStateto be executed.- Returns:
- Next
FunctionStateto be executed. May benull. - Throws:
java.lang.Throwable- Possible failure in executing theFunctionState.
-
getManagedObject
ManagedObjectContainer getManagedObject(ManagedObjectIndex index)
Obtains theManagedObjectContainerfor theManagedObjectIndex.- Parameters:
index-ManagedObjectIndex.- Returns:
ManagedObjectContainer. May benullif not yet instantiated.
-
-