Esempio n. 1
0
  @Override
  protected void PoorGaveMiddle(DreamTaskRecord taskRecord, int change) {
    taskRecord.setReductionStep(Math.max(taskRecord.getAdditionStep(), change));
    taskRecord.setAdditionStep(Math.max(taskRecord.getAdditionStep(), change));

    //        taskRecord.setAdditionStep(change);
  }
Esempio n. 2
0
 @Override
 protected void RichGaveMiddle(DreamTaskRecord taskRecord, int change) {
   taskRecord.setAdditionStep(change / 2);
   taskRecord.setReductionStep(change / 2);
 }
Esempio n. 3
0
 @Override
 protected void MiddleGaveRich(DreamTaskRecord taskRecord, int change) {
   taskRecord.setReductionStep(Math.max(taskRecord.getAdditionStep(), change));
 }
Esempio n. 4
0
 @Override
 protected void MiddleGotRich(DreamTaskRecord taskRecord, int change) {
   taskRecord.setReductionStep(taskRecord.getReductionStep() + change);
 }
Esempio n. 5
0
 @Override
 protected void RichGaveRich(DreamTaskRecord taskRecord, int change) {
   taskRecord.setReductionStep(
       taskRecord.getReductionStep() + probAdd * change / taskRecord.getReductionStep());
 }
Esempio n. 6
0
 @Override
 protected void PoorGotRich(DreamTaskRecord taskRecord, int change) {
   taskRecord.setReductionStep(change / 2);
 }
Esempio n. 7
0
 @Override
 protected void PoorGaveRich(DreamTaskRecord taskRecord, int change) {
   taskRecord.setReductionStep(Math.max(taskRecord.getAdditionStep(), change));
   //        taskRecord.setReductionStep(getInitReductionStep(taskRecord));
 }