import java.io.IOException;
import jade.core.AID;
import java.util.ArrayList;
import java.util.Scanner;
import jade.core.Agent;

public class DutchModel {

    public static void main(String[] args) throws IOException {
        String option="";
        ArrayList<BiderAgent> bidders= new ArrayList<BiderAgent>();
        System.out.println("Welcome to Fish Dutch Auction!");
        System.out.println("Press 1 to sell a product.");
        System.out.println("Press 2 to Bid for a product.");

        Scanner scan= new Scanner(System.in);
        option= scan.nextLine();
        System.out.println(option);

        if(option.equals("1"))
        {

        }
        else if(option.equals("2"))
        {
           Loader bidderxml = new Loader("Bidders.xml");
           bidders=bidderxml.loadXmlBidders();
           Product p1= new Product("gg",1,"g1",null);

           AuctioneerAgent Ag = new AuctioneerAgent(10,1,1200);
            SellerAgent s1= new SellerAgent (p1);
           AID sel = s1.getSellerAid();
            Ag.setSellerAid(sel);
            Ag.setup();
            s1.setup();

        }
        else
        {
            System.out.println("Wrong input... Time Out!");
        }

    }



}
