Package org.rlcommunity.rlglue.codec.types

Examples of org.rlcommunity.rlglue.codec.types.Action


        fillAbstractType(returnVal);
        return returnVal;
    }

    public Action getAction() {
        Action returnVal = new Action();
        fillAbstractType(returnVal);
        return returnVal;
    }
View Full Code Here


        network.putInt(Network.sizeOf(obs));
        network.putObservation(obs);
    }

    protected void onEnvStep() {
        Action action = network.getAction();
        Reward_observation_terminal rewardObservation = env.env_step(action);

        network.clearSendBuffer();
        network.putInt(Network.kEnvStep);
        network.putInt(Network.sizeOf(rewardObservation));
View Full Code Here

            System.err.println("o came back as null from RL_start");
        }
        return o;
    }
    public synchronized Action RL_agent_start(Observation theObservation) {
        Action theAction=A.agent_start(theObservation);
            if (theAction == null) {
            System.err.println("theAction came back as null from RL_start");
        }
        return theAction;
    }
View Full Code Here

        return RO;
    }


    public synchronized Action RL_agent_step( double theReward, Observation theObservation) {
        Action theAction=A.agent_step(theReward, theObservation);
            if (theAction == null) {
                System.err.println("theAction came back as null from agent_step");
            }
        return theAction;
    }
View Full Code Here

        return rot;
    }

    public synchronized Action RL_agent_start(Observation theObservation) {
        send_abstract_type(theObservation,Network.kRLAgentStart,"RL_agent_start");
        Action theAction=network.getAction();
        return theAction;
    }
View Full Code Here

        return theAction;
    }

    public synchronized Action RL_agent_step(double theReward, Observation theObservation) {
        send_reward_observation(theReward,theObservation,Network.kRLAgentStep,"RL_agent_step");
        Action theAction=network.getAction();
        return theAction;
    }
View Full Code Here

TOP

Related Classes of org.rlcommunity.rlglue.codec.types.Action

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.