public final class WaitForEvent extends Info
WaitForPrompt,
UserDefinedEvent,
UserDefinedCommand| Modifier and Type | Method and Description |
|---|---|
static EventIfc |
exec(java.lang.Class eventClass)
Wait for a specific event with no timeout.
|
static EventIfc |
exec(java.lang.Class[] eventClasses)
Wait for one of several events with no timeout.
|
static EventIfc |
exec(java.lang.Class[] eventClasses,
int timeout)
Wait for one of several events or timeout.
|
static EventIfc |
exec(java.lang.Class eventClass,
int timeout)
Wait for a specific event or timeout.
|
java.lang.String |
getClassName()
Gets the command class name.
|
java.lang.Class[] |
getEventClasses()
Returns the event classes.
Used by SWATH only! |
java.lang.String |
getName()
Gets the name of the command.
|
java.util.Enumeration |
getParams()
Gets the command parameters.
|
UserDefinedEvent[] |
getUserEvents()
Returns the user events.
Used by SWATH only! |
boolean |
initCommand() |
boolean |
isInternal()
Indicates if this is an internal SWATH command or not.
|
boolean |
isUserDefined()
Indicates if this command is user defined or not.
|
public boolean isInternal()
CommandIfcisInternal in interface CommandIfctrue if internal, otherwise false.public boolean initCommand()
public java.lang.Class[] getEventClasses()
public UserDefinedEvent[] getUserEvents()
public static EventIfc exec(java.lang.Class eventClass) throws java.lang.Exception
eventClass - The event class to wait for.java.lang.Exceptionpublic static EventIfc exec(java.lang.Class[] eventClasses) throws java.lang.Exception
eventClasses - An array with event classes to wait for.java.lang.Exceptionpublic static EventIfc exec(java.lang.Class eventClass, int timeout) throws java.lang.Exception
eventClass - The event class to wait for.timeout - The timeout value in milliseconds.TimeoutException - If there was a timeout.java.lang.Exceptionpublic static EventIfc exec(java.lang.Class[] eventClasses, int timeout) throws java.lang.Exception
eventClasses - An array with event classes to wait for.timeout - The timeout value in milliseconds.TimeoutException - If there was a timeout.java.lang.Exceptionpublic final boolean isUserDefined()
CommandIfcisUserDefined in interface CommandIfctrue if user defined, otherwise false.public final java.lang.String getName()
CommandIfcgetName in interface CommandIfcpublic final java.lang.String getClassName()
CommandIfcgetClassName in interface CommandIfcpublic final java.util.Enumeration getParams()
CommandIfcgetParams in interface CommandIfc