fundamentals
Class EuArguments

java.lang.Object
  |
  +--fundamentals.EuArguments

public class EuArguments
extends java.lang.Object

This class holds a collection of arguments to LEA commands. These can be either a numerical value, or a reference to an entry in the testDatabase.


Constructor Summary
EuArguments()
          The constructor initializes a (small) Vector
EuArguments(int data)
          The constructor adds datumCount entries of dummy data
EuArguments(int data, int startDatum)
          The constructor adds implicit data from %startDatum to %data+startdatum-1
 
Method Summary
 void add(double x)
          Hold additional argument
 void add(fundamentals.EuArg o)
          Hold additional argument
 void add(fundamentals.EuVector v)
          Hold additional argument
 void clear()
           
 int count()
           
 fundamentals.EuArg getArg(int i)
          Retrieve an argument
 boolean isDummy()
           
 java.lang.String toString()
           
 void update(librarian.ppProcessor ppp)
           
 double val(int i)
          Retrieve the value of an argument
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EuArguments

public EuArguments()
The constructor initializes a (small) Vector


EuArguments

public EuArguments(int data,
                   int startDatum)
The constructor adds implicit data from %startDatum to %data+startdatum-1


EuArguments

public EuArguments(int data)
The constructor adds datumCount entries of dummy data

Method Detail

count

public int count()
Returns:
The number of arguments held

getArg

public fundamentals.EuArg getArg(int i)
                          throws InternalException
Retrieve an argument

Parameters:
i - the index to be used
Returns:
the argument at i
Throws:
InternalException - if index out of bounds

val

public double val(int i)
           throws DesignException,
                  InternalException
Retrieve the value of an argument

Parameters:
i - the index to be used
Returns:
the value of the argument at i
Throws:
InternalException - if index out of bounds
LeaRuntimeException - if there are problems looking the value up in the testdatabase.
DesignException

add

public void add(fundamentals.EuArg o)
Hold additional argument

Parameters:
o - The argument to hold

add

public void add(fundamentals.EuVector v)
Hold additional argument


add

public void add(double x)
Hold additional argument


update

public void update(librarian.ppProcessor ppp)
            throws DesignException,
                   InternalException,
                   DesignException
DesignException
InternalException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
The LEA representation of the argument

clear

public void clear()

isDummy

public boolean isDummy()