private static class Test.RepeatCommand extends java.lang.Object implements Test.Command
Modifier and Type | Field and Description |
---|---|
private Test.Command |
command
the command to repeat
|
private int |
repeatCount
the number of repetitions
|
Constructor and Description |
---|
RepeatCommand(Test.Command theCommand,
int theRepeatCount)
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
execute(Port port)
execute the command
|
private Test.Command command
private int repeatCount
public RepeatCommand(Test.Command theCommand, int theRepeatCount)
theCommand
- the commandtheRepeatCount
- the number of repetitionspublic void execute(Port port) throws java.lang.Exception
execute
in interface Test.Command
port
- the portjava.lang.Exception
- if the execution failed for some reasonCopyright © 2005-2013 Knipp Medien und Kommunikation GmbH