ResourceProgramManager (Object)

Represents the Resource Program manager of a resource.

Role: Resource Program manager is the object used to access the tasks associated to the resource.
The following code snippet can be used to obtain the Resource Program manager from the robot product.
   Dim objResourceProgramManager As ResourceProgramManager
   Dim objRobot as Product
   
   Set objResourceProgramManager = objRobot.GetTechnologicalObject("ResourceProgramManager" )
 

Methods


Sub GetAllTasks( oTaskList)
Retrieves all the Tasks corresponding to this Resource.
Parameters:
oTaskList
The list of Tasks.
Returns:
An HRESULT.
Legal values:
S_OK
The Tasks were corrrectly retrieved
E_FAIL
The Tasks were not corrrectly retrieved
Example:
The following example retrieves the list of tasks on the resource.
   Dim objResourceProgramManager As ResourceProgramManager
   Dim TaskList(3) As Task
   ..
   objResourceProgramManager.GetAllTasks TaskList
   
Sub GetTask( iTaskName, oTask)
Retrieves the Tasks corresponding to the given Task Name.
Parameters:
iTaskName
The name of the Task.
oTask
The output Task.
Returns:
An HRESULT.
Legal values:
S_OK
The Task was corrrectly retrieved
E_FAIL
The Task was not corrrectly retrieved
Example:
The following example Retrieves the task corresponding the given task name.
   Dim objResourceProgramManager As ResourceProgramManager
   Dim oTask As Task
   ..
   objResourceProgramManager.GetTask  "RobotTask.1", oTask