de.knipp.rritoolkit.test
Class Test.RepeatCommand

java.lang.Object
  extended by de.knipp.rritoolkit.test.Test.RepeatCommand
All Implemented Interfaces:
Test.Command
Enclosing class:
Test

private static class Test.RepeatCommand
extends java.lang.Object
implements Test.Command

class that repeats a command a given number of times

Version:
$Revision: 15112 $
Author:
Klaus Malorny

Field Summary
private  Test.Command command
          the command to repeat
private  int repeatCount
          the number of repetitions
 
Constructor Summary
Test.RepeatCommand(Test.Command theCommand, int theRepeatCount)
          constructor
 
Method Summary
 void execute(Port port)
          execute the command
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

command

private Test.Command command
the command to repeat


repeatCount

private int repeatCount
the number of repetitions

Constructor Detail

Test.RepeatCommand

public Test.RepeatCommand(Test.Command theCommand,
                          int theRepeatCount)
constructor

Parameters:
theCommand - the command
theRepeatCount - the number of repetitions
Method Detail

execute

public void execute(Port port)
             throws java.lang.Exception
execute the command

Specified by:
execute in interface Test.Command
Parameters:
port - the port
Throws:
java.lang.Exception - if the execution failed for some reason


Copyright © 2005-2011 Knipp Medien und Kommunikation GmbH