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()
CommandIfc
isInternal
in interface CommandIfc
true
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.Exception
public static EventIfc exec(java.lang.Class[] eventClasses) throws java.lang.Exception
eventClasses
- An array with event classes to wait for.java.lang.Exception
public 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.Exception
public 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.Exception
public final boolean isUserDefined()
CommandIfc
isUserDefined
in interface CommandIfc
true
if user defined, otherwise false
.public final java.lang.String getName()
CommandIfc
getName
in interface CommandIfc
public final java.lang.String getClassName()
CommandIfc
getClassName
in interface CommandIfc
public final java.util.Enumeration getParams()
CommandIfc
getParams
in interface CommandIfc