numericalMethods.function
Interface IntegerArrayParametrized


public interface IntegerArrayParametrized

Interface for objects that represent functions of an integer array parameter.


Method Summary
 int getIntegerArrayParameterLength()
          Get the length of the integer array parameter.
 void setIntegerArrayParameter(int[] p, int offset)
          Set the integer array parameter by the values in an int[].
 

Method Detail

getIntegerArrayParameterLength

public int getIntegerArrayParameterLength()
Get the length of the integer array parameter.
Returns:
the length of the integer array parameter.

setIntegerArrayParameter

public void setIntegerArrayParameter(int[] p,
                                     int offset)
Set the integer array parameter by the values in an int[]. The values for the integer array parameter are read from p[offset,…,offset + len - 1], where len is the value returned by getIntegerArrayParameterLength(). The parameter p should not be changed.
Parameters:
p - an int[] whith length at least offset+len holding the values to which the integer array parameter is set.
offset - the position in p where the integer array parameter is read from.