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


Java Config.getBooleanValue方法代码示例

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


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

示例1: initialise

import rescuecore2.config.Config; //导入方法依赖的package包/类
@Override
public void initialise(Config config) {
    iconSize = config.getIntValue(MrlConstants.ICON_SIZE_KEY, DEFAULT_ICON_SIZE);
    useIcons = config.getBooleanValue(MrlConstants.USE_ICONS_KEY, false);
    SAY_RANGE = config.getIntValue(MrlConstants.VOICE_RANGE_KEY);
    VIEW_RANGE = config.getIntValue(MrlConstants.MAX_VIEW_DISTANCE_KEY);
    CLEAR_RANGE = config.getIntValue(MrlConstants.MAX_CLEAR_DISTANCE_KEY);
    EXTINGUISH_RANGE = config.getIntValue(MrlConstants.MAX_EXTINGUISH_DISTANCE_KEY);

    icons = new HashMap<String, Map<State, Icon>>();
    icons.put(StandardEntityURN.FIRE_BRIGADE.toString(), generateIconMap("FireBrigade"));
    icons.put(StandardEntityURN.AMBULANCE_TEAM.toString(), generateIconMap("AmbulanceTeam"));
    icons.put(StandardEntityURN.POLICE_FORCE.toString(), generateIconMap("PoliceForce"));
    icons.put(StandardEntityURN.CIVILIAN.toString() + "-Male", generateIconMap("Civilian-Male"));
    icons.put(StandardEntityURN.CIVILIAN.toString() + "-Female", generateIconMap("Civilian-Female"));
    useIconsAction = new UseIconsAction();


    atInfo = false;
    atInfoAction = new RenderATInfoAction();
    pfInfo = false;
    pfInfoAction = new RenderPFInfoAction();
    fbInfo = false;
    fbInfoAction = new RenderFBInfoAction();
    civInfo = false;
    civInfoAction = new RenderCivInfoAction();
    sayRange = false;
    sayRangeAction = new SayRangeAction();
    viewRange = false;
    viewRangeAction = new ViewRangeAction();
    clearRange = false;
    clearRangeAction = new ClearRangeAction();
    agentSize = false;
    agentSizeAction = new AgentSizeAction();
    extinguishRange = false;
    extinguishRangeAction = new ExtinguishRangeAction();
    agentLocation = true;
    agentLocationAction = new AgentLocationAction();
}
 
开发者ID:MRL-RS,项目名称:visual-debugger,代码行数:40,代码来源:MrlBaseHumanInfoLayer.java

示例2: init

import rescuecore2.config.Config; //导入方法依赖的package包/类
private void init(Config config)
{
	this.developerMode =
		config.getBooleanValue("comlib.develop.developerMode", false);
	this.radioConfig = new RadioConfig(config);
	this.voiceConfig = new VoiceConfig(config);
	this.kernelTime = -1;

	this.numRadio = config.getIntValue("comms.channels.max.platoon");
	this.numVoice =
		((config.getValue("comms.channels.0.type").equals("voice")) ? 1 : 0);
	this.useRadio = ( this.numRadio >= 1 );

	this.providerList =
		new MessageProvider[config.getIntValue("comlib.default.messageID", 16)];
	this.bitOutputStreamList =
		new BitOutputStream[this.getBitOutputStreamNumber(
				config.getIntValue("comlib.default.messageID", 16) -1,
				PRIORITY_DEPTH
				)];
	this.maxBandWidthList = new int[numRadio];
	this.eventList = new ArrayList<>();
	this.receivedMessages = new ArrayList<>();
	this.sendMessages = new ArrayList<>();

	for(int bosl = 0; bosl < this.bitOutputStreamList.length; bosl++)
	{ this.bitOutputStreamList[bosl] = new BitOutputStream(); }

	for (int ch = 1; ch <= numRadio; ch++)
	{
		maxBandWidthList[ch -1] =
			config.getIntValue("comms.channels." + ch + ".bandwidth");
	}

	this.initLoadProvider();
}
 
开发者ID:AIT-Rescue,项目名称:AIT-Rescue,代码行数:37,代码来源:MessageManager.java


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