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 SummaryFields 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 SummaryConstructors Constructor Description RequestMove()Default Constructor.RequestMove(Creature creature, java.lang.String direction)Init Constructor.
 - 
Method SummaryAll 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_UPpublic static final java.lang.String DIRECTION_UP Predefined value "up" for slot direction.- See Also:
- Constant Field Values
 
 - 
DIRECTION_DOWNpublic static final java.lang.String DIRECTION_DOWN Predefined value "down" for slot direction.- See Also:
- Constant Field Values
 
 - 
DIRECTION_LEFTpublic static final java.lang.String DIRECTION_LEFT Predefined value "left" for slot direction.- See Also:
- Constant Field Values
 
 - 
DIRECTION_RIGHTpublic static final java.lang.String DIRECTION_RIGHT Predefined value "right" for slot direction.- See Also:
- Constant Field Values
 
 - 
creatureprotected Creature creature The creature.
 - 
directionprotected java.lang.String direction The movement direction.
 
- 
 - 
Constructor Detail- 
RequestMovepublic RequestMove() Default Constructor.
 RequestMove.
 - 
RequestMovepublic RequestMove(Creature creature, java.lang.String direction) Init Constructor.
 - Parameters:
- creature-
- direction-
 - 
Method Detail- 
getCreaturepublic Creature getCreature() Get the creature of this RequestMove. The creature.- Returns:
- creature
 
 - 
setCreaturepublic void setCreature(Creature creature) Set the creature of this RequestMove. The creature.- Parameters:
- creature- the value to be set
 
 - 
getDirectionpublic java.lang.String getDirection() Get the direction of this RequestMove. The movement direction.- Returns:
- direction
 
 - 
setDirectionpublic void setDirection(java.lang.String direction) Set the direction of this RequestMove. The movement direction.- Parameters:
- direction- the value to be set
 
 - 
toStringpublic java.lang.String toString() Get a string representation of this RequestMove.- Overrides:
- toStringin class- java.lang.Object
- Returns:
- The string representation.
 
 
- 
 
 
- 
 
-