cz.cuni.sposhBot.java
Class JavaBehaviour
java.lang.Object
cz.cuni.sposhBot.java.JavaBehaviour
- Direct Known Subclasses:
- MyBehaviour
public class JavaBehaviour
- extends java.lang.Object
Field Summary |
private java.lang.String[] |
actions
|
protected SPoshBot |
bot
|
protected java.util.logging.Logger |
log
|
private java.lang.String |
name
|
private java.lang.String[] |
senses
|
Constructor Summary |
JavaBehaviour(java.lang.String name,
java.util.logging.Logger log,
SPoshBot bot)
Here is the place to implement your acts and senses
The log domain of a behaviour is set to class name. |
Method Summary |
boolean |
action_doNothing()
|
java.lang.String[] |
getActions()
Returns list with actions ... through Java Reflection
rips names action_XXX() (without params) and returns
list of [names]. |
java.lang.String |
getName()
|
java.lang.String[] |
getSenses()
Returns list with SENSES ... through Java Reflection
rips names sense_XXX() (without params) and returns
list of [names]. |
boolean |
sense_fail()
|
boolean |
sense_succeed()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
private java.lang.String name
actions
private java.lang.String[] actions
senses
private java.lang.String[] senses
log
protected java.util.logging.Logger log
bot
protected SPoshBot bot
JavaBehaviour
public JavaBehaviour(java.lang.String name,
java.util.logging.Logger log,
SPoshBot bot)
- Here is the place to implement your acts and senses
The log domain of a behaviour is set to class name.
getName
public java.lang.String getName()
getActions
public java.lang.String[] getActions()
- Returns list with actions ... through Java Reflection
rips names action_XXX() (without params) and returns
list of [names].
- Returns:
- list with names of actions
getSenses
public java.lang.String[] getSenses()
- Returns list with SENSES ... through Java Reflection
rips names sense_XXX() (without params) and returns
list of [names].
- Returns:
- list with senses of actions
action_doNothing
public boolean action_doNothing()
sense_fail
public boolean sense_fail()
sense_succeed
public boolean sense_succeed()