当前位置: 首页>>代码示例>>Java>>正文


Java Evaluator.parse方法代码示例

本文整理汇总了Java中net.sourceforge.jeval.Evaluator.parse方法的典型用法代码示例。如果您正苦于以下问题:Java Evaluator.parse方法的具体用法?Java Evaluator.parse怎么用?Java Evaluator.parse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.sourceforge.jeval.Evaluator的用法示例。


在下文中一共展示了Evaluator.parse方法的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getNumberApplicationProfiles

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getNumberApplicationProfiles(String jobPosition, int noCompanies) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("numberApplicationProfiles." + jobPosition.toLowerCase()));
	eval.putVariable("noCompanies", Integer.toString(noCompanies));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例2: getSalary

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getSalary(int qualification) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("salary"));
	eval.putVariable("qualification", Integer.toString(qualification));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例3: getFoodPriceChange

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized double getFoodPriceChange(double currentPrice) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("foodPriceChange"));
	eval.putVariable("currentPrice", Double.toString(currentPrice));
	return Double.parseDouble(eval.evaluate());
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例4: getBaseGuests

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getBaseGuests(int noCompanies) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("baseGuests"));
	eval.putVariable("noCompanies", Integer.toString(noCompanies));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例5: getRndGuests

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getRndGuests(int noCompanies) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("rndGuests"));
	eval.putVariable("noCompanies", Integer.toString(noCompanies));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例6: getSalePrice

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getSalePrice(int locationQuality, int locationSize) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("salePrice"));
	eval.putVariable("locationQuality", Integer.toString(locationQuality));
	eval.putVariable("locationSize", Integer.toString(locationSize));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:9,代码来源:Constants.java

示例7: getLeaseCosts

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getLeaseCosts(int locationQuality, int locationSize) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("leaseCosts"));
	eval.putVariable("locationQuality", Integer.toString(locationQuality));
	eval.putVariable("locationSize", Integer.toString(locationSize));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:9,代码来源:Constants.java

示例8: getNumberCities

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getNumberCities(int noPlayer) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("numberCities"));
	eval.putVariable("noPlayer", Integer.toString(noPlayer));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例9: getNumberRealEstateProfiles

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getNumberRealEstateProfiles(int noCompanies) {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("numberRealEstateProfiles"));
	eval.putVariable("noCompanies", Integer.toString(noCompanies));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:8,代码来源:Constants.java

示例10: getQualification

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getQualification() {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("qualification"));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:7,代码来源:Constants.java

示例11: getLocationQuality

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getLocationQuality() {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("locationQuality"));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:7,代码来源:Constants.java

示例12: getLocationSize

import net.sourceforge.jeval.Evaluator; //导入方法依赖的package包/类
@SneakyThrows(value = EvaluationException.class)
public synchronized int getLocationSize() {
	Evaluator eval = getEval();
	eval.parse(prop.getProperty("locationSize"));
	return (int) (Double.parseDouble(eval.evaluate()));
}
 
开发者ID:oglimmer,项目名称:cyc,代码行数:7,代码来源:Constants.java


注:本文中的net.sourceforge.jeval.Evaluator.parse方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。