public Id<DgGreen> convertFromLinkIdToLinkId2LightId(Id<Link> fromLinkId,Id<Lane> fromLaneId,Id<Link> toLinkId){
  String id=null;
  if (fromLaneId == null) {
    id=fromLinkId.toString() + "55" + toLinkId.toString();
  }
 else {
    id=fromLinkId.toString() + "66" + fromLaneId.toString()+ "55"+ toLinkId.toString();
  }
  String idString=id.toString();
  return idPool.createId(idString,DgGreen.class);
}

public Id < DgGreen > convertFromLinkIdToLinkId2LightId ( Id < Link > fromLinkId , Id < Lane > fromLaneId , Id < Link > toLinkId ) { String id = null ; if ( fromLaneId == null ) { id = fromLinkId . toString ( ) + "55" + toLinkId . toString ( ) ; } else { id = fromLinkId . toString ( ) + "66" + fromLaneId . toString ( ) + "55" + toLinkId . toString ( ) ; } String idString = id . toString ( ) ; return idPool . createId ( idString , DgGreen . class ) ; }
creates a light id for a link to link relationship
