Hi Srijana,
I'm gonna paste here two quotes from the AnyLogic's help.
"Table function works in the following way: the user defines a function by giving a number of (argument, value)
pairs, i.e. a number of base points on XY chart. AnyLogic builds the table function based on the given data and the
chosen interpolation type. A call of a function with some value passed as a function argument, will return a (possibly,
interpolated) value of the function. A number of behaviors are supported for the case x is out of original argument
range."
and
"To get the value of a table function for some argument, call the table function as any other function by its name,
passing the argument value as the function parameter. For instance, if you have a table function named lookup1 in your
model, to get the function value for the argument 5, call:
lookup1(5);
Alternatively, you can use the method get(double x) of the table function. For the example, considered above, the
function call should be:
lookup1.get(5);
Both functions are identical. They return the table function value corresponding to the given argument, subject to the
currently set interpolation type and out of range handling. In case the function only supports discrete values (that
were provided as the argument set), and no interpolation is allowed, a call of such a function with an argument not
matching any argument entry would result in exception thrown."
In conclusion Table Function has similar to the normal table(ex Array List) but has some fancy features to fill it in a
non common way. Thus you should accessed it giving a reference to the exact index.
In your case it links only first parameter because as I think there is no iteration for the table values(I just presume,
haven't seen your model,but its maybe does not saying to which table index is refering). Maybe you should
programatically pass the values into the table using i.e. setArgumentsAndValues() method from the table Functions
object.
I hope this will help you,
Regards,
Tomas

