org.apache.avalon.merlin.event
Class KernelStateEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.apache.avalon.merlin.event.KernelEvent
          extended byorg.apache.avalon.merlin.event.KernelStateEvent
All Implemented Interfaces:
Serializable

public class KernelStateEvent
extends KernelEvent

A event raised by a kernel signaling a state change.

Version:
$Revision: 1.4 $ $Date: 2004/03/17 10:39:11 $
Author:
Avalon Development Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
KernelStateEvent(Kernel kernel, int from, int to)
          Create a CompositionEvent event.
 
Method Summary
 int getCurrentState()
          Return the state by the transition.
 int getInitialState()
          Return the initial state before the transition.
 String toString()
           
 
Methods inherited from class org.apache.avalon.merlin.event.KernelEvent
getKernel
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KernelStateEvent

public KernelStateEvent(Kernel kernel,
                        int from,
                        int to)
Create a CompositionEvent event.

Parameters:
kernel - the kernel instance raising the event
from - the old state value
to - the new state value
Method Detail

getInitialState

public int getInitialState()
Return the initial state before the transition.

Returns:
the source kernel

getCurrentState

public int getCurrentState()
Return the state by the transition.

Returns:
the source kernel

toString

public String toString()
Overrides:
toString in class KernelEvent


Copyright © The Apache Software Foundation. All Rights Reserved.