gov.nasa.arc.brahms.vm.rt.events
Class FrameStatusEvent
java.lang.Object
java.util.EventObject
gov.nasa.arc.brahms.vm.rt.events.FrameStatusEvent
- All Implemented Interfaces:
- java.io.Serializable
public class FrameStatusEvent
- extends java.util.EventObject
The FrameStatusEvent captures a status change for a work or thoughtframe.
The event is distributed to all the frame status listeners interested
in status changes for the frame context specified in this event as
the source.
- Version:
- 9 November 1999
- Author:
- Ron van Hoof
- See Also:
IFrameStatusListener
,
Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
FrameStatusEvent(VMFrameCtx source,
int oldStatus,
int newStatus)
Constructor, creates a new status event for the specified frame indicating
the status change. |
Method Summary |
VMFrameCtx |
getFrame()
Returns the frame context for which this status event is created. |
int |
getNewStatus()
Returns the frame context's new or current status. |
int |
getOldStatus()
Returns the frame context's old or previous status. |
Methods inherited from class java.util.EventObject |
getSource, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FrameStatusEvent
public FrameStatusEvent(VMFrameCtx source,
int oldStatus,
int newStatus)
- Constructor, creates a new status event for the specified frame indicating
the status change.
- Parameters:
source
- the frame context for which the status changedoldStatus
- the frame's previous statusnewStatus
- the frame's new current status- See Also:
IRuntimeConstants.UNAVAILABLE
,
IRuntimeConstants.AVAILABLE
,
IRuntimeConstants.ACTIVE
,
IRuntimeConstants.INTERRUPTED
,
IRuntimeConstants.IMPASSED
,
IRuntimeConstants.ABORTED
,
IRuntimeConstants.COMPLETED
,
IRuntimeConstants.ENDED
getFrame
public final VMFrameCtx getFrame()
- Returns the frame context for which this status event is created.
- Returns:
- VMFrameCtx the frame context that changed status
getOldStatus
public final int getOldStatus()
- Returns the frame context's old or previous status.
- Returns:
- int the old status
- See Also:
IRuntimeConstants.UNAVAILABLE
,
IRuntimeConstants.AVAILABLE
,
IRuntimeConstants.ACTIVE
,
IRuntimeConstants.INTERRUPTED
,
IRuntimeConstants.IMPASSED
,
IRuntimeConstants.ABORTED
,
IRuntimeConstants.COMPLETED
,
IRuntimeConstants.ENDED
getNewStatus
public final int getNewStatus()
- Returns the frame context's new or current status.
- Returns:
- int the new status
- See Also:
IRuntimeConstants.UNAVAILABLE
,
IRuntimeConstants.AVAILABLE
,
IRuntimeConstants.ACTIVE
,
IRuntimeConstants.INTERRUPTED
,
IRuntimeConstants.IMPASSED
,
IRuntimeConstants.ABORTED
,
IRuntimeConstants.COMPLETED
,
IRuntimeConstants.ENDED
Copyright © 1997-2012 All Rights Reserved.