Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connector with Attribute #9

Open
Jesse-Millwood opened this issue Apr 11, 2017 · 0 comments
Open

Connector with Attribute #9

Jesse-Millwood opened this issue Apr 11, 2017 · 0 comments

Comments

@Jesse-Millwood
Copy link

I am trying to make a connector that has an attribute.
In the CAmkES manual it says:

Components and connectors can have extra data of an arbitrary
type associated with them. These are referred to as attributes. The
description of a component/connector must describe the name of the
attribute and its type. The value of the attribute itself is unspecified.
It is assigned when the entity is instantiated, and this assignment is
referred to as a setting. Attributes are generally used to specialise or
differentiate a component at runtime.

A sample connector that I am trying to make in my top level CAmkES app for a simple case is:

connector NewSharedData {
   from Dataport user_data template "seL4SharedData-from.template.c";
   to Dataport provider_data template "seL4SharedData-to.template.c";
   attribute string attr_string; 
}

When I build the repo I get Unexpected token 'attribute'. If I comment it out, all works fine because it is the same as the standard seL4SharedData connector.

I used the attribute keyword the same as when I make a component and it is fine.

Am I using this wrong or is it not supported anymore?

Setup:

  • Host: Xubuntu 16.04
  • CAmkES 2.3
  • seL4 4.0
@Jesse-Millwood Jesse-Millwood changed the title Attribute with connector Connector with Attribute Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant