Class RequestMove
- java.lang.Object
-
- jadex.bdi.examples.hunterprey_classic.RequestMove
-
- All Implemented Interfaces:
IComponentAction
public class RequestMove extends java.lang.Object implements IComponentAction
Java class for concept RequestMove of hunterprey_beans ontology.
-
-
Field Summary
Fields Modifier and Type Field Description protected CreaturecreatureThe creature.protected java.lang.StringdirectionThe movement direction.static java.lang.StringDIRECTION_DOWNPredefined value "down" for slot direction.static java.lang.StringDIRECTION_LEFTPredefined value "left" for slot direction.static java.lang.StringDIRECTION_RIGHTPredefined value "right" for slot direction.static java.lang.StringDIRECTION_UPPredefined value "up" for slot direction.
-
Constructor Summary
Constructors Constructor Description RequestMove()Default Constructor.RequestMove(Creature creature, java.lang.String direction)Init Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreaturegetCreature()Get the creature of this RequestMove.java.lang.StringgetDirection()Get the direction of this RequestMove.voidsetCreature(Creature creature)Set the creature of this RequestMove.voidsetDirection(java.lang.String direction)Set the direction of this RequestMove.java.lang.StringtoString()Get a string representation of this RequestMove.
-
-
-
Field Detail
-
DIRECTION_UP
public static final java.lang.String DIRECTION_UP
Predefined value "up" for slot direction.- See Also:
- Constant Field Values
-
DIRECTION_DOWN
public static final java.lang.String DIRECTION_DOWN
Predefined value "down" for slot direction.- See Also:
- Constant Field Values
-
DIRECTION_LEFT
public static final java.lang.String DIRECTION_LEFT
Predefined value "left" for slot direction.- See Also:
- Constant Field Values
-
DIRECTION_RIGHT
public static final java.lang.String DIRECTION_RIGHT
Predefined value "right" for slot direction.- See Also:
- Constant Field Values
-
creature
protected Creature creature
The creature.
-
direction
protected java.lang.String direction
The movement direction.
-
-
Constructor Detail
-
RequestMove
public RequestMove()
Default Constructor.
RequestMove.
-
RequestMove
public RequestMove(Creature creature, java.lang.String direction)
Init Constructor.
- Parameters:
creature-direction-
-
Method Detail
-
getCreature
public Creature getCreature()
Get the creature of this RequestMove. The creature.- Returns:
- creature
-
setCreature
public void setCreature(Creature creature)
Set the creature of this RequestMove. The creature.- Parameters:
creature- the value to be set
-
getDirection
public java.lang.String getDirection()
Get the direction of this RequestMove. The movement direction.- Returns:
- direction
-
setDirection
public void setDirection(java.lang.String direction)
Set the direction of this RequestMove. The movement direction.- Parameters:
direction- the value to be set
-
toString
public java.lang.String toString()
Get a string representation of this RequestMove.- Overrides:
toStringin classjava.lang.Object- Returns:
- The string representation.
-
-
-