Main Content

getResourceNamesImpl

Class: matlab.DiscreteEventSystem
Namespace: matlab

Define resource pools from which to acquire resources

Syntax

resourceNames = getResourceNamesImpl(obj)

Description

resourceNames = getResourceNamesImpl(obj) defines resource pools from which the discrete event system acquires resources.

Input Arguments

expand all

Discrete-event System object.

Output Arguments

expand all

Resource pools from which to acquire resources, specified as a vector of MATLAB structures. Use resourceType method to create this array.

Examples

expand all

Use this method together with resourceType to specify the resources of types Test1 and Test2 to be acquired by the entity type Part.

function resourceNames = getResourceNamesImpl(obj)
    % Define the names of the resources to be acquired.
    resourceNames = obj.resourceType('Part', {'Test1', 'Test2'}) ;
end

Version History

Introduced in R2019a