public String[] getTupleValues() { if (gaggleTuple == null) { System.out.println("The R Goose has not received a Tuple broadcast."); return new String[0]; } List<String> values = new ArrayList<String>(); for (int i = 0; i < gaggleTuple.getData().getSingleList().size(); i++) { Tuple tuple = (Tuple) gaggleTuple.getData().getSingleAt(i).getValue(); String str = (String) tuple.getSingleAt(2).getValue(); values.add(str); } return values.toArray(new String[0]); }
public Tuple getTuple() { if (gaggleTuple == null) { System.out.println("The R Goose has not received a Tuple broadcast."); return null; } return gaggleTuple.getData(); }