コード例 #1
0
  public static Object create() {
    MDSConnectivityObjective self;
    self = new MDSConnectivityObjective();

    self.clear();

    return self;
  }
コード例 #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>
   * MDSConnectivityObjectiveTypeSupport</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)
   */
  @Override
  public Object copy_from(Object src) {

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

    typedDst.unique_device_identifier = typedSrc.unique_device_identifier;

    typedDst.partition = typedSrc.partition;

    return this;
  }