cast.architecture.SubarchitectureTaskManager Class Reference

Inheritance diagram for cast.architecture.SubarchitectureTaskManager:

cast.architecture.WorkingMemoryReaderComponent cast.interfaces._TaskManagerOperations cast.architecture.WorkingMemoryWriterComponent cast.interfaces._WorkingMemoryReaderComponentOperations cast.interfaces._WorkingMemoryReaderComponentOperations cast.architecture.WorkingMemoryAttachedComponent cast.interfaces._WorkingMemoryAttachedComponentOperations cast.interfaces._WorkingMemoryAttachedComponentOperations cast.core.SubarchitectureComponent cast.interfaces._WorkingMemoryAttachedComponentOperations cast.interfaces._CASTComponentOperations cast.interfaces._CASTComponentOperations cast.core.CASTComponent cast.interfaces._CASTComponentOperations cast.interfaces._CASTComponentOperations cast.architecture.AlwaysPositiveTaskManager

List of all members.

Public Member Functions

 SubarchitectureTaskManager ()
void stopInternal ()
void proposeTask (String _component, String _taskID, String _taskName, Current __current)
void retractTask (String _component, String _taskID, Current __current)
void taskComplete (String _component, String _taskID, TaskOutcome _outcome, Current __current)
void addManagedComponent (ManagedComponentPrx _comp, Current __current)

Protected Member Functions

void sendTaskDecision (String _component, String _taskID, TaskManagementDecision _decision)
abstract void taskCompleted (String _component, String _taskID, TaskOutcome _data)
abstract void taskProposed (String _component, String _taskID, String _taskName)
abstract void taskRetracted (String _component, String _taskID)
void waitForProposals ()
void waitForCompletions ()

Protected Attributes

Object m_proposalLock
Object m_completionLock
final HashMap< String,
ManagedComponentPrx
m_components


Detailed Description

Abstract class for a subarchitecture task manager. This still uses a fairly threading-heavy approach that needs to be revised.

Author:
nah

Definition at line 42 of file SubarchitectureTaskManager.java.


Constructor & Destructor Documentation

cast.architecture.SubarchitectureTaskManager.SubarchitectureTaskManager (  ) 

Constructor.

Definition at line 163 of file SubarchitectureTaskManager.java.


Member Function Documentation

void cast.architecture.SubarchitectureTaskManager.addManagedComponent ( ManagedComponentPrx  _comp,
Current  __current 
)

Definition at line 337 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.proposeTask ( String  _component,
String  _taskID,
String  _taskName,
Current  __current 
)

Definition at line 301 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.retractTask ( String  _component,
String  _taskID,
Current  __current 
)

Definition at line 313 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.sendTaskDecision ( String  _component,
String  _taskID,
TaskManagementDecision  _decision 
) [protected]

Send a task management decision to component in the same subarchitecture.

Parameters:
_ipg The task that the decision is about.
_decision The decision that has been reached about the task.

Definition at line 191 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.stopInternal (  ) 

Stop this component. This overridden method also stops the encapsulated thread that forwards change information.

See also:
balt.core.processes.FrameworkComponent.stop()

Reimplemented from cast.architecture.WorkingMemoryReaderComponent.

Definition at line 170 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.taskComplete ( String  _component,
String  _taskID,
TaskOutcome  _outcome,
Current  __current 
)

Definition at line 323 of file SubarchitectureTaskManager.java.

abstract void cast.architecture.SubarchitectureTaskManager.taskCompleted ( String  _component,
String  _taskID,
TaskOutcome  _data 
) [protected, pure virtual]

Receive a task completion event.

Parameters:
_component The component that has completed the task.
_data The completion result.

Implemented in cast.architecture.AlwaysPositiveTaskManager.

abstract void cast.architecture.SubarchitectureTaskManager.taskProposed ( String  _component,
String  _taskID,
String  _taskName 
) [protected, pure virtual]

Receive a task proposal event.

Parameters:
_component The component proposing the task.
_data The task instance information.

Implemented in cast.architecture.AlwaysPositiveTaskManager.

abstract void cast.architecture.SubarchitectureTaskManager.taskRetracted ( String  _component,
String  _taskID 
) [protected, pure virtual]

Receive a task registration event.

Parameters:
_src The component registering the task.
_desc The task description. Receive a task retraction event.
_src The component retracting the task.
_taskID The task idn.

Implemented in cast.architecture.AlwaysPositiveTaskManager.

void cast.architecture.SubarchitectureTaskManager.waitForCompletions (  )  [protected]

Wait until new task completion information is received. This method causes the current thread to wait until the next exit of taskCompleted;

Definition at line 290 of file SubarchitectureTaskManager.java.

void cast.architecture.SubarchitectureTaskManager.waitForProposals (  )  [protected]

Wait until new task proposal information is received. This method causes the current thread to wait until the next exit of either taskProposed or taskRetracted.

Definition at line 275 of file SubarchitectureTaskManager.java.


Member Data Documentation

Definition at line 155 of file SubarchitectureTaskManager.java.

Definition at line 157 of file SubarchitectureTaskManager.java.

Thread that forwards task completion events to the subclass.

Author:
nah Thread that forwards task proposal events to the subclass.

nah Thread that forwards task registration events to the subclass.

nah Thread that forwards task retraction events to the subclass.

nah Connection for goal management result.

Definition at line 153 of file SubarchitectureTaskManager.java.


The documentation for this class was generated from the following file:

Generated on Mon Jun 13 15:55:46 2011 for CAST Java by  doxygen 1.5.8