Examples of MemoryStateFactory


Examples of com.almende.eve.state.MemoryStateFactory

   *
   * @param args the arguments
   */
  public static void main(final String[] args) {
    final AgentHost host = AgentHost.getInstance();
    host.setStateFactory(new MemoryStateFactory());
    try {
     
      final MyFirstAgent agent = host.createAgent(MyFirstAgent.class,
          "MyFirstAgent");
      agent.callMyself();
View Full Code Here

Examples of com.almende.eve.state.MemoryStateFactory

  private final static Logger logger = Logger.getLogger(AgentFactory.class
      .getSimpleName());

  protected AgentFactory() {
    // ensure there is at least a memory state service
    setStateFactory(new MemoryStateFactory());

    // ensure there is always an HttpService for outgoing calls
    addTransportService(new HttpService());
  }
View Full Code Here

Examples of com.almende.eve.state.MemoryStateFactory

      setSchedulerFactory(config);
      addAgents(config);
     
    } else {
      // ensure there is at least a memory state service
      setStateFactory(new MemoryStateFactory());
      // ensure there is always an HttpService for outgoing calls
      addTransportService(new HttpService());
    }
  }
View Full Code Here

Examples of com.almende.eve.state.MemoryStateFactory

   *
   * @param args
   */
  public static void main(String[] args) {
    AgentHost host = AgentHost.getInstance();
    host.setStateFactory(new MemoryStateFactory());
    try {
     
      MyFirstAgent agent = host.createAgent(MyFirstAgent.class, "MyFirstAgent");
      agent.callMyself();
     
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.