|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.alicebot.server.net.listener.AliceChatListener
public abstract class AliceChatListener
An abstract listener.
Field Summary | |
---|---|
protected Bot |
bot
The bot for which this listener works. |
protected java.lang.String |
botID
The id of the bot for which this listener works. |
protected java.util.HashMap |
parameters
The parameters that can be set for this listener. |
Constructor Summary | |
---|---|
AliceChatListener(Bot bot,
java.lang.String name,
java.lang.String[][] parameters)
Creates a new listener with name name . |
Method Summary | |
---|---|
abstract boolean |
checkParameters()
Checks that the parameters that have been set for the listener are okay. |
void |
setParameter(java.lang.String parameterName,
java.lang.String parameterValue)
Sets a parameter for the listener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alicebot.server.core.BotProcess |
---|
shutdown |
Methods inherited from interface java.lang.Runnable |
---|
run |
Field Detail |
---|
protected Bot bot
protected java.lang.String botID
protected java.util.HashMap parameters
Constructor Detail |
---|
public AliceChatListener(Bot bot, java.lang.String name, java.lang.String[][] parameters)
name
.
bot
- the bot for which this listener worksname
- the name to give the listenerparameters
- the parameters for the listener and their default valuesMethod Detail |
---|
public void setParameter(java.lang.String parameterName, java.lang.String parameterValue)
parameterName
- the name of the parameterparameterValue
- the value to set for the parameterpublic abstract boolean checkParameters()
true
if parameters are okay, false
if not
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |