コード例 #1
0
 private static void addPLUSDetailRippersToDealRipper(PLUSRipper plusRipper)
 {
     try
     {
         plusRipper.MaxReturnRipper = DetailRipperFactory.GetNumberRipper(EDetailRipperType.MaxPayment);
         plusRipper.UpsideIsCappedDeterminationRipper = DetailRipperFactory.GetMatchWasFoundRipper(EDetailRipperType.UpsideIsCapped);
         plusRipper.UpsideLeverageRipper = DetailRipperFactory.GetNumberRipper(EDetailRipperType.UpsideLeverage);
     }
     catch (Exception e)
     {
         throw new DealRipperFactoryException(
                   "addPLUSDetailRippersToDealRipper() encountered exception in DealRipperFactory class.", e);
     }
 }
コード例 #2
0
 private static void addJumpDetailRippersToDealRipper(JumpRipper jumpRipper)
 {
     try
     {
         jumpRipper.DigitalRipper =
             (PriceOrPercentageRipper)DetailRipperFactory.GetNumberRipper(
                 EDetailRipperType.DigitalAmount);
         jumpRipper.UpsideIsCappedDeterminationRipper =
             DetailRipperFactory.GetMatchWasFoundRipper(EDetailRipperType.UpsideIsCapped);
     }
     catch (Exception e)
     {
         throw new DealRipperFactoryException("addJumpDetailRippersToDealRipper() encountered " +
                                              "exception in DealRipperFactory class.", e);
     }
 }
コード例 #3
0
 private static void addPrincipalProtectedNoteDetailRippersToDealRipper(PrincipalProtectedNoteRipper ripper)
 {
     try
     {
         ripper.MaxReturnRipper = DetailRipperFactory.GetNumberRipper(
             EDetailRipperType.MaxPayment);
         ripper.UpsideIsCappedDeterminationRipper = DetailRipperFactory.GetMatchWasFoundRipper(
             EDetailRipperType.UpsideIsCapped);
         ripper.UpsideLeverageRipper = DetailRipperFactory.GetNumberRipper(
             EDetailRipperType.UpsideLeverage);
     }
     catch (Exception e)
     {
         string errorMsg = "addPrincipalProtectedNoteDetailRippersToDealRipper() encountered " +
                           "exception in DealRipperFactory class.";
         throw new DealRipperFactoryException(errorMsg, e);
     }
 }