Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: attaching attributes to component type definitions

attaching attributes to component type definitions 28 Sep 2011 08:21 #7769

Hello all,
As I worked my way through the attribute specification a question raised:
are component types treated as structured types when it comes to attaching
attributes to single (or a list of) declarations/definitions inside a component?
I was not able to find any reference regarding this issue inside chapter
27 of ETSI ES 201 873-1 V4.3.1 (2011-06) E.g. is the following code allowed?

type component C0 {
var integer cv_i;
const float cc_pi := 3.14;
} with {
display (cv_i, cc_pi) "colour green"
}

BR.,

Uwe Truetsch
The administrator has disabled public write access.

attaching attributes to component type definitions 28 Sep 2011 08:36 #7770

Hi Uwe,

component types are not structured types, see Table 3: Overview of TTCN 3 types. So, the below example is not allowed. This kind of definition/field specifier is allowed for structured types, groups and modules only.

BR, GYorgy
Last Edit: 06 Aug 2013 13:13 by Dirk Tepelmann. Reason: original text in reply
The administrator has disabled public write access.

attaching attributes to component type definitions 28 Sep 2011 09:21 #7771

Why is this restriction necessary? Should be removed.

BR, Jacob Wieland

--
Dr. Jacob Wieland
Software Engineer

Testing Technologies IST GmbH
Michaelkirchstraße 17/18
10179 Berlin, Germany

Phone +49 30 726 19 19 34 Email This email address is being protected from spambots. You need JavaScript enabled to view it.
Fax +49 30 726 19 19 20 Internet www.testingtech.com
Geschäftsführung: Theofanis Vassiliou-Gioles, Stephan Pietsch
Handelsregister HRB 77805, Amtsgericht Charlottenburg Ust ID Nr.: DE 813 143 070

This e-mail may contain confidential and privileged material for the sole use of
the intended recipient. Any review, use, distribution or disclosure by others is
strictly prohibited. If you are not the intended recipient (or authorized to
receive for the recipient), please contact the sender by reply e-mail and delete
all copies of this message.
Last Edit: 06 Aug 2013 13:13 by Dirk Tepelmann. Reason: original text in reply
The administrator has disabled public write access.

attaching attributes to component type definitions 28 Sep 2011 09:47 #7772

Hi,

Depending on the level of usefulness and difficulty to implement. But definitely would improve the implicit omit feature and solve major backward compatibility problems when extending the type system "below" the existing test case behaviour.

Jacob,
cou;ld you submit a CR pl. that we could properly analyse the question?

BR, GYorgy
Last Edit: 06 Aug 2013 13:12 by Dirk Tepelmann. Reason: original text in reply
The administrator has disabled public write access.
  • Page:
  • 1

FacebookTwitterGoogle BookmarksRedditNewsvineTechnoratiLinkedin