Skip to content
This repository has been archived by the owner on Oct 3, 2024. It is now read-only.

Cannot specify the type associated to a state in the composite model #27

Closed
juli1 opened this issue Jul 13, 2013 · 3 comments
Closed

Cannot specify the type associated to a state in the composite model #27

juli1 opened this issue Jul 13, 2013 · 3 comments

Comments

@juli1
Copy link
Contributor

juli1 commented Jul 13, 2013

In a composite model, this is not possible to reference types of a state.
For example the following will not work:

composite error behavior
states
[ comp1.Failed.typeval1 and comp2.Failed.typeval2 ]-> Failed.typeval3;
end composite;

But the following will work:

composite error behavior
states
[ comp1.Failed and comp2.Failed]-> Failed;
end composite;

@reteprelief
Copy link
Contributor

The syntax is
[ comp1.Failed{typeval1} and comp2.Failed{typeval2} ]-> Failed.typeval3;

it is a type constraint in that it could be any of a number of types by specifying a type set

@juli1
Copy link
Contributor Author

juli1 commented Jul 16, 2013

The problem is that Failed.typeval3 does not work also :/

@juli1 juli1 reopened this Jul 16, 2013
@reteprelief
Copy link
Contributor

[ comp1.Failed{typeval1} and comp2.Failed{typeval2} ]-> Failed(typeval3);

The right hand side specifies a specific type instance,which is indicated by ()

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants