Example #1
0
 public FloatingAsset(long corpus, double interest, Time due, AccountGenre genre)
 //: base(corpus,due,genre)
 {
     this._corpus       = corpus;
     this._interest     = interest;
     this._begining     = clock + TimeLength.ZERO;
     this._due          = due;
     this._totalPeriod  = restTime;
     this.genre         = genre;
     this._unitPeriod   = _totalPeriod;
     this._lastUnitTime = clock + TimeLength.ZERO;
     //manager.addDebt(this);
     clock.registerOneShot(new ClockHandler(onDue), _totalPeriod);
 }
Example #2
0
 public DebtEx(long corpus, double interest, TimeLength unitPeriod, Time due, AccountGenre genre) :
     base(corpus, interest, unitPeriod, due, genre)
 {
     initialze();
 }
Example #3
0
 public FloatingAsset(long corpus, double interest, TimeLength unitPeriod, Time due, AccountGenre genre)
     : this(corpus, interest, due, genre)
 {
     this._unitPeriod = unitPeriod;
     Debug.Assert(unitPeriod.totalMinutes < totalPeriod.totalMinutes);
     h_unit = new ClockHandler(onUnitPeriodEnd);
     clock.registerRepeated(h_unit, _unitPeriod);
 }
Example #4
0
 public FixedDeposit(long corpus, double interest, TimeLength unitPeriod, Time due, AccountGenre genre) :
     base(corpus, interest, unitPeriod, due, genre)
 {
     initialize();
 }