package frsf.cidisi.exercise.arqueologic.situationCalculus;
import frsf.cidisi.faia.agent.Action;
import frsf.cidisi.faia.agent.ActionFactory;
import frsf.cidisi.exercise.arqueologic.situationCalculus.actions.*;
public class ArqueologicAgentActionFactory extends ActionFactory {
private static ArqueologicAgentActionFactory instance;
private ArqueologicAgentActionFactory() {
}
public static ArqueologicAgentActionFactory getInstance() {
if (instance == null) {
instance = new ArqueologicAgentActionFactory();
}
return instance;
}
@Override
protected String endActionString() {
return "noAction";
}
@Override
protected Action stringToAction(String stringAction) {
Action actionObject = null;
if (stringAction.equals("IrAragaey")) {
actionObject = new IrAragaey();
} else if (stringAction.equals("RecogerCofre")) {
actionObject = new RecogerCofre();
} else if (stringAction.equals("IrBresol")) {
actionObject = new IrBresol();
} else if (stringAction.equals("IrAse")) {
actionObject = new IrAse();
} else if (stringAction.equals("IrBulovoe")) {
actionObject = new IrBulovoe();
} else if (stringAction.equals("IrCabe")) {
actionObject = new IrCabe();
} else if (stringAction.equals("IrCenede")) {
actionObject = new IrCenede();
} else if (stringAction.equals("IrErgintone")) {
actionObject = new IrErgintone();
} else if (stringAction.equals("IrIcaedur")) {
actionObject = new IrIcaedur();
} else if (stringAction.equals("IrMixocu")) {
actionObject = new IrMixocu();
} else if (stringAction.equals("IrPeregaey")) {
actionObject = new IrPeregaey();
} else if (stringAction.equals("IrVinizaile")) {
actionObject = new IrVinizaile();
}
return actionObject;
}
}