Package sk.fiit.jim.init

Examples of sk.fiit.jim.init.Script.execute()


 
  protected String currentLowSkill(){
    StringHolder holder = new StringHolder();
    Script script = Script.createScript("$holder.value = Plan.instance.current_high_skill.current_low_skill");
    script.registerBean("holder", holder);
    script.execute();
    return holder.value;
  }
 
  protected String currentHighSkill(){
    StringHolder holder = new StringHolder();
View Full Code Here


 
  protected String currentHighSkill(){
    StringHolder holder = new StringHolder();
    Script script = Script.createScript("$holder.value = Plan.instance.current_high_skill.class.name");
    script.registerBean("holder", holder);
    script.execute();
    return holder.value;
  }
}
View Full Code Here

  public double getDouble(){
    String code = String.format("$result.value = (%s)", expression);
    Script script = Script.createScript(code);
    DoubleHolder holder = new DoubleHolder();
    script.registerBean("result", holder);
    script.execute();
    return holder.value;
  }
}
View Full Code Here

  protected String currentLowSkill(){
    StringHolder holder = new StringHolder();
    Script script = Script.createScript("$holder.value = Plan.instance.current_high_skill.current_low_skill");
    script.registerBean("holder", holder);
    script.execute();
    return holder.value;
  }

  protected String currentHighSkill(){
    StringHolder holder = new StringHolder();
View Full Code Here

  protected String currentHighSkill(){
    StringHolder holder = new StringHolder();
    Script script = Script.createScript("$holder.value = Plan.instance.current_high_skill.class.name");
    script.registerBean("holder", holder);
    script.execute();
    return holder.value;
  }
}
View Full Code Here

  private Vector3D getCalculatedPositionFor(String algorithm) {
    ValueHolder<Vector3D> position = new ValueHolder<Vector3D>();
    String scriptCode = "$position.value = StrategicPositionCalculator.new."+algorithm+"_position";
    Script script = Script.createScript(scriptCode);
    script.registerBean("position", position);
    script.execute();
    return position.getValue();
  }
}
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.