State Attribute: resource-in-use

Problem space: top-ps

This attribute allows the agent to determine which motor resources are currently unavailable to force the agent to wait for the resource. The explicit knowledge that it is busy allows the agent to perform other cognitive tasks while waiting for the completion of the processing.

Substructure of the attribute:

(<top-state> ^resource-in-use <r1> <r2> ... <rn>)
The values <r1>, etc. are constant symbols named by the I/O code that invokes the resource scheduling function. In general, these should be the name of the motor attribute that is busy. This flag will go up when the motor attribute is first used, and will go away at some prespecified later time.

Implementation of input function: CPM_schedule_resource and other functions in simtime.c