net.sourceforge.basher.events
Class PhaseTransitionEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sourceforge.basher.events.BasherEvent
          extended by net.sourceforge.basher.events.PhaseTransitionEvent
All Implemented Interfaces:
Serializable

public class PhaseTransitionEvent
extends BasherEvent

Signals a phase transition within the system. The event carries information about the phase transition, the next run duration and the applicable BasherContext.

Version:
$Revision$
Author:
Johan Lindquist
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
PhaseTransitionEvent(BasherContext basherContext, Phase oldPhase, Phase newPhase, long durationNextPhase)
           
 
Method Summary
 boolean equals(Object o)
           
 BasherContext getBasherContext()
           
 long getDurationNextPhase()
           
 Phase getNewPhase()
           
 Phase getOldPhase()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class net.sourceforge.basher.events.BasherEvent
getCreationTime
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PhaseTransitionEvent

public PhaseTransitionEvent(BasherContext basherContext,
                            Phase oldPhase,
                            Phase newPhase,
                            long durationNextPhase)
Parameters:
basherContext -
oldPhase -
newPhase -
durationNextPhase -
Method Detail

getDurationNextPhase

public long getDurationNextPhase()

getBasherContext

public BasherContext getBasherContext()

getOldPhase

public Phase getOldPhase()

getNewPhase

public Phase getNewPhase()

equals

public boolean equals(Object o)
Overrides:
equals in class BasherEvent

hashCode

public int hashCode()
Overrides:
hashCode in class BasherEvent

toString

public String toString()
Overrides:
toString in class BasherEvent


Copyright © 2006-2010 Basher Team. All Rights Reserved.