|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.swath.Info
com.swath.cmd.SwathCommand
com.swath.cmd.WaitForEvent
Wait for specific event(s).
Prompts: -
WaitForPrompt,
UserDefinedEvent,
UserDefinedCommand| Method Summary | |
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. |
java.lang.String |
getName()
Gets the name of the command. |
java.util.Enumeration |
getParams()
Gets the command parameters. |
UserDefinedEvent[] |
getUserEvents()
Returns the user events. |
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. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public boolean isInternal()
CommandIfc
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.Exceptionpublic final boolean isUserDefined()
CommandIfc
isUserDefined in interface CommandIfctrue if user defined, otherwise false.public final java.lang.String getName()
CommandIfc
getName in interface CommandIfcpublic final java.lang.String getClassName()
CommandIfc
getClassName in interface CommandIfcpublic final java.util.Enumeration getParams()
CommandIfc
getParams in interface CommandIfc
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||