mcgui
Class SkeletonCaster

java.lang.Object
  extended by mcgui.SkeletonCaster
All Implemented Interfaces:
Multicaster
Direct Known Subclasses:
ExampleCaster

public abstract class SkeletonCaster
extends java.lang.Object
implements Multicaster

Class to extend when implementing a Multicaster.


Field Summary
protected  BasicCommunicator bcom
          Callback for calling functions of the GUI.
protected  int id
          Id of the client.
protected  MulticasterUI mcui
          Callback for calling functions of the GUI.
 
Constructor Summary
SkeletonCaster()
           
 
Method Summary
 void enableUI()
          Should enable the UI
 void setCommunicator(BasicCommunicator bcom, int id)
          Set BasicCommunicator that should be used
 void setUI(MulticasterUI mcui)
          Set the UI that should be used
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface mcgui.Multicaster
basicpeerdown, basicreceive, cast
 

Field Detail

mcui

protected MulticasterUI mcui
Callback for calling functions of the GUI.


bcom

protected BasicCommunicator bcom
Callback for calling functions of the GUI.


id

protected int id
Id of the client.

Constructor Detail

SkeletonCaster

public SkeletonCaster()
Method Detail

setUI

public void setUI(MulticasterUI mcui)
Set the UI that should be used

Specified by:
setUI in interface Multicaster
Parameters:
mcui - The UI

setCommunicator

public void setCommunicator(BasicCommunicator bcom,
                            int id)
Set BasicCommunicator that should be used

Specified by:
setCommunicator in interface Multicaster
Parameters:
bcom - The Basic communicator

enableUI

public void enableUI()
Description copied from interface: Multicaster
Should enable the UI

Specified by:
enableUI in interface Multicaster