Package api.advanced
Interface ExecutableCommands
-
- All Known Implementing Classes:
Bundle
,Collection
,Sequence
public interface ExecutableCommands
The interface that can be implemented to add custom elements to Collections.This class is implemented by
Bundles
andCollections
.- See Also:
Collection
,Bundle
-
-
Method Summary
Modifier and Type Method Description void
exec()
Execute the Command(s) using the default time
This method does not block the Thread when invoked.void
exec(int time)
Execute the Command(s) for a given time
This method does not block the Thread when invoked.void
execBlocking()
Likeexec()
but blocks the Thread until the Command has been executedvoid
execBlocking(int time)
Likeexec(int)
but blocks the Thread until the Command has been executedint
getTime()
Get the default execution time of this Commandjava.lang.String
getTree()
Get the tree of Command nodes executed by this commandvoid
printTree()
Print the tree of Command nodes executed by this Command
-
-
-
Method Detail
-
exec
void exec()
Execute the Command(s) using the default time
This method does not block the Thread when invoked.
-
exec
void exec(int time)
Execute the Command(s) for a given time
This method does not block the Thread when invoked.- Parameters:
time
- The execution time in milliseconds
-
execBlocking
void execBlocking()
Likeexec()
but blocks the Thread until the Command has been executed
-
execBlocking
void execBlocking(int time)
Likeexec(int)
but blocks the Thread until the Command has been executed- Parameters:
time
- The execution time in milliseconds
-
printTree
void printTree()
Print the tree of Command nodes executed by this Command- See Also:
getTree()
-
getTree
java.lang.String getTree()
Get the tree of Command nodes executed by this command- Returns:
- The command tree
-
getTime
int getTime()
Get the default execution time of this Command- Returns:
- The default execution time of this Command
-
-