Changeset 400 for tapas/service


Ignore:
Timestamp:
03/08/12 15:19:16 (12 years ago)
Author:
vmipsl
Message:

objet Tapas entier avec sérialization

Location:
tapas/service/interface/com/ether/tapas
Files:
5 added
4 moved

Legend:

Unmodified
Added
Removed
  • tapas/service/interface/com/ether/tapas/Observation.java

    r399 r400  
    1 package com.ether; 
     1package com.ether.tapas; 
     2 
     3import org.jetbrains.annotations.NotNull; 
    24 
    35import java.util.Date; 
    46 
     7/** 
     8 * @author vmipsl 
     9 * @date 08 march 2012 
     10 */ 
    511public class Observation 
    612{ 
    7  
     13    @NotNull 
    814    public Date getDate() 
    915    { 
     
    1117    } 
    1218 
    13     public void setDate( final Date date ) 
     19    public void setDate( @NotNull final Date date ) 
    1420    { 
    1521        _date = date; 
    1622    } 
    1723 
     24    @NotNull 
     25    public Observatory getObservatory() 
     26    { 
     27        return _observatory; 
     28    } 
     29 
     30    public void setObservatory( @NotNull final Observatory observatory ) 
     31    { 
     32        _observatory = observatory; 
     33    } 
     34 
     35    @NotNull 
     36    public Los getLos() 
     37    { 
     38        return _los; 
     39    } 
     40 
     41    public void setLos( @NotNull final Los los ) 
     42    { 
     43        _los = los; 
     44    } 
     45 
     46    @NotNull 
     47    public Instrument getInstrument() 
     48    { 
     49        return _instrument; 
     50    } 
     51 
     52    public void setInstrument( @NotNull final Instrument instrument ) 
     53    { 
     54        _instrument = instrument; 
     55    } 
     56 
     57    @NotNull 
    1858    private Date _date; 
     59    @NotNull 
     60    private Observatory _observatory; 
     61    @NotNull 
     62    private Los _los; 
     63    @NotNull 
     64    private Instrument _instrument; 
    1965} 
  • tapas/service/interface/com/ether/tapas/Preference.java

    r399 r400  
    1 package com.ether; 
     1package com.ether.tapas; 
    22 
     3import com.ether.Pair; 
    34import org.jetbrains.annotations.NotNull; 
    45 
     6/** 
     7 * @author vmipsl 
     8 * @date 08 march 2012 
     9 */ 
    510public class Preference 
    611{ 
    712    @NotNull 
    8     public String getFormat() 
     13    public Pair<String, String> getFormat() 
    914    { 
    1015        return _format; 
    1116    } 
    1217 
    13     public void setFormat( @NotNull final String format ) 
     18    public void setFormat( @NotNull final Pair<String, String> format ) 
    1419    { 
    1520        _format = format; 
     
    1722 
    1823    @NotNull 
    19     public String getRayleighExtinction() 
     24    public Pair<String, String> getRayleighExtinction() 
    2025    { 
    2126        return _rayleighExtinction; 
    2227    } 
    2328 
    24     public void setRayleighExtinction( @NotNull final String rayleighExtinction ) 
     29    public void setRayleighExtinction( @NotNull final Pair<String, String> rayleighExtinction ) 
    2530    { 
    2631        _rayleighExtinction = rayleighExtinction; 
     
    2833 
    2934    @NotNull 
    30     public String getH2oExtinction() 
     35    public Pair<String, String> getH2oExtinction() 
    3136    { 
    3237        return _h2oExtinction; 
    3338    } 
    3439 
    35     public void setH2oExtinction( @NotNull final String h2oExtinction ) 
     40    public void setH2oExtinction( @NotNull final Pair<String, String> h2oExtinction ) 
    3641    { 
    3742        _h2oExtinction = h2oExtinction; 
     
    3944 
    4045    @NotNull 
    41     public String getO3Extinction() 
     46    public Pair<String, String> getO3Extinction() 
    4247    { 
    4348        return _o3Extinction; 
    4449    } 
    4550 
    46     public void setO3Extinction( @NotNull final String o3Extinction ) 
     51    public void setO3Extinction( @NotNull final Pair<String, String> o3Extinction ) 
    4752    { 
    4853        _o3Extinction = o3Extinction; 
     
    5055 
    5156    @NotNull 
    52     public String getO2Extinction() 
     57    public Pair<String, String> getO2Extinction() 
    5358    { 
    5459        return _o2Extinction; 
    5560    } 
    5661 
    57     public void setO2Extinction( @NotNull final String o2Extinction ) 
     62    public void setO2Extinction( @NotNull final Pair<String, String> o2Extinction ) 
    5863    { 
    5964        _o2Extinction = o2Extinction; 
     
    6166 
    6267    @NotNull 
    63     public String getCo2Extinction() 
     68    public Pair<String, String> getCo2Extinction() 
    6469    { 
    6570        return _co2Extinction; 
    6671    } 
    6772 
    68     public void setCo2Extinction( @NotNull final String co2Extinction ) 
     73    public void setCo2Extinction( @NotNull final Pair<String, String> co2Extinction ) 
    6974    { 
    7075        _co2Extinction = co2Extinction; 
     
    7277 
    7378    @NotNull 
    74     private String _format; 
     79    private Pair<String, String> _format; 
    7580    @NotNull 
    76     private String _rayleighExtinction; 
     81    private Pair<String, String> _rayleighExtinction; 
    7782    @NotNull 
    78     private String _h2oExtinction; 
     83    private Pair<String, String> _h2oExtinction; 
    7984    @NotNull 
    80     private String _o3Extinction; 
     85    private Pair<String, String> _o3Extinction; 
    8186    @NotNull 
    82     private String _o2Extinction; 
     87    private Pair<String, String> _o2Extinction; 
    8388    @NotNull 
    84     private String _co2Extinction; 
     89    private Pair<String, String> _co2Extinction; 
    8590} 
  • tapas/service/interface/com/ether/tapas/Request.java

    r399 r400  
    1 package com.ether; 
     1package com.ether.tapas; 
    22 
    33import org.jetbrains.annotations.NotNull; 
    44 
     5/** 
     6 * @author vmipsl 
     7 * @date 08 march 2012 
     8 */ 
    59public class Request 
    610{ 
     11    @NotNull 
     12    public String getId() 
     13    { 
     14        return _id; 
     15    } 
     16 
     17    public void setId( @NotNull final String id ) 
     18    { 
     19        _id = id; 
     20    } 
     21 
    722    @NotNull 
    823    public Preference getPreference() 
     
    2843 
    2944    @NotNull 
    30     public String getAtmosphere() 
     45    public Atmosphere getAtmosphere() 
    3146    { 
    3247        return _atmosphere; 
    3348    } 
    3449 
    35     public void setAtmosphere( @NotNull final String atmosphere ) 
     50    public void setAtmosphere( @NotNull final Atmosphere atmosphere ) 
    3651    { 
    3752        _atmosphere = atmosphere; 
     
    3954 
    4055    @NotNull 
     56    private String _id; 
     57    @NotNull 
    4158    private Preference _preference; 
    4259    @NotNull 
    4360    private Observation _observation; 
    4461    @NotNull 
    45     private String _atmosphere; 
     62    private Atmosphere _atmosphere; 
    4663} 
  • tapas/service/interface/com/ether/tapas/Tapas.java

    r399 r400  
    1 package com.ether; 
     1package com.ether.tapas; 
    22 
    33import org.jetbrains.annotations.NotNull; 
     
    55import java.util.List; 
    66 
     7/** 
     8 * @author vmipsl 
     9 * @date 08 march 2012 
     10 */ 
    711public class Tapas 
    812{ 
     13    @NotNull 
     14    public String getId() 
     15    { 
     16        return _id; 
     17    } 
     18 
     19    public void setId( @NotNull final String id ) 
     20    { 
     21        _id = id; 
     22    } 
     23 
    924    @NotNull 
    1025    public List<Request> getRequests() 
     
    1934 
    2035    @NotNull 
     36    private String _id; 
     37    @NotNull 
    2138    private List<Request> _requests; 
    2239} 
Note: See TracChangeset for help on using the changeset viewer.