/** * Method for copying the suitable instance variable from a <code>ReturnPath</code> object. * * @param obj Object used to define the instance variables which should be carried over to this * object. * @exception DemoException thrown if there is a problem accessing the instance variables from the * target objetct. */ private void copyInstanceVariables(ReturnPath obj) throws DemoException { // // Instance variables defined in the PathId object. set_name(obj.get_name()); set_startDate(obj.get_startDate()); set_endDate(obj.get_endDate()); set_dTime(obj.get_dTime()); // // Instance variables defined in this object. this.returnDefinition = obj.get_returnDefinition(); this.expectedReturnRate = obj.get_expectedReturnRate(); this.volatility = obj.get_volatility(); }