/** * Init the agent. */ @AgentCreated public void agentCreated() { // System.out.println("invoked created"); }
/** * Called on agent creation. */ @AgentCreated public void agentCreated() { this.subscribers = new HashMap<String, List<SubscriptionIntermediateFuture<Event>>>(); }
@AgentCreated public void start() { System.out.println("Jetty started"); }
/** * Init the agent. */ @AgentCreated public IFuture<Void> agentCreated() { throw new RuntimeException("Exception in init."); } }
@AgentCreated public void init() { slogans = new ArrayList<String>(); slogans.add("Good luck bastard"); slogans.add("Life is a game"); slogans.add("The sun makes you smile"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); }
/** * The init code. */ @AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); }
@AgentCreated public void init() { // Do not create the map here (only as initial assignment) this.wordtable = new HashMap<String, String>(); wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); wordtable.put("bugger", "Flegel"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); wordtable.put(wordpair[0], wordpair[1]); System.out.println("dictionary is: "+wordtable); } }
@AgentCreated public void init() { // System.out.println("Created: "+this); this.wordtable = new HashMap<String, String>(); this.wordtable.put("coffee", "Kaffee"); this.wordtable.put("milk", "Milch"); this.wordtable.put("cow", "Kuh"); this.wordtable.put("cat", "Katze"); this.wordtable.put("dog", "Hund"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); wordtable.put("bugger", "Flegel"); }
@AgentCreated public void init() { wordtable.put("coffee", "Kaffee"); wordtable.put("milk", "Milch"); wordtable.put("cow", "Kuh"); wordtable.put("cat", "Katze"); wordtable.put("dog", "Hund"); wordtable.put(wordpair[0], wordpair[1]); System.out.println("dictionary is: "+wordtable); } }
/** * Init method. */ @AgentCreated public IFuture<Void> init() { this.rulesystem = new RuleSystem(agent); this.resubscribers = new ArrayList<SubscriptionIntermediateFuture<RuleEvent>>(); return IFuture.DONE; }
/** * After starting, perform initial registration at server. */ @AgentCreated public IFuture<Void> init() { return sendInfo(false); }
/** * Init method. */ @AgentCreated public void agentCreated() { System.out.println("firefly created: "+agent.getComponentIdentifier()); }
/** * Called on agent creation. */ @AgentCreated public void agentCreated() { this.localsubscribers = new HashMap<String, List<SubscriptionIntermediateFuture<Event>>>(); this.repsubscribers = new HashMap<String, List<SubscriptionIntermediateFuture<Event>>>(); this.repsubscriptions = new HashMap<String, List<ReplicationSubscription>>(); this.id = agent.getComponentIdentifier().getName(); }
@AgentCreated public void hello() { System.out.println(agent+" "+agent.getComponentFeature(ICustomFeature.class).someMethod()); } }
@AgentCreated public void init() { System.out.println("Agent created"); IFuture<Collection<ITestService>> fut = agent.getComponentFeature(IRequiredServicesFeature.class).getRequiredServices("testService"); Collection<ITestService> sers = fut.get(); System.out.println("fetched all available services: "+sers.size()); }