Package net.javlov

Examples of net.javlov.State


    }
  }
 
  @Override
  protected State constructObservation(Agent a) {
    State s = super.constructObservation(a);
    double[] data = (double[])s.getData();
    s.setOptionSet( stateOptions[(int)data[0]][(int)data[1]] );
    return s;
  }
View Full Code Here


    lastState = agentBodyMap.get(a).getState(a);
    lastState.setTerminal(episodeEnd);
    return reward.calculateReward(lastState);*/
    //State s = agentBodyMap.get(a).getState(a);
    //s.setTerminal(episodeEnd);
    State s = lastState;
    //System.out.println("Preact: " + s);
    //System.out.println(act.getClass() + " " + act.getID());
    reward.preAction(act, a, s);
   
    act.execute(a);
View Full Code Here

   
    return r;
  }

  protected State constructObservation(Agent a) {
    State s = agentBodyMap.get(a).getObservation(a);
    s.setTerminal(episodeEnd);
    return s;
  }
View Full Code Here

TOP

Related Classes of net.javlov.State

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.