Example of packages I am currently generating agents with parameters read from DB at a source node. These agents in the model are packages of different types (so basically the packages have the same list of parameter names like package name, volume, etc. but with differing parameter values). The issue is that I need to generate these packages randomly, but it is currently generated in sequence of how the packages are listed in DB. Is there any way to amend the code in order to achieve what is needed?
Snippet of current code:
{
DbPackages _result_xjal = new DbPackages();
_result_xjal.setParametersToDefaultValues();
_result_xjal.packageDb = self.databaseTable.getValue( "package_db", String.class );
_result_xjal.tester = self.databaseTable.getValue( "tester", String.class );
_result_xjal.handler = self.databaseTable.getValue( "handler", String.class );
...
return _result_xjal;
}