public Id<TtPath> convertPathInfo2PathId(List<Id<DgStreet>> ksPath,Id<DgCrossingNode> ksSourceNodeId,Id<DgCrossingNode> ksDrainNodeId){
  String idString=ksSourceNodeId.toString() + "22";
  for (  Id<DgStreet> streetId : ksPath) {
    idString+=streetId.toString() + "44";
  }
  idString.substring(0,idString.length() - 3);
  idString+="22" + ksDrainNodeId.toString();
  return idPool.createId(idString,TtPath.class);
}

public Id < TtPath > convertPathInfo2PathId ( List < Id < DgStreet > > ksPath , Id < DgCrossingNode > ksSourceNodeId , Id < DgCrossingNode > ksDrainNodeId ) { String idString = ksSourceNodeId . toString ( ) + "22" ; for ( Id < DgStreet > streetId : ksPath ) { idString += streetId . toString ( ) + "44" ; } idString . substring ( 0 , idString . length ( ) - 3 ) ; idString += "22" + ksDrainNodeId . toString ( ) ; return idPool . createId ( idString , TtPath . class ) ; }
creates an id for a path in the ks model
