|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.aitools.programd.util.Heart
public class Heart
A Heart beats. At a configurable interval, it calls pulse() methods on some objects (currently only the parent static Multiplexor) in order to provide assurance that the bot server is alive.
| Constructor Summary | |
|---|---|
Heart(int pulserateToUse)
Creates a new Heart with the given pulse rate. |
|
| Method Summary | |
|---|---|
void |
addPulse(Pulse pulse)
Adds a Pulse to the registered list. |
void |
pulse()
Emits any registered pulses. |
void |
start()
Starts the heart (if the pulse is greater than zero). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Heart(int pulserateToUse)
pulserateToUse - the pulse rate to use| Method Detail |
|---|
public void start()
public void addPulse(Pulse pulse)
pulse - the Pulse to be addedpublic void pulse()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||