
Classes | |
| class | GMResponseHandler |
| class | TaskManagementResult |
Public Member Functions | |
| ManagedComponent () | |
| void | setTaskManager (TaskManagerPrx _tm, Current __current) |
| void | taskDecision (String _id, TaskManagementDecision _decision, Current __current) |
| void | stopInternal () |
Protected Member Functions | |
| String | newTaskID () |
| void | proposeInformationProcessingTask (String _taskID, String _taskName) |
| void | retractInformationProcessingTask (String _taskID) |
| void | taskAdopted (String _taskID) |
| void | taskComplete (String _taskID, TaskOutcome _outcome) |
| void | taskRejected (String _taskID) |
| void | waitForNotifications () |
Protected Attributes | |
| int | m_taskCounter |
Package Attributes | |
| int | m_notifications |
Definition at line 45 of file ManagedComponent.java.
| cast.architecture.ManagedComponent.ManagedComponent | ( | ) |
Definition at line 61 of file ManagedComponent.java.
| String cast.architecture.ManagedComponent.newTaskID | ( | ) | [protected] |
Generate a new unique task id.
Definition at line 156 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.proposeInformationProcessingTask | ( | String | _taskID, | |
| String | _taskName | |||
| ) | [protected] |
Propose the processing of a task.
| _taskID | The id used to refer to this task. | |
| _taskName | The name of the task. |
Definition at line 171 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.retractInformationProcessingTask | ( | String | _taskID | ) | [protected] |
Register a list of tasks that this component can perform.
| _taskDesc | An array of task descriptions. |
| SubarchitectureProcessException | if connection to goal manager is not set or on comms error. Retract the proposal of processing a task. |
| _taskID | The id of the task. |
| SubarchitectureProcessException | if connection to goal manager is not set or on comms error. |
Definition at line 214 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.setTaskManager | ( | TaskManagerPrx | _tm, | |
| Current | __current | |||
| ) |
Definition at line 69 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.stopInternal | ( | ) |
Stop this component. This overridden method also stops the encapsulated thread that forwards change information.
Reimplemented from cast.architecture.WorkingMemoryReaderComponent.
Definition at line 319 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.taskAdopted | ( | String | _taskID | ) | [protected] |
Receive a signal that an information processing task has been accepted.
| _taskID |
Definition at line 225 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.taskComplete | ( | String | _taskID, | |
| TaskOutcome | _outcome | |||
| ) | [protected] |
Signal the outcome of goal processing to the sub-architecture goal manager.
| _taskID | The task id. | |
| _outcome | The task outcome. |
| SubarchitectureProcessException | if connection to goal manager is not set.` |
Definition at line 240 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.taskDecision | ( | String | _id, | |
| TaskManagementDecision | _decision, | |||
| Current | __current | |||
| ) |
Definition at line 300 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.taskRejected | ( | String | _taskID | ) | [protected] |
Receive a signal that an information processing goal has been rejected.
| _taskID |
Definition at line 257 of file ManagedComponent.java.
| void cast.architecture.ManagedComponent.waitForNotifications | ( | ) | [protected] |
Put the process to sleep until a new task notification is received. This method will sleep until either the taskAdopted or taskRejected functions next exit, unless these methods have exited more times than this method has been called. In this case the method does not block, as the assumption is that the process has to process these outstanding notifications first. This latter behaviour was added to fixed bug #31.
Definition at line 275 of file ManagedComponent.java.
int cast.architecture.ManagedComponent.m_notifications [package] |
Count of notifications that are outstanding in the "wait" cycle.
Definition at line 108 of file ManagedComponent.java.
int cast.architecture.ManagedComponent.m_taskCounter [protected] |
Counter for generating task ids.
Definition at line 113 of file ManagedComponent.java.
1.5.8