@Override public String toString() { String str = ""; if (getSplitRatioProfile() != null) for (edu.berkeley.path.beats.jaxb.SplitRatioProfile srp : getSplitRatioProfile()) if (srp.getSplitratio() != null) for (Splitratio sr : srp.getSplitratio()) str += String.format( "%d\t%d\t%d\t%d\t%s\n", srp.getNodeId(), sr.getLinkIn(), sr.getLinkOut(), sr.getVehicleTypeId(), sr.getContent()); return str; }
public SplitRatioProfile get_split_profile_for_node_id(Long id) { for (edu.berkeley.path.beats.jaxb.SplitRatioProfile sr : getSplitRatioProfile()) if (sr.getNodeId() == id) return (SplitRatioProfile) sr; return null; }