Supertype-subtypes: Example

Entity definition in EXPRESS

ENTITY named_unit

SUPERTYPE OF (ONE OF (length_unit, mass_unit, time_unit)

ANDOR (ONEOF (si_unit, conversion_based_unit)));

dimensions : dimensional_exponents;

END_ENTITY;

ENTITY si_unit ;

SUBTYPE OF (named_unit);

prefix : OPTIONAL si_prefix;

name : si_unit_name;

DERIVE

SELF\named_unit.dimensions : dimensional_exponents := dimensions_for_si_unit (SELF.name);

END_ENTITY;

ENTITY length_unit ;
SUBTYPE OF (named_unit);
END_ENTITY;

Previous slide Next slide Back to first slide View graphic version

CIS/2 - online

This web site is hosted and maintained by 

SCI Home PageThe Steel Construction Institute

Copyright © 1999, 2000, 2003.  All rights reserved. 
Last modified: Monday February 21, 2000.

Questions or problems regarding this web site should be directed to Andrew Crowley.

CIS/2 is based on deliverables of the Eureka EU130 CIMsteel Project.

cimsteel_logo.gif (2358 bytes)

Copyright ©  The CIMsteel Collaborators.
CIMsteel is a Registered Trademark.

Other products mentioned are registered trademarks or trademarks of their respective companies