Interface OfficeMetaData
-
- All Known Implementing Classes:
OfficeMetaDataImpl
public interface OfficeMetaDataMeta-data for theOffice.- Author:
- Daniel Sagenschneider
-
-
Method Summary
-
-
-
Method Detail
-
getOfficeName
java.lang.String getOfficeName()
Obtains the name of theOffice.- Returns:
- Name of the
Office.
-
getOfficeManager
OfficeManager getOfficeManager()
Obtains theOfficeManagerof theOffice.- Returns:
OfficeManagerof theOffice.
-
getMonitorClock
MonitorClock getMonitorClock()
Obtains theMonitorClockfor theOffice.- Returns:
MonitorClockfor theOffice.
-
getProcessMetaData
ProcessMetaData getProcessMetaData()
Obtains theProcessMetaDatafor processes within thisOffice.- Returns:
ProcessMetaDatafor processes within thisOffice.
-
getFunctionLoop
FunctionLoop getFunctionLoop()
Obtains theFunctionLoopfor theOffice.- Returns:
FunctionLoopfor theOffice.
-
getManagedFunctionMetaData
ManagedFunctionMetaData<?,?>[] getManagedFunctionMetaData()
- Returns:
ManagedFunctionMetaDatainstances of thisOffice.
-
getManagedFunctionLocator
ManagedFunctionLocator getManagedFunctionLocator()
Obtains theManagedFunctionLocator.- Returns:
ManagedFunctionLocator.
-
getStartupFunctions
OfficeStartupFunction[] getStartupFunctions()
Obtains theOfficeStartupFunctioninstances for thisOffice.- Returns:
OfficeStartupFunctioninstances for thisOffice.
-
getManagedExecutionFactory
ManagedExecutionFactory getManagedExecutionFactory()
Obtains theManagedExecutionFactoryfor thisOffice.- Returns:
ManagedExecutionFactoryfor thisOffice.
-
createProcess
FunctionState createProcess(FlowMetaData flowMetaData, java.lang.Object parameter, FlowCallback callback, ThreadState callbackThreadState)
Creates a newProcessState.- Parameters:
flowMetaData-FlowMetaDataof the startingFunctionStatefor theProcessState.parameter- Parameter to the startingFunctionState.callback- OptionalFlowCallbackof theProcessState. May benull.callbackThreadState- OptionalThreadStatefor theFlowCallback. May benull.- Returns:
FunctionStateto start processing theProcessState.
-
invokeProcess
ProcessManager invokeProcess(FlowMetaData flowMetaData, java.lang.Object parameter, long delay, FlowCallback callback, ThreadState callbackThreadState, ManagedObject inputManagedObject, ManagedObjectMetaData<?> inputManagedObjectMetaData, int processBoundIndexForInputManagedObject) throws InvalidParameterTypeException
Invokes aProcessState.- Parameters:
flowMetaData-FlowMetaDataof the startingFunctionStatefor theProcessState.parameter- Parameter to the startingFunctionState.delay- Millisecond delay in invoking theProcessState. 0 (or negative value) will invoke immediately on the currentThread.callback- OptionalFlowCallbackof theProcessState. May benull.callbackThreadState- OptionalThreadStatefor theFlowCallback. May benull.inputManagedObject-ManagedObjectthat possibly invoked the newProcessState. This may benulland if so the remaining parameters will be ignored.inputManagedObjectMetaData-ManagedObjectMetaDatafor theManagedObjectthat invoked the newProcessState. Should theManagedObjectbe provided this must then also be provided.processBoundIndexForInputManagedObject- Index of theManagedObjectwithin theProcessState. Ignored ifManagedObjectpassed in isnull.- Returns:
ProcessManagerfor the invokedProcessState.- Throws:
InvalidParameterTypeException- Should the type of parameter be invalid for the initialManagedFunction.
-
createStateManager
StateManager createStateManager()
Creates aStateManager.- Returns:
Statement.
-
-