Vector obs = table.getContainedObservationNumbers();
String obsnum;
RepositoryConnectionHandler hand = new RepositoryConnectionHandler(Config);
//BufferConnectivity CONN = new BufferConnectivity(Config);
BufferConnectivity CONN = (BufferConnectivity)hand.getConnection("default");
//RepositoryConnectivity CONN = new RepositoryConnectivity(Config);
try
{
//bufferSolution = new BufferSolution(repos);
bufferSolution = new BufferSolution();
//bufferSolution.setConfig(Config);
System.out.println("LLLLLLLLLLLLLLLLLLLLLLLLL");
bufferSolution.setConnection(CONN);
Config.show();
bufferSolution.setRepository(repos);
bufferSolution.initialize();
}
catch (Exception err)
{
throw new RuntimeException("Problem including buffer in composition.",err);
}
for (int j=0;j<obs.size();j++)
{
obsnum = (String)obs.get(j);
buffer = table.getValueInColumn("Nickname",obsnum);
concentration = table.getValueInColumn("Concentration",obsnum);
try
{
bufferSolution.add(buffer,new Double(concentration));
}
catch (Exception err)
{
throw new RuntimeException("Problem adding buffer in composition editor.",err);
}
}
CONN.close();
for (int k=0;k<okListeners.size();k++)
{
//System.out.println("Listener not null");
((ActionListener)okListeners.get(k)).actionPerformed(ev);