Examples of LowSkill


Examples of sk.fiit.jim.agent.moves.LowSkill

    new SkillsFromXmlLoader(new File("./test_moves"));
    EnvironmentModel.PLAY_MODE = PlayMode.PLAY_ON;
  }

  protected void createEmptyLowSkill(String name){
    LowSkills.addSkill(new LowSkill(name, Phase.EMPTY_PHASE.name));
  }
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

      checkProgress();
      currentSkill.carryOn();
      return;
    }
   
    LowSkill newSkill = pickLowSkill();
    Log.debug(HIGH_SKILL, "Current skill: %s, new skill: %s, finalizing: %s", currentSkill, newSkill, Boolean.toString(finalizing));
    if (currentSkill != null && !finalizing && (newSkill == null || newSkill != currentSkill)){
      currentSkill.executeFinalisation();
      currentSkill.carryOn();
      finalizing = true;
    }
   
    if (finalizing && currentSkill.ended())
      finalizing = false;
   
    if (currentSkill != newSkill && newSkill != null){
      newSkill.reset();
      newSkill.carryOn();
    }
   
    if (currentSkill == newSkill && currentSkill != null){
      currentSkill.carryOn();
    }
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

    catch (Exception e){assertTrue(false);}
  }
 
  @Test
  public void oneSkill(){
    LowSkill turnOnce = new LowSkill("turnOnce", "turnOncePhase");
    Phase phase = new Phase("turnOncePhase", 0.100);
    phase.finalizationPhase = "finalizationPhase";
    phase.isFinal = true;
    Phases.addPhase(phase);
   
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

    new SkillsFromXmlLoader(new File("./test_moves"));
    EnvironmentModel.PLAY_MODE = PlayMode.PLAY_ON;
  }

  protected void createEmptyLowSkill(String name){
    LowSkills.addSkill(new LowSkill(name, Phase.EMPTY_PHASE.name));
  }
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

      checkProgress();
      currentSkill.carryOn();
      return;
    }

    LowSkill newSkill = pickLowSkill();
    Log.debug(HIGH_SKILL, "Current skill: %s, new skill: %s, finalizing: %s", currentSkill, newSkill, Boolean.toString(finalizing));
    if (currentSkill != null && !finalizing && newSkill != currentSkill){
      currentSkill.executeFinalisation();
      currentSkill.carryOn();
      finalizing = true;
      return;
    }

    if (currentSkill != newSkill && newSkill != null){
      newSkill.reset();
      newSkill.carryOn();
    }

    if (finalizing && currentSkill.ended())
      finalizing = false;
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

    catch (Exception e){assertTrue(false);}
  }

  @Test
  public void oneSkill(){
    LowSkill turnOnce = new LowSkill("turnOnce", "turnOncePhase");
    Phase phase = new Phase("turnOncePhase", 0.100);
    phase.finalizationPhase = "finalizationPhase";
    phase.isFinal = true;
    Phases.addPhase(phase);
View Full Code Here

Examples of sk.fiit.jim.agent.moves.LowSkill

    assertTrue(highSkill.isEnded());
  }

  @Test
  public void sameSkillAfterFinalizing(){
    LowSkill turnOnce = new LowSkill("turnOnce", "turnOncePhase");
    Phase phase = new Phase("turnOncePhase", 0.100);
    phase.finalizationPhase = "finalizationPhase";
    phase.isFinal = true;
    Phases.addPhase(phase);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.