juju.reattore.perfcap.var.impl
Class ListVar

java.lang.Object
  |
  +--juju.reattore.perfcap.var.impl.ListVar
All Implemented Interfaces:
Variable

public class ListVar
extends java.lang.Object
implements Variable

Variable that combines the output from many sub variables.


Constructor Summary
ListVar()
           
 
Method Summary
 void addVariable(Variable var)
          Adds a new child to this list.
 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.
 void setName(java.lang.String name)
          The name to identify this variable.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListVar

public ListVar()
Method Detail

addVariable

public void addVariable(Variable var)
Adds a new child to this list.

Parameters:
var - The new child.

setName

public void setName(java.lang.String name)
The name to identify this variable.

Parameters:
name - The name.

getName

public java.lang.String getName()
Description copied from interface: Variable
The name of this variable.

Specified by:
getName in interface Variable
Returns:
The name.
See Also:
Variable

getValue

public java.lang.Object getValue()
Description copied from interface: Variable
The current value of this variable. May be called many times.

Specified by:
getValue in interface Variable
Returns:
The current value.
See Also:
Variable

hasNext

public boolean hasNext()
                throws java.lang.Exception
Description copied from interface: Variable
Returns true if there are more values in this sequence.

Specified by:
hasNext in interface Variable
Returns:
true if more are available.
Throws:
java.lang.Exception - on error.
See Also:
Variable

next

public void next()
          throws java.lang.Exception
Description copied from interface: Variable
Advances to the next value. #getValue is not valid until this is called.

Specified by:
next in interface Variable
Throws:
java.lang.Exception - on error.
See Also:
Variable

begin

public void begin()
           throws java.lang.Exception
Description copied from interface: Variable
Initialises and resets this variable.

Specified by:
begin in interface Variable
Throws:
java.lang.Exception - on error.
See Also:
Variable

end

public void end()
         throws java.lang.Exception
Description copied from interface: Variable
Called when done with this variable.

Specified by:
end in interface Variable
Throws:
java.lang.Exception - on error.
See Also:
Variable


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