package player; import player.playeragent.*; /** The initial Generic Player for SDG... */ public class GenericPlayer implements PlayerI{ private BuyAgent buyAgent = new BuyAgent(); private CreateAgent createAgent = new CreateAgent(); private DeliverAgent deliverAgent = new DeliverAgent(); private FinishAgent finishAgent= new FinishAgent(); /** Invoked (externally) by the IQ evaluator */ public GenericPlayer(){} /** Run (externally) by the administrator when it's 'my' turn */ public static void main(String[] args){ if(args.length == 0){ //** Construct a few of the classes from libraries to be // sure they are in the JAR's class path /* DemeterF */new edu.neu.ccs.demeterf.ID(){}; /* Gen */new gen.Buy(); /* Player-Utils */new utils.DocumentHandler(); /* IR 2.0 */new edu.neu.ccs.evergreen.ir.RelationCore(); /* Will G */new edu.neu.ccs.satsolver.SATSolverUtil(); System.out.println(" * Load Tests Successful"); return; } String pNum = args[0]; //secretDir = args[1]; new PlayerRunner(pNum,new GenericPlayer()).main(); } public String getName(){ return "GenericPlayer2"; } public BuyAgentI getBuyAgent(){ return buyAgent; } public CreateAgentI getCreateAgent(){ return createAgent; } public DeliverAgentI getDeliverAgent(){ return deliverAgent; } public FinishAgentI getFinishAgent(){ return finishAgent; } }