The SEDRIS Data Representation Model
APPENDIX A - Classes
Model Library

Class Name: Model Library

Superclass - <Library>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class specifies the complete list of the unique <Model> instance(s) that are stored in the transmittal. By traversing this library the user can retrieve the generic instances of all <Model> instances.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

Example

  1. A <Model Library> instance might contain a set of <Model> instances representing different kinds of ground vehicles.

FAQs

Consider a consumer who wishes to pre-process all <Model> components of a particular <Model Library> instance for efficiency reasons. Is there a way to uniquely identify <Model> instances, so that a consumer can detect whether a given <Model> instance has already been processed?

Yes. The <Model> instances can be placed in a lookup table in the consuming application, then referenced by the model instances. There are at least two ways to do this via the API.

  1. If the API implementation being used supports the DRM object ID capability, the DRM object ID of the <Model> instance can be used as a lookup. The <Model> instances can be stored in a sorted table or hash table with the index based on the string value of the DRM object ID.

  2. Alternately, retrieve all the <Geometry Model> instances and <Feature Model> instances within the given <Model Library> instance and place them in an array while assigning each the index into the array entry through the use of the API function SE_SetUserData(). When a <Geometry Model Instance> or <Feature Model Instance> is encountered, retrieve the associated <Geometry Model> or <Feature Model>, then retrieve the array index using the API function SE_GetUserData(). The user data will be valid as long as the <Geometry Model> (or <Feature Model>, as the case may be) has not been freed.

Constraints

Composed of (two-way)

Composed of (two-way metadata) (inherited)

Component of (two-way)

Inherited Field Elements

This class has no inherited field elements.
Prev: Model Instance Template Index. Next: Moving Light Behaviour. Up:Index.

Last updated: July 26, 2006 Copyright © 2006 SEDRIS