Example #1
0
  public static Object create() {

    SetPoint self;
    self = new SetPoint();
    self.clear();
    return self;
  }
Example #2
0
  /**
   * This is the implementation of the <code>Copyable</code> interface. This method will perform a
   * deep copy of <code>src</code> This method could be placed into <code>SetPointTypeSupport</code>
   * rather than here by using the <code>-noCopyable</code> option to rtiddsgen.
   *
   * @param src The Object which contains the data to be copied.
   * @return Returns <code>this</code>.
   * @exception NullPointerException If <code>src</code> is null.
   * @exception ClassCastException If <code>src</code> is not the same type as <code>this</code>.
   * @see com.rti.dds.infrastructure.Copyable#copy_from(java.lang.Object)
   */
  public Object copy_from(Object src) {

    SetPoint typedSrc = (SetPoint) src;
    SetPoint typedDst = this;

    typedDst.controlType = typedSrc.controlType;
    typedDst.multiplier =
        (org.openfmb.model.dds.rti.common.unitmultiplier.UnitMultiplierKind)
            typedDst.multiplier.copy_from(typedSrc.multiplier);
    typedDst.unit =
        (org.openfmb.model.dds.rti.common.unitsymbol.UnitSymbolKind)
            typedDst.unit.copy_from(typedSrc.unit);
    typedDst.value = typedSrc.value;

    return this;
  }