net.sourceforge.basher.events
Class PhaseTransitionEvent
java.lang.Object
java.util.EventObject
net.sourceforge.basher.events.BasherEvent
net.sourceforge.basher.events.PhaseTransitionEvent
- All Implemented Interfaces:
- java.io.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
| Fields inherited from class java.util.EventObject |
source |
| Methods inherited from class java.util.EventObject |
getSource |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
PhaseTransitionEvent
public PhaseTransitionEvent(BasherContext basherContext,
Phase oldPhase,
Phase newPhase,
long durationNextPhase)
- Parameters:
basherContext - oldPhase - newPhase - durationNextPhase -
getDurationNextPhase
public long getDurationNextPhase()
getBasherContext
public BasherContext getBasherContext()
getOldPhase
public Phase getOldPhase()
getNewPhase
public Phase getNewPhase()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class BasherEvent
hashCode
public int hashCode()
- Overrides:
hashCode in class BasherEvent
toString
public java.lang.String toString()
- Overrides:
toString in class BasherEvent
Copyright © 2006-2010 Basher Team. All Rights Reserved.