|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmcgui.SkeletonCaster
mcgui.ExampleCaster
public class ExampleCaster
Simple example of how to build a Multicaster module. This one does not even communicate with anyone else but fulfill integrity and validity nonetheless.
Field Summary |
---|
Fields inherited from class mcgui.SkeletonCaster |
---|
bcom, id, mcui |
Constructor Summary | |
---|---|
ExampleCaster()
|
Method Summary | |
---|---|
void |
basicpeerdown(int peer)
Signals that a peer is down. |
void |
basicreceive(int peer,
java.lang.String message)
Receive a basic message |
void |
cast(int from,
java.lang.String message)
The GUI calls this module to multicast a message, but it only delivers it upwards and output a disclaimer about not guaranteeing agreement. |
Methods inherited from class mcgui.SkeletonCaster |
---|
enableUI, setCommunicator, setUI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ExampleCaster()
Method Detail |
---|
public void cast(int from, java.lang.String message)
from
- The sender of the messagemessage
- The message to be multicastedpublic void basicreceive(int peer, java.lang.String message)
message
- The message receivedpublic void basicpeerdown(int peer)
peer
- The dead peer
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |