public Collection<String> getAlgorithmNames() { try { return deployManager.getAllProcesses(); } catch (Exception e) { e.printStackTrace(); return new ArrayList<String>(); } }
public Collection<IAlgorithm> getAlgorithms() { Collection<IAlgorithm> result = new ArrayList<IAlgorithm>(); Collection<String> allAlgorithms; try { allAlgorithms = deployManager.getAllProcesses(); } catch (Exception e) { e.printStackTrace(); return new ArrayList<IAlgorithm>(); } for (String processID : allAlgorithms) { result.add(new GenericTransactionalAlgorithm(processID, this.getClass())); } return result; }