All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jadex.micro.examples.hunterprey.service.IHunterPreyEnvironmentService Maven / Gradle / Ivy

Go to download

The Jadex micro applications package contains several example applications, benchmarks and testcases using micro agents.

There is a newer version: 4.0.267
Show newest version
package jadex.micro.examples.hunterprey.service;


/**
 *  Service-based interface to hunter-prey environment.
 */
public interface IHunterPreyEnvironmentService
{
	//-------- constants --------
	
	/** The move direction left. */
	public static final String	DIRECTION_LEFT	= "left"; 
	
	/** The move direction right. */
	public static final String	DIRECTION_RIGHT	= "right"; 
	
	/** The move direction up. */
	public static final String	DIRECTION_UP	= "up"; 
	
	/** The move direction down. */
	public static final String	DIRECTION_DOWN	= "down"; 

	/** Placeholder for "no move" action. */
	public static final String	DIRECTION_NONE	= "none"; 

	//-------- methods --------
	
//	/**
//	 *  Register the calling component as a prey.
//	 *  @return	The subscription will publish the percepts for the prey.
//	 *    Termination of the subscription will destroy the prey avatar.
//	 */
//	public ISubscriptionIntermediateFuture>	registerPrey();
//	
//	/**
//	 *  Perform a move action for the avatar of the calling component.
//	 *  @param direction The move direction.
//	 *  @return	The future returns, when the action is done.
//	 *    If the action could not be performed (e.g. due to obstacles)
//	 *    an exception is returned.
//	 */
//	public IFuture	move(String direction);
//	
//	/**
//	 *  Perform an eat action for the avatar of the calling component.
//	 *  @param food The food to eat.
//	 *  @return	The future returns, when the action is done.
//	 *    If the action could not be performed an exception is returned.
//	 */
//	public IFuture	eat(IFood food);	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy