@Override
    protected void setup()
    {
		if (createdByJADE)
		{
			Object[] args = getArguments();
			if (args != null && args.length > 0)
			{
				String first = args[0].toString();
				if (first.equals("full"))
				{
					int numberOfRequests = args.length/3;
					if (args.length%3 == 1)
					{
						for (int i = 0; i < numberOfRequests; i++)
						{
							AID origin		= new AID(args[i*3+1].toString(),false);
							AID destination = new AID(args[i*3+2].toString(),false);
							long waketime	= Integer.parseInt(args[i*3+3].toString());

							addBehaviour(new PassengerGroupAgent.RequestTransportBehaviour(this,waketime,origin,destination));
						}
					}
					else
					{
						System.err.println("ERROR :: PassengerGroupAgent JADE GUI bad arguments");
						this.doDelete();
					}
				}
				else
				{
					for (int i = 0; i < args.length; i++)
					{
						String requestData = args[i].toString();
						
						String []components = requestData.split(" ");
						if (components.length == 3)
						{
							int  o = Integer.parseInt(components[0]);
							int  d = Integer.parseInt(components[1]);
							long t = Integer.parseInt(components[2]);

							AID origin		= new AID("Postaja"+o,false);
							AID destination = new AID("Postaja"+d,false);

							addBehaviour(new PassengerGroupAgent.RequestTransportBehaviour(this,t,origin,destination));
						}
						else
						{
							System.err.println("ERROR :: PassengerGroupAgent JADE GUI bad arguments");
						}
					}
				}
			}
			else
			{
				System.err.println("ERROR :: PassengerGroupAgent JADE GUI bad arguments");
				this.doDelete();
			}
		}
		else
		{
			addBehaviour(new PassengerGroupAgent.RequestTransportBehaviour(this,timeout,originAID,destinationAID));
		}
    }