Need for expertise
Phil Spiby
Phil.Spiby at eurostep.com
Tue Nov 19 06:01:01 EST 2002
Pascal,
According to TC2 your code should be allowed.
However, please realise that TC2 never seems to have made it to Geneva!
Dave and I asked a number of times about this and never got a straight
answer from Teresa.
Therefore it is highly likely that tools will not yet support this level
of complexity until Ed2 is released (including all the TC2 changes).
My tool (Eep) doesn't support this at present, it is on my list of
things to do!
Phil
-----Original Message-----
From: Pascal Huau [mailto:pascalhuau at goset.asso.fr]
Sent: 19 November 2002 08:57
To: Phil Spiby; WG11; Jochen Haenisch
Cc: Thomas Hendrix; Nettles, Darla
Subject: Need for expertise
Dear experts,
in a module, we define:
ENTITY double_toleranced_measure_item
SUBTYPE OF (
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.c
ompound_representation_item> compound_representation_item);
SELF\
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.c
ompound_representation_item> compound_representation_item.item_element :
LIST[2:2] OF
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.r
epresentation_item> representation_item;
DERIVE
tolerance_range :
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/modules/e
xtended_measure_representation/sys/5_mim.xml#extended_measure_representa
tion_mim.value_range> value_range :=
SELF\compound_representation_item.item_element[2];
toleranced_measure_value :
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/qualified_measure_schema/qualified_measure_schema.xml#qualified_measure
_schema.measure_representation_item> measure_representation_item :=
SELF\compound_representation_item.item_element[1];
END_ENTITY;
The definition in P43 of compound_representation_item is:
TYPE compound_item_definition = SELECT
(
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.l
ist_representation_item> list_representation_item,
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.s
et_representation_item> set_representation_item);
END_TYPE;
TYPE list_representation_item = LIST[1:?] OF
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.r
epresentation_item> representation_item;
END_TYPE;
TYPE set_representation_item = SET[1:?] OF
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.r
epresentation_item> representation_item;
END_TYPE;
ENTITY compound_representation_item
SUBTYPE OF (
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.r
epresentation_item> representation_item);
item_element :
<file:///D:/Utilisateurs/Huau/Modules/XML_reposit/stepmod/data/resources
/representation_schema/representation_schema.xml#representation_schema.c
ompound_item_definition> compound_item_definition;
END_ENTITY;
Presently, EPM parser raises the following error for
double_toleranced_measure_item:
ERROR : Line 1037: Illegal attribute redeclaration.
Redeclaring attribute: DOUBLE_TOLERANCED_MEASURE_ITEM.ITEM_ELEMENT in
line: 1037
Redeclared attribute: COMPOUND_REPRESENTATION_ITEM.ITEM_ELEMENT in line:
28770
Redeclaration from aggregate type to simple type is illegal
My questions are the following:
- does the present definition of double_toleranced_measure_item conform
to Express Ref language (ed2 or ed1)?
- if not, how should we specify the constraint on the cardinality of
double_toleranced_measure_item.item_element?
Thanks in advance for your help,
Pascal Huau
Association GOSET
107, 111 avenue Clemenceau
92000 Nanterre
France
(tel: +33 1 47252222)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.steptools.com/pipermail/wg11/attachments/20021119/4d176090/attachment.htm
More information about the wg11
mailing list