Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void action() {
- MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.CFP);
- ACLMessage msg = myAgent.receive(mt);
- if (msg != null) {
- // CFP Message received. Process it
- ...
- }
- else {
- block();
- }
- }
Add Comment
Please, Sign In to add comment