Ignore:
Timestamp:
09/08/11 17:03:25 (13 years ago)
Author:
vmipsl
Message:

Servlet _ TimeSerie? :

  • 1 paramètre ok
  • même paramètre sur différentes plateformes ok
File:
1 edited

Legend:

Unmodified
Added
Removed
  • ether_megapoli/trunk/web/src/com/ether/Controller.java

    r185 r186  
    66import com.medias.database.objects.Parametre; 
    77import com.medias.database.objects.Plateforme; 
    8 import com.medias.database.objects.TypePlateforme; 
    98import net.sf.json.JSONObject; 
    109import org.apache.commons.logging.Log; 
     
    5150            throws ServiceException 
    5251    { 
    53         final List<Plateforme> plateforms = _etherService.getAllPlateforms(); 
    54 //        final List<Plateforme> plateforms = new ArrayList<Plateforme>(); 
    55 //        final Plateforme pf = new Plateforme(); 
    56 //        pf.setPlateformeId( 1 ); 
    57 //        pf.setPlateformeNom( "LHVP" ); 
    58 //        pf.setTypePlateforme( new TypePlateforme( 1, "FIXE" ) ); 
    59 //        plateforms.add( pf ); 
    60 //        final Plateforme pf2 = new Plateforme(); 
    61 //        pf2.setPlateformeId( 2 ); 
    62 //        pf2.setPlateformeNom( "SIRTA" ); 
    63 //        pf2.setTypePlateforme( new TypePlateforme( 1, "FIXE" ) ); 
    64 //        plateforms.add( pf2 ); 
     52//        final List<Plateforme> plateforms = _etherService.getAllPlateforms(); 
     53        final List<Plateforme> plateforms = BouchonHelper.createPlateforms(); 
    6554 
    6655        final Map<String, Object> model = new HashMap<String, Object>(); 
     
    8069            throws ServiceException, EtherException 
    8170    { 
    82         final List<Parametre> parametersByPlateform = _etherService.getParametersByPlateformId( plateformId ); 
    83 //        final List<Parametre> parametersByPlateform = new ArrayList<Parametre>( 2 ); 
    84 //        final Parametre p1 = new Parametre(); 
    85 //        p1.setParametreId( 1 ); 
    86 //        p1.setParametreNom( "JNO2" ); 
    87 //        parametersByPlateform.add( p1 ); 
    88 //        final Parametre p2 = new Parametre(); 
    89 //        p2.setParametreId( 2 ); 
    90 //        p2.setParametreNom( "CO2" ); 
    91 //        parametersByPlateform.add( p2 ); 
    92 // 
    93 //        if( plateformId == 1 ) 
    94 //        { 
    95 //            final Parametre p3 = new Parametre(); 
    96 //            p3.setParametreId( 3 ); 
    97 //            p3.setParametreNom( "Ethane" ); 
    98 //            parametersByPlateform.add( p3 ); 
    99 //        } 
    100 //        else 
    101 //        { 
    102 //            final Parametre p3 = new Parametre(); 
    103 //            p3.setParametreId( 3 ); 
    104 //            p3.setParametreNom( "Sulfate" ); 
    105 //            parametersByPlateform.add( p3 ); 
    106 //            final Parametre p4 = new Parametre(); 
    107 //            p4.setParametreId( 4 ); 
    108 //            p4.setParametreNom( "Benzene" ); 
    109 //            parametersByPlateform.add( p4 ); 
    110 //        } 
     71//        final List<Parametre> parametersByPlateform = _etherService.getParametersByPlateformId( plateformId ); 
     72        final List<Parametre> parametersByPlateform = BouchonHelper.createParameters( plateformId ); 
    11173 
    11274        final JSONObject result = new JSONObject(); 
Note: See TracChangeset for help on using the changeset viewer.