Version: 1.1.1

org.omg.lsae.notifications
Class StateEvent

java.lang.Object
  extended by org.omg.lsae.notifications.AnalysisEvent
      extended by org.omg.lsae.notifications.StateEvent

public class StateEvent
extends AnalysisEvent


Field Summary
static int COMPLETED
           
static int CREATED
           
static int RUNNING
           
static int TERMINATED_BY_ERROR
           
static int TERMINATED_BY_REQUEST
           
 
Constructor Summary
StateEvent()
           
 
Method Summary
 String getNewState()
           
 String getPreviousState()
           
 int getState(String state)
           
 boolean isCompleted()
           
 void setNewState(int newState)
           
 void setPreviousState(int previousState)
           
 String toString()
           
 String toXMLString()
           
 
Methods inherited from class org.omg.lsae.notifications.AnalysisEvent
createFromXML, getMessage, getQueryId, getTimestamp, setMessage, setQueryId, setTimestamp
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CREATED

public static final int CREATED
See Also:
Constant Field Values

RUNNING

public static final int RUNNING
See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
See Also:
Constant Field Values

TERMINATED_BY_REQUEST

public static final int TERMINATED_BY_REQUEST
See Also:
Constant Field Values

TERMINATED_BY_ERROR

public static final int TERMINATED_BY_ERROR
See Also:
Constant Field Values
Constructor Detail

StateEvent

public StateEvent()
Method Detail

isCompleted

public boolean isCompleted()
Specified by:
isCompleted in class AnalysisEvent
Returns:
true if the event is completed, false otherwise.

toString

public String toString()
Specified by:
toString in class AnalysisEvent

getNewState

public String getNewState()
Returns:
the newState

setNewState

public void setNewState(int newState)
Parameters:
newState - the newState to set

getState

public int getState(String state)
Parameters:
state - the textual representation of the state
Returns:
an integer that maps to the text rep of a state

getPreviousState

public String getPreviousState()
Returns:
the previousState

setPreviousState

public void setPreviousState(int previousState)
Parameters:
previousState - the previousState to set

toXMLString

public String toXMLString()
Specified by:
toXMLString in class AnalysisEvent
Returns:
the XML representation of this LSAE notification event object.

Version: 1.1.1

Submit a bug or feature
Generated: Sat May 29 04:26:35 EDT 2010