Skip to content

Problem with the send guards of the transitions in the example "Autonomous Resource Allocation" #39

@aaniculaesei

Description

@aaniculaesei

Hi all,
I am experimenting a bit with the example "Autonomous Resource Allocation" in which different client agents request the allocation of virtual machines through a manager agent.

Running the example as it is listed in the browser yields no problems and the model is built successfully. I want to replace the call of the send guard g(role,cLink,mLink) with the corresponding predicate that evaluates to true, in order to see if the model builds successfully in this case also.

When I change the send guard g(role,cLink,mLink) in the sReserve transition of the client agent to (@cv==clnt), the model is built successfully.

When I replace the send guard g(role,cLink,mLink) in the sRequest transition of the client agent with (cLink==c && @cv==mgr) I get the error receiveAgentReceivePreds is empty.

I also try the following thing:

  • I create the guard guard g2(c:channel) := (channel == c) && (@cv == mgr)
  • I call it as a send guard g2(cLink) in the sRequest transition of the client agent.
  • When I try to build the model, I get the error Failure[10:1]: Error in agent definition.

What am I missing here?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions