Package frsf.cidisi.exercise.arqueologic.situationCalculus

Examples of frsf.cidisi.exercise.arqueologic.situationCalculus.ArqueologicState


public class RecogerCofre extends SituationCalculusAction {

    @Override
    public EnvironmentState execute(AgentState ast, EnvironmentState est) {
      ArqueologicEnvironmentState environmentState = (ArqueologicEnvironmentState) est;
        ArqueologicState agState = ((ArqueologicState) ast);   
        // TODO: Complete Method
        /*if (agState.getPercepcionCofre() == ArqueologicAgentPerception.COFRE_LLENO ) {
          if(agState.getmundo().getCofre(agState.getPosicion()).getPeso() <= agState.getCapacidadRestante()){
          System.out.println("Decidio recoger en "+agState.getPosicion());
          agState.agregarCofre(agState.getmundo().getCofre(agState.getPosicion()));
View Full Code Here

TOP

Related Classes of frsf.cidisi.exercise.arqueologic.situationCalculus.ArqueologicState

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.