Examples of Agent


Examples of agent.Agent

    }

    public void update(Observable o, Object arg) {
        String event = (String) arg;
        if (event.equals(EventConstants.AGENT_EVENT)) {
            Agent agent = (Agent) o;
            if (!agent.isAlive()) {
                if (agent.getDnaParams().getSpecies() == AgentConstants.TRACER) {
                    if (agent.getParams().isDuplication()) {
                        ejectAgents(agent);
                    }
                    agent.getWorld().deleteTail(agent);
                }
                killAgent(agent);
            } else if (agent.isDuplicating()) {
                agent.setDuplicating(false);
                ejectAgents(agent);
            }
        } else if (event.equals(GUIConstants.PHOTO)) {
            takeAPhoto = true;
        }
View Full Code Here

Examples of aima.core.agent.Agent

  }

  public void addEnvironmentObject(EnvironmentObject eo) {
    envObjects.add(eo);
    if (eo instanceof Agent) {
      Agent a = (Agent) eo;
      if (!agents.contains(a)) {
        agents.add(a);
        this.updateEnvironmentViewsAgentAdded(a);
      }
    }
View Full Code Here

Examples of ch.idsia.ai.agents.Agent

    public double evaluateLargeSRN (double[][] inputs, double[][] recurrent, double[][] output, int level, int seed) {
        // System.out.println(inputs.length+" "+inputs[0].length);
        // System.out.println(recurrent.length+" "+recurrent[0].length);
        // System.out.println(output.length+" "+output[0].length);
        SRN srn = new SRN (inputs, recurrent, output, recurrent.length, output[0].length);
        Agent agent = new LargeSRNAgent(srn);
        EvaluationOptions options = new CmdLineOptions(new String[0]);
        final int startingSeed = 0;
        options.setLevelRandSeed(seed);
        options.setMaxAttempts(1);
        options.setVisualization(false);
        options.setMaxFPS(true);
        options.setLevelDifficulty(level);
        options.setPauseWorld(false);
        agent.reset();
        options.setAgent(agent);
        Evaluator evaluator = new Evaluator (options);
        EvaluationInfo result = evaluator.evaluate().get(0);
       // System.out.print(".");
        double score = result.computeDistancePassed();
View Full Code Here

Examples of com.adito.agent.client.Agent

  public StandaloneAgent() throws Exception {
   
    configuration = new AgentConfiguration()
    configuration.setGUIClass("com.adito.agent.client.standalone.StandaloneGUI");
    agent = new Agent(configuration);
    agent.init();
   
  }
View Full Code Here

Examples of com.almende.eve.agent.Agent

   * @return urls
   * @throws Exception
   */
  public List<String> create(@Name("id") String id,
      @Name("type") String type) throws Exception {
    Agent agent = getAgentFactory().createAgent(type, id);
    return (agent != null) ? agent.getUrls() : null;
  }
View Full Code Here

Examples of com.barchart.feed.api.Agent

  @Override
  public <V extends MarketData<V>> Agent subscribe(final Class<V> clazz,
      final MarketObserver<V> callback, final String... symbols) {

    final Agent agent = newAgent(clazz, callback);

    agent.include(symbols).subscribe();

    return agent;
  }
View Full Code Here

Examples of com.caucho.bam.actor.Agent

  {
    Mailbox mailbox = createMailbox(actorStream.getAddress(),
                                    actorStream,
                                    mailboxType);
   
    Agent agent = new AbstractAgent(actorStream.getAddress(),
                                    mailbox,
                                    this);
   
    addMailbox(mailbox);
   
View Full Code Here

Examples of com.caucho.bam.actor.Agent

  {
    Mailbox mailbox = createMailbox(actorStream.getAddress(),
                                    actorStream,
                                    mailboxType);
   
    Agent agent = new AbstractAgent(actorStream.getAddress(),
                                    mailbox,
                                    getBroker());
   
    addMailbox(mailbox);
   
View Full Code Here

Examples of com.cumulocity.model.Agent

        //        And I add child devices as per the following:
        //        | parent | child |
        //        | 0      | 1     |
        //        | 2      | 3     |

        ManagedObjectRepresentation agent = aSampleMo().withName("Agent").withType("com.type").with(new Agent()).build();
        ManagedObjectRepresentation device = aSampleMo().withName("Device").withType("com.type").build();
        ManagedObjectRepresentation agent2 = aSampleMo().withName("Agent2").withType("com.type").with(new Agent()).build();
        ManagedObjectRepresentation device2 = aSampleMo().withName("Device2").withType("com.type").build();

        inventoryApi = platform.getInventoryApi();

        agent = inventoryApi.create(agent);
View Full Code Here

Examples of com.day.cq.replication.Agent

        verifyNoMoreInteractions(replicator);
    }

    @Test
    public void testGetFlushAgents() throws Exception {
        final Agent agent1 = mock(Agent.class);
        final Agent agent2 = mock(Agent.class);

        final AgentConfig agentConfig1 = mock(AgentConfig.class);
        final AgentConfig agentConfig2 = mock(AgentConfig.class);

        @SuppressWarnings("unchecked")
        final Map<String, Agent> agents = mock(Map.class);
        final Collection<Agent> agentValues = Arrays.asList(new Agent[]{ agent1, agent2 });

        when(agentManager.getAgents()).thenReturn(agents);

        when(agents.values()).thenReturn(agentValues);

        when(agent1.getId()).thenReturn("Agent 1");
        when(agent1.isEnabled()).thenReturn(true);
        when(agent1.getConfiguration()).thenReturn(agentConfig1);

        when(agent2.getId()).thenReturn("Agent 2");
        when(agent2.isEnabled()).thenReturn(true);
        when(agent2.getConfiguration()).thenReturn(agentConfig2);

        when(agentConfig1.getSerializationType()).thenReturn("flush");
        when(agentConfig2.getSerializationType()).thenReturn("notflush");

        when(agentConfig1.getTransportURI()).thenReturn("http://localhost/dispatcher/invalidate.cache");
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.