|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.nukesoft.bot2.lineproc.GenericLineProc
GenericLineProc is an abstract interpretation of the LineProc interface. It provides stub implementations of all the required methods.
Field Summary | |
protected LineProcContext |
context
A reference to this LineProc's LineProcContext. |
protected String |
myCommLibBindID
The bind ID of the comm lib handleing this dialog. |
protected String |
remoteScreenName
The dialog bind name of this LineProc's associated IM client. |
Constructor Summary | |
GenericLineProc()
|
Method Summary | |
void |
bindContext(LineProcContext context)
Binds a context to the line processor. |
protected void |
delay(int minDelay,
int maxDelay)
Causes this thread to sleep for a few seconds. |
abstract void |
handleIM(IM message)
Handles an incomming IM. |
void |
handleWarn(String screenName)
Handles an incomming warning. |
void |
init(String screenName)
Called as soon as a line processor is loaded. |
void |
shutdown()
Shuts down the line processor. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected LineProcContext context
protected String remoteScreenName
protected String myCommLibBindID
Constructor Detail |
public GenericLineProc()
Method Detail |
public void init(String screenName)
LineProc
init
in interface LineProc
screenName
- The name of the dialog that is initializing the
line processor.LineProc.init(java.lang.String)
public void bindContext(LineProcContext context)
LineProc
bindContext
in interface LineProc
context
- The context to bind.LineProc.bindContext(org.nukesoft.bot2.lineproc.LineProcContext)
public abstract void handleIM(IM message)
LineProc
handleIM
in interface LineProc
message
- The incomming message.LineProc.handleIM(org.nukesoft.bot2.core.IM)
public void handleWarn(String screenName)
LineProc
handleWarn
in interface LineProc
screenName
- The screen name doing the warning.LineProc.handleWarn(java.lang.String)
public void shutdown()
LineProc
shutdown
in interface LineProc
LineProc.shutdown()
protected void delay(int minDelay, int maxDelay)
minDelay
- The minimum number of seconds to sleep for.maxDelay
- The maximum number of seconds to sleep for.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |