The SEDRIS Data Representation Model
APPENDIX A - Classes
Model Instance Template Index

Class Name: Model Instance Template Index

Superclass - <SEDRIS Abstract Base>

Subclasses

This DRM class is concrete and has no subclasses.

Definition

An instance of this DRM class is used by a <Feature Model Instance> instance (FMI) or <Geometry Model Instance> instance (GMI) to specify, for a given <Expression> component of the FMI / GMI, which <Variable> instance within the instanced <Model> instance's <Interface Template> component is receiving that <Expression> instance as its value for that FMI / GMI.

The mechanism works as follows.

Consider a <Model> instance M that contains <Variable> instances. In order to be semantically valid, M shall have an <Interface Template> component I that, by definition, has an ordered set of association relationships to each <Variable> instance within M.

The <Interface Template> instance I exists to provide access to all <Variable> instances within M, so that all FMI and GMI instances referring to M have a means of specifying values to be plugged into those <Variable> instances for a particular FMI or GMI instance referring to M.

Specifically, a model instance object referring to M (whether a <Feature Model Instance> instance or a <Geometry Model Instance> instance) provides a set of <Expression> instances to be plugged in to M's <Variable> instances. For a <Model> M with N <Variable> instances, M's <Interface Template> component has 1..N ordered associations, one to each <Variable> instance within M. Each model instance of M supplies N <Expression> instances, together with a <Model Instance Template Index> instance for each <Expression> instance. The index within the <Model Instance Template Index> instance for a given <Expression> component specifies which of the N <Variable> instances of M is to be supplied with that <Expression> instance as its value.

Primary Page in DRM Diagram:

Secondary Pages in DRM Diagram:

Example

See <Interface Template> for examples.

FAQs

What restrictions are there on the value of the index field?

The index is a one-based index, which (as described in the definition of <Model Instance Template Index>) serves as an index into the ordered list of <Expression> instances provided by the given <Model> instance's <Interface Template> component.

Consequently, if the <Model> instance contains N <Variable> instances, the <Interface Template> instance has N ordered associates, so the value of a <Model Instance Template Index> instance for a given <Expression> instance being supplied by a model instance shall be between 1 and N inclusive.

See also the constraints for this class, and for <Feature Model Instance>, <Geometry Model Instance>.

Constraints

Inherited Field Elements

This class has no inherited field elements.

Field Elements

SE_Integer_Positive index; (notes)

Notes

Constraint Notes

1

No Notes supplied.

2 A given model instance is not permitted to supply conflicting <Expression> instances for a given <Variable> instance. Therefore, for any model instance instance, all its <Model Instance Template Index> instances shall be unique.

Fields Notes

index

Given the <Model> instance M that is being instantiated, the index field specifies an index into the ordered <Variable> list of the <Interface Template> component of M.


Prev: Model. Next: Model Library. Up:Index.

Last updated: August 23, 2005 Copyright © 2005 SEDRIS