FileDocCategorySizeDatePackage
TransitionEvent.javaAPI DocJMF 2.1.1e2653Mon May 12 12:20:38 BST 2003javax.media

TransitionEvent

public class TransitionEvent extends ControllerEvent
TransitionEvent is a ControllerEvent that indicates that a Controller has changed state.
see
Controller
see
ControllerListener
version
1.5, 02/08/21

Fields Summary
int
previousState
int
currentState
int
targetState
Constructors Summary
public TransitionEvent(Controller from, int previous, int current, int target)
Construct a new TransitionEvent.

param
from The Controller that is generating this event.
param
previous The state that the Controller was in before this event.
param
current The state that the Controller is in as a result of this event.
param
target The state that the Controller is heading to.

	super(from);
	previousState = previous; 
	currentState = current;
	targetState = target;
    
Methods Summary
public intgetCurrentState()
Get the Controller's state at the time this event was generated

return
The Controller's current state.

	return currentState;
    
public intgetPreviousState()
Get the state that the Controller was in before this event occurred.

return
The Controller's previous state.

	return previousState;
    
public intgetTargetState()
Get the Controller's target state at the time this event was generated.

return
The Controller's target state.

	return targetState;
    
static java.lang.StringstateName(int state)

	switch (state) {
	  case Controller.Unrealized: return "Unrealized";
	  case Controller.Realizing: return "Realizing";
	  case Controller.Realized: return "Realized";
	  case Controller.Prefetching: return "Prefetching";
	  case Controller.Prefetched: return "Prefetched";
	  case Controller.Started: return "Started";
	  case Processor.Configuring: return "Configuring";
	  case Processor.Configured: return "Configured";
	  default: return "<Unknown>";
	}
    
public java.lang.StringtoString()
Returns the String representation of this event's values.

	return getClass().getName() + "[source=" + eventSrc + 
	    ",previous=" + stateName(previousState) + 
	    ",current=" + stateName(currentState) +
	    ",target=" + stateName(targetState) + "]";