package ld5_34;

import jade.core.Agent;

public class Simple extends Agent {
    private void print(String data, String elgesenosId) {
        if (elgesenosId != null) {
            System.out.println("A[" + getLocalName() + " | " + elgesenosId + "] " + data);
        } else {
            System.out.println("A[" + getLocalName() + "] " + data);
        }
    }
    @Override
    protected void setup() {
        print("Hello, Simple agent", null);
    }
    public void takeDown() 
    {     
        print("Simple agent, taken down", null);
    } 
}