one.fonda
Class Minimum

java.lang.Object
  |
  +--one.world.core.Component
        |
        +--one.fonda.Minimum
All Implemented Interfaces:
EventHandler, Serializable

public final class Minimum
extends Component
implements EventHandler

Implementation of a minimal main application component. This component is the smallest main application component possible. It only processes the required environment events and does no other useful work. Its main purpose is for debugging and measuring one.world.

Imported and Exported Event Handlers

Exported event handler(s):

main
Handles environment events.

Version:
$Revision: 1.4 $
See Also:
Serialized Form

Inner classes inherited from class one.world.core.Component
Component.HandlerReference, Component.Importer
 
Constructor Summary
Minimum(Environment env)
          Create a new instance of Minimum.
 
Method Summary
 ComponentDescriptor getDescriptor()
          Get the component descriptor.
 void handle(Event e)
          Handle the specified event.
static void init(Environment env, Object closure)
          Initialize the minimal application component.
 
Methods inherited from class one.world.core.Component
declareExported, declareImported, equals, eventHandlers, getDescriptor, getEnvironment, getLinkedHandlers, getLinkedNumber, getTimer, hasEventHandler, hashCode, isFullyLinked, isLinked, isSealed, link, link, run, seal, unbox, undeclare, unlink, wrap
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Minimum

public Minimum(Environment env)
Create a new instance of Minimum.
Parameters:
env - The environment for the new instance.
Method Detail

getDescriptor

public ComponentDescriptor getDescriptor()
Get the component descriptor.
Overrides:
getDescriptor in class Component
Following copied from class: one.world.core.Component
Returns:
The component descriptor for this component.

handle

public void handle(Event e)
Handle the specified event. This component does not implement the main event handler as an inner class, because inner classes introduce additional serialized state, which is inconsistent with the goal of providing the smallest possible main component.
Specified by:
handle in interface EventHandler
Following copied from interface: one.world.core.EventHandler
Parameters:
event - The event to handle.

init

public static void init(Environment env,
                        Object closure)
Initialize the minimal application component.
Parameters:
env - The environment.
closure - The closure, which is ignored.


(C) Copyright 2001 UW CSE