resourceType

Class: matlab.DiscreteEventSystem
Package: matlab

Specify an entity type and the name of the resources to be acquired by the specified entity

Syntax

resType = resourceType(entityType,resourceNames)

Description

resType = resourceType(entityType,resourceNames) specifies an entity type and the corresponding resources that this entity type acquires.

Input Arguments

expand all

The entity type name used in a discrete-event system. For more information, see getEntityTypesImpl.

Array of resources from which the system intends to acquire resources for the defined entity type.

Output Arguments

expand all

Resource types returned as a vector.

Examples

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

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

Introduced in R2019a