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?
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 totrue, in order to see if the model builds successfully in this case also.When I change the send guard
g(role,cLink,mLink)in thesReservetransition of the client agent to(@cv==clnt), the model is built successfully.When I replace the send guard
g(role,cLink,mLink)in thesRequesttransition of the client agent with(cLink==c && @cv==mgr)I get the errorreceiveAgentReceivePreds is empty.I also try the following thing:
guard g2(c:channel) := (channel == c) && (@cv == mgr)g2(cLink)in thesRequesttransition of the client agent.Failure[10:1]: Error in agent definition.What am I missing here?