ENTITY colour_rgb SUBTYPE OF (colour_specification); 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; -- colour_rgb |
Entity data types and their attributescolour- colour_specification name: label; colour_rgb red: REAL; green: REAL; blue: REAL; |
colour_associated$colour_rgb (PRESENTATION_RESOURCE_SCHEMA) |
colour_rgb$draughting_pre_defined_colour (PRESENTATION_RESOURCE_SCHEMA) |
colour_rgb$pre_defined_colour (PRESENTATION_RESOURCE_SCHEMA) |
Global rules for this entity data typedependent_instantiable_colour_rgb (AUTOMOTIVE_DESIGN) |
public interface EColour_rgb extends EColour_specificationred (explicit attribute)boolean testRed(EColour_rgb type)double getRed(EColour_rgb type) void setRed(EColour_rgb type, double value) void unsetRed(EColour_rgb type) green (explicit attribute)boolean testGreen(EColour_rgb type)double getGreen(EColour_rgb type) void setGreen(EColour_rgb type, double value) void unsetGreen(EColour_rgb type) blue (explicit attribute)boolean testBlue(EColour_rgb type)double getBlue(EColour_rgb type) void setBlue(EColour_rgb type, double value) void unsetBlue(EColour_rgb type) |
public class CColour_rgb implements EColour_rgbstatic EAttribute attributeRed(EColour_rgb type)static EAttribute attributeGreen(EColour_rgb type) static EAttribute attributeBlue(EColour_rgb type) |
public class AColour_rgb extends AEntitypublic EColour_rgb getByIndex(int index)public EColour_rgb getCurrentMember(SdaiIterator it) |