jadex.bdi.examples.hunterprey_classic.RequestMove 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.
/*
* RequestMove.java Generated by Protege plugin Beanynizer. Changes will be lost!
*/
package jadex.bdi.examples.hunterprey_classic;
import jadex.base.fipa.IComponentAction;
/**
* Java class for concept RequestMove of hunterprey_beans ontology.
*/
public class RequestMove implements IComponentAction
{
//-------- constants ----------
/** Predefined value "up" for slot direction. */
public static String DIRECTION_UP = "up";
/** Predefined value "down" for slot direction. */
public static String DIRECTION_DOWN = "down";
/** Predefined value "left" for slot direction. */
public static String DIRECTION_LEFT = "left";
/** Predefined value "right" for slot direction. */
public static String DIRECTION_RIGHT = "right";
//-------- attributes ----------
/** The creature. */
protected Creature creature;
/** The movement direction. */
protected String direction;
//-------- constructors --------
/**
* Default Constructor.
* Create a new RequestMove
.
*/
public RequestMove()
{
}
/**
* Init Constructor.
* Create a new RequestMove.
* Initializes the object with required attributes.
* @param creature
* @param direction
*/
public RequestMove(Creature creature, String direction)
{
this();
setCreature(creature);
setDirection(direction);
}
//-------- accessor methods --------
/**
* Get the creature of this RequestMove.
* The creature.
* @return creature
*/
public Creature getCreature()
{
return this.creature;
}
/**
* Set the creature of this RequestMove.
* The creature.
* @param creature the value to be set
*/
public void setCreature(Creature creature)
{
this.creature = creature;
}
/**
* Get the direction of this RequestMove.
* The movement direction.
* @return direction
*/
public String getDirection()
{
return this.direction;
}
/**
* Set the direction of this RequestMove.
* The movement direction.
* @param direction the value to be set
*/
public void setDirection(String direction)
{
this.direction = direction;
}
//-------- object methods --------
/**
* Get a string representation of this RequestMove.
* @return The string representation.
*/
public String toString()
{
return "RequestMove(" + "creature=" + getCreature() + ", direction=" + getDirection() + ")";
}
}