juju.reattore.perfcap.var
Interface Variable

All Known Implementing Classes:
CommandLineVar, ListVar, RangeVar

public interface Variable

An independant variable that takes on a set of values. Modeled after Iterator.


Method Summary
 void begin()
          Initialises and resets this variable.
 void end()
          Called when done with this variable.
 java.lang.String getName()
          The name of this variable.
 java.lang.Object getValue()
          The current value of this variable.
 boolean hasNext()
          Returns true if there are more values in this sequence.
 void next()
          Advances to the next value.
 

Method Detail

getName

public java.lang.String getName()
The name of this variable.

Returns:
The name.

getValue

public java.lang.Object getValue()
The current value of this variable. May be called many times.

Returns:
The current value.

hasNext

public boolean hasNext()
                throws java.lang.Exception
Returns true if there are more values in this sequence.

Returns:
true if more are available.
Throws:
java.lang.Exception - on error.

next

public void next()
          throws java.lang.Exception
Advances to the next value. #getValue is not valid until this is called.

Throws:
java.lang.Exception - on error.

begin

public void begin()
           throws java.lang.Exception
Initialises and resets this variable.

Throws:
java.lang.Exception - on error.

end

public void end()
         throws java.lang.Exception
Called when done with this variable.

Throws:
java.lang.Exception - on error.


Copyright © 2002-2003 Michael Hope. All Rights Reserved.