public class SenderAgent extends Agent {
public static final String ARTIFACT_NAME = "SendReceiveArtifact";
protected void setup() {
addBehaviour(new OneShotBehaviour() {
@Override
public void action() {
ArtifactId art = Role.createArtifact(ARTIFACT_NAME, CommunicationArtifactImpl.class);
CARole user = (CARole)(Role.enact(CommunicationArtifact.CA_ROLE, art, this, myAgent.getAID()));