public void getAllUpstreamElementsGeometries( List<Geometry> elems, List<PfafstetterNumber> limit,
            IHillSlope firstOfMaiorBasin ) {
        // if the limit is the number of the actual element, return
        if (limit != null && limit.size() > 0) {
            for( PfafstetterNumber pfafs : limit ) {
                if (pfafs.compareTo(pfafstetterNumber) == 0) {
                    return;
                }
            }
        }
        this.firstOfMaiorBasin = firstOfMaiorBasin;
        elems.add((Geometry) hillslopeFeature.getDefaultGeometry());
        for( IHillSlope upstreamElement : upstreamElements ) {
            upstreamElement.getAllUpstreamElementsGeometries(elems, limit, firstOfMaiorBasin);
        }

    }
public void getAllUpstreamElementsGeometries ( List < Geometry > elems , List < PfafstetterNumber > limit , IHillSlope firstOfMaiorBasin ) { if ( limit != null && limit . size ( ) > 0 ) { for ( PfafstetterNumber pfafs : limit ) { if ( pfafs . compareTo ( pfafstetterNumber ) == 0 ) { return ; } } } this . firstOfMaiorBasin = firstOfMaiorBasin ; elems . add ( ( Geometry ) hillslopeFeature . getDefaultGeometry ( ) ) ; for ( IHillSlope upstreamElement : upstreamElements ) { upstreamElement . getAllUpstreamElementsGeometries ( elems , limit , firstOfMaiorBasin ) ; } }
/* (non-Javadoc)
@see org.hortonmachine.hmachine.modules.hydrogeomorphology.adige.core.IHillSlope#getAllUpstreamElementsGeometries(java.util.List, java.util.List, org.hortonmachine.hmachine.modules.hydrogeomorphology.adige.core.IHillSlope)