Application module: Colour | ISO/TS 10303-1002:2014-02(E) © ISO |
This clause specifies the information requirements for the Colour application module. The information requirements are specified as the Application Reference Model (ARM) of this application module.
NOTE 1 A graphical representation of the information requirements is given in Annex C.
NOTE 2 The mapping specification is specified in 5.1. It shows how the information requirements are met by using common resources and constructs defined or imported in the MIM schema of this application module.
This clause defines the information requirements to which implementations shall conform using the EXPRESS language as defined in ISO 10303-11. The following begins the Colour schema.
EXPRESS specification:
*)
SCHEMA Colour_arm;
(*
This subclause specifies the ARM entities for this module. Each ARM application entity is an atomic element that embodies a unique application concept and contains attributes specifying the data elements of the entity. The ARM entities and definitions are specified below.
EXPRESS specification:
*)
ENTITY Colour;
name : STRING;
END_ENTITY;
(*
Attribute definitions:
name: the name specifies the word or group of words by which the Colour is known.
EXPRESS specification:
*)
ENTITY Externally_defined_colour
SUBTYPE OF (Colour);
source : STRING;
END_ENTITY;
(*
Attribute definitions:
source: the source specifies the identification of the organization responsible for the Colour definition.
EXPRESS specification:
*)
ENTITY Pre_defined_colour
SUBTYPE OF (Colour);
WHERE
WR1: SELF.name IN ['red', 'green', 'blue', 'yellow', 'magenta', 'cyan', 'black', 'white'];
END_ENTITY;
(*
Formal propositions:
WR1: The Pre_defined_colour shall be red, green, blue, yellow, magenta, cyan, black, white.
EXPRESS specification:
*)
ENTITY User_defined_colour
SUBTYPE OF (Colour);
red : REAL;
green : REAL;
blue : REAL;
WHERE
WR1: {0.0 <= red <= 1.0};
WR2: {0.0 <= green <= 1.0};
WR3: {0.0 <= blue <= 1.0};
END_ENTITY;
(*
Attribute definitions:
red: the intensity of the red Colour component.
green: the intensity of the green Colour component.
blue: the intensity of the blue Colour component.
Formal propositions:
WR1: The intensity of the red component shall be a real number between 0.0 and 1.0., inclusive.
WR2: The intensity of the blue component shall be a real number between 0.0 and 1.0., inclusive.
WR3: The intensity of the green component shall be a real number between 0.0 and 1.0, inclusive.
*)
END_SCHEMA; -- Colour_arm
(*
© ISO 2014 — All rights reserved