Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • E escet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Graph
    • Compare
    • Locked Files
  • Issues 92
    • Issues 92
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Releases
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Eclipse ProjectsEclipse Projects
  • Eclipse ESCET (Supervisory Control Engineering Toolkit)
  • escet
  • Issues
  • #222
Closed
Open
Issue created Nov 08, 2021 by Martijn Goorden@mgoorden7u4Reporter

Use of a component parameter as a value is currently not supported.

Use of a component parameter as a value is currently not supported.

The folowing CIF model generates this error:

group def A():
  alg int var1 = 1;
  alg int var2 = 2;
end

group def B(A a):
  alg int x = a.var1;
  alg int y = x + a.var2;
end

group def C(A a):
  b: B(a);
end

a: A();
c: C(a);

While you could rewrite the model as follows, it becomes less clean (and less adaptable once the model of A grows).

group def A():
  alg int var1 = 1;
  alg int var2 = 2;
end

group def B(alg int var1, var2):
  alg int x = var1;
  alg int y = x + var2;
end

group def C(A a):
  b: B(a.var1, a.var2);
end

a: A();
c: C(a);
Assignee
Assign to
Time tracking

Copyright © Eclipse Foundation, Inc. All Rights Reserved.     Privacy Policy | Terms of Use | Copyright Agent