Download Software User Manual
Transcript
Example:
This example is similar to the previous one, but it uses @tablewithinputmapping keyword and provides
only the first argument (“x”). Expert Consultant will ask user to input the value of “y”.
class TableTest {
/*@ specification TableTest {
int x, y, value;
const String tableId = "test";
tableId, x -> value{@tablewithinputmapping};
}@*/
}
The generated code will be as follows:
public void compute( Object... cocovilaArgs ) {
...
try {
value = (java.lang.Integer)ProgramContext.queryTable(
new String[] { “x” }, tableId, x );
}
catch( java.lang.Exception ex0 ) {
ex0.printStackTrace();
return;
}
}