View Javadoc

1   package edu.iris.Fissures.model;
2   
3   /***
4    * <ul>
5    * <li> <b>IDL Source</b>    "Fissures.idl"
6    * <li> <b>IDL Name</b>      ::Fissures::Sampling
7    * <li> <b>Repository Id</b> IDL:edu.iris/Fissures/Sampling:1.0
8    * </ul>
9    * <b>IDL definition:</b>
10   * <pre>
11   * valuetype Sampling  {
12   ...
13   };
14   * </pre>
15   */
16  public class SamplingValueFactory implements org.omg.CORBA.portable.ValueFactory {
17      public java.io.Serializable read_value (org.omg.CORBA_2_3.portable.InputStream is) {
18          java.io.Serializable val = SamplingImpl.createEmpty();
19          // create and initialize value
20          val = is.read_value(val);
21          // make sure interval is a TimeInterval instead of just a QuantityImpl
22          ((SamplingImpl)val).interval = TimeInterval.createTimeInterval(((SamplingImpl)val).interval);
23          return val;
24      }
25  }