Future Computing Environments

ServiceApplet Code

// A G E N T
// .   .   .

// ServiceApplet.java

// (c) Anind Dey, Andy Wood ... 1996


// ****************************************************************************

package cyberdesk.acton.service;

import java.awt.*;
import java.applet.*;

import cyberdesk.cameo.*;


// ****************************************************************************

public abstract class ServiceApplet extends Applet implements CameoObject 
  {
  CameoObjectImpl cameo;

  protected abstract CameoInterface[] initInterfaces();

  public void init()
    {
    cameo = new CameoObjectImpl( this, initInterfaces(), false );    
    }

  // **** Following not really required but included for completeness

  public void examine( CameoMessage msg )
    {
    cameo.examine( msg );
    }


  public void manipulate(CameoMessage msg)
    {
    }

  public void observe(CameoMessage msg)
    {
    cameo.observe( msg );
    }


  public void observing(CameoMessage msg)
    {
    cameo.observing( msg );
    }


  public void notobserving(CameoMessage msg)
    {
    cameo.notobserving( msg );
    }


  public boolean action( Event event, Object what )
    {
    return false;
    }
  }

// ****************************************************************************

Return to the CyberDesk sample code page.
Return to the CyberDesk home page.


Future Computing Environments Georgia Institute of Technology