Package api.advanced
Interface ExecutableCommands
-
- All Known Implementing Classes:
Bundle,Collection,Sequence
public interface ExecutableCommandsThe interface that can be implemented to add custom elements to Collections.This class is implemented by
BundlesandCollections.- See Also:
Collection,Bundle
-
-
Method Summary
Modifier and Type Method Description voidexec()Execute the Command(s) using the default time
This method does not block the Thread when invoked.voidexec(int time)Execute the Command(s) for a given time
This method does not block the Thread when invoked.voidexecBlocking()Likeexec()but blocks the Thread until the Command has been executedvoidexecBlocking(int time)Likeexec(int)but blocks the Thread until the Command has been executedintgetTime()Get the default execution time of this Commandjava.lang.StringgetTree()Get the tree of Command nodes executed by this commandvoidprintTree()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
-
-