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 Creature
creature
The creature.protected java.lang.String
direction
The movement direction.static java.lang.String
DIRECTION_DOWN
Predefined value "down" for slot direction.static java.lang.String
DIRECTION_LEFT
Predefined value "left" for slot direction.static java.lang.String
DIRECTION_RIGHT
Predefined value "right" for slot direction.static java.lang.String
DIRECTION_UP
Predefined 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 Creature
getCreature()
Get the creature of this RequestMove.java.lang.String
getDirection()
Get the direction of this RequestMove.void
setCreature(Creature creature)
Set the creature of this RequestMove.void
setDirection(java.lang.String direction)
Set the direction of this RequestMove.java.lang.String
toString()
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:
toString
in classjava.lang.Object
- Returns:
- The string representation.
-
-
-