/** * Returns the names of all belief sets. * @return the names of all belief sets. */ public String[] getBeliefSetNames() { if(setnames==null) { List<String> lnames = new ArrayList<String>(); for(String name: beliefbase.getBeliefSetNames()) { if(name.startsWith(prefix)) { name = name.substring(prefix.length()); if(name.indexOf(MElement.CAPABILITY_SEPARATOR)==-1) { lnames.add(name); } } } setnames = lnames.toArray(new String[lnames.size()]); } return setnames; } }