Examples of AgentInterface


Examples of com.almende.eve.agent.AgentInterface

   */
  public List<String> get(@Name("id") final String id)
      throws ClassNotFoundException, InstantiationException,
      IllegalAccessException, InvocationTargetException,
      NoSuchMethodException, IOException {
    final AgentInterface agent = getAgentHost().getAgent(id);
    return (agent != null) ? agent.getUrls() : null;
  }
View Full Code Here

Examples of com.almende.eve.agent.AgentInterface

   */
  public boolean exists(@Name("id") final String id)
      throws ClassNotFoundException, InstantiationException,
      IllegalAccessException, InvocationTargetException,
      NoSuchMethodException, IOException {
    final AgentInterface agent = getAgentHost().getAgent(id);
    return (agent != null);
  }
View Full Code Here

Examples of com.almende.eve.agent.AgentInterface

            if (interval > 0 && !sequential) {
              start(interval);
            }
           
            final String receiverUrl = "local:" + agentId;
            final AgentInterface sender = host.getAgent(agentId);
            if (sender == null) {
              LOG.warning("Agent doesn't exist:" + agentId);
              destroyScheduler(agentId);
              return;
            }
            sender.send(request, URI.create(receiverUrl), null,
                null);
           
            if (interval > 0 && sequential && !cancelled()) {
              start(interval);
            }
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.AgentInterface

*/
public class RunAllSkeletonNoSockets{
 
  public static void main(String[] args){
    //Create the Agent
    AgentInterface theAgent=new SkeletonAgent();
   
    //Create the Environment
    EnvironmentInterface theEnvironment=new SkeletonEnvironment();
   
    LocalGlue localGlueImplementation=new LocalGlue(theEnvironment,theAgent);
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.AgentInterface

*/
public class RunMinesSarsaExperimentNoSockets{
 
  public static void main(String[] args){
    //Create the Agent
    AgentInterface theAgent=new SampleSarsaAgent();
   
    //Create the Environment
    EnvironmentInterface theEnvironment=new SampleMinesEnvironment();
   
    LocalGlue localGlueImplementation=new LocalGlue(theEnvironment,theAgent);
View Full Code Here

Examples of org.rlcommunity.rlglue.codec.AgentInterface

     * the environment variables.
   
     * @param agentClassName
     */
    public static AgentLoader loadAgent(String agentClassName) {
        AgentInterface agent = null;
        try {
            //Have to use the system classloader because if the codec is installed,
            //class.forName will use the ext classloader which won't find your classes.
            agent = (AgentInterface) ClassLoader.getSystemClassLoader().loadClass(agentClassName).newInstance();
        } catch (Exception ex) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.