Project

General

Profile

Bug #1141

Support #975: Usability Testing and Feedback

Support #1109: Testing the implementation of structs

cannot access struct members in code specification

Added by Anonymous almost 8 years ago. Updated almost 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
-
Start date:
01/10/2013
Due date:
% Done:

100%

Estimated time:

Description

I have a struct like shown in attached screenshot.

In code specification, code

"Output1Int = Input1Struct.xi + Input2Int;"

results in error:
Unknown identifier xi in code specification of StructAdder.

Do I use the wrong syntax, or is the code checker wrong?

Btw: how do I have to write the Initial Message for a struct in the example?

struct.png (22.9 KB) struct.png Anonymous, 01/10/2013 01:48 PM
struct_and_array_test.af3_20 (21.4 KB) struct_and_array_test.af3_20 Anonymous, 01/10/2013 01:55 PM
constraintchecker.png (43.9 KB) constraintchecker.png Anonymous, 01/17/2013 11:47 AM

History

#1 Updated by Anonymous almost 8 years ago

Initial Message: { xi:1, yd:2.0, color:red }

#2 Updated by Anonymous almost 8 years ago

see attached af3_20 file

#3 Updated by Anonymous almost 8 years ago

the posted model can be checked by AF3 now. The correct initial value is { xi:1, yd:2.0, color:red() }

#4 Updated by Anonymous almost 8 years ago

  • Status changed from New to Resolved
  • Assignee changed from Anonymous to Anonymous

#5 Updated by Anonymous almost 8 years ago

  • Status changed from Resolved to In Progress
  • Assignee changed from Anonymous to Anonymous

still errors "unknown identifier XXX in codespecification within..." in case of structs.

See:
org.fortiss.tooling.kernel.extension.data.IConstraintViolation<T>

#6 Updated by Anonymous almost 8 years ago

  • Status changed from In Progress to Feedback
  • Assignee changed from Anonymous to Anonymous
  • % Done changed from 0 to 80

fixed wrong error marker when structure access is used in code specification.

#7 Updated by Anonymous almost 8 years ago

if I use a non existing struct member, there appears a "Model contraints checker" problem popup, see screenshot "constraintchecker.png"

#8 Updated by Anonymous almost 8 years ago

  • Assignee changed from Anonymous to Anonymous
  • % Done changed from 80 to 90

fixed the problem

#9 Updated by Anonymous almost 8 years ago

  • Status changed from Feedback to Closed
  • % Done changed from 90 to 100

ok now

Also available in: Atom PDF