
jadex.bdi.examples.disastermanagement.commander2.BrigadeSelector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jadex-applications-bdi Show documentation
Show all versions of jadex-applications-bdi Show documentation
The Jadex BDI applications package contain
several example applications, benchmarks and
testcases using BDI agents.
The newest version!
package jadex.bdi.examples.disastermanagement.commander2;
import jadex.bridge.service.IService;
import jadex.bridge.service.search.IResultSelector;
import jadex.commons.future.IFuture;
import java.util.Collection;
import java.util.Map;
/**
* Select a fire brigade.
*/
public class BrigadeSelector implements IResultSelector
{
/**
* Called for each searched service provider node.
* @param services The provided services (class->list of services).
* @param results The collection to which results should be added.
*/
public IFuture> selectServices(Map, Collection> services)// context
{
// IGoal goal = context.get("$goal");
return null;
}
/**
* Test if the search result is sufficient to stop the search.
* @param results The collection of selected services.
* @return True, if the search should be stopped.
*/
public boolean isFinished(Collection results)
{
return false;
}
/**
* Get the cache key.
* Needs to identify this element with respect to its important features so that
* two equal elements should return the same key.
*/
public Object getCacheKey()
{
return null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy