當前位置: 首頁>>代碼示例>>Java>>正文


Java Config.getIntValue方法代碼示例

本文整理匯總了Java中rescuecore2.config.Config.getIntValue方法的典型用法代碼示例。如果您正苦於以下問題:Java Config.getIntValue方法的具體用法?Java Config.getIntValue怎麽用?Java Config.getIntValue使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在rescuecore2.config.Config的用法示例。


在下文中一共展示了Config.getIntValue方法的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: Reservoir

import rescuecore2.config.Config; //導入方法依賴的package包/類
private Reservoir(Refuge station, StandardWorldModel world, Config config) {
    //this.refuge = station;
    this.area = station;
    this.id = station.getID();
    this.supply = config.getIntValue(KEY_REFILL_REFUGE, 500);
    this.location = station.getLocation(world);
}
 
開發者ID:AIT-Rescue,項目名稱:AIT-Rescue,代碼行數:8,代碼來源:Reservoir.java

示例3: 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

示例4: RadioConfig

import rescuecore2.config.Config; //導入方法依賴的package包/類
public RadioConfig(Config config)
{
      this.channel    = config.getIntValue("comlib.message.channel", 1);
      this.sizeOfTime = config.getIntValue("comlib.size.time", 9);
      this.updateMessageIDSize(config.getIntValue("comlib.message.messageID", 16) - 1);
  }
 
開發者ID:AIT-Rescue,項目名稱:AIT-Rescue,代碼行數:7,代碼來源:RadioConfig.java

示例5: VoiceConfig

import rescuecore2.config.Config; //導入方法依賴的package包/類
public VoiceConfig(Config config) {
    this.ttl = config.getIntValue("comlib.message.ttl", 10);
    this.keyword = config.getValue("comlib.message.keyword", "Voice");
    this.messageSeparator = config.getValue("comlib.message.messageSeparator", ">");
    this.dataSeparator = config.getValue("comlib.message.dataSeparator", ":");
}
 
開發者ID:AIT-Rescue,項目名稱:AIT-Rescue,代碼行數:7,代碼來源:VoiceConfig.java

示例6: initialise

import rescuecore2.config.Config; //導入方法依賴的package包/類
@Override
public void initialise(Config config) {
    super.initialise(config);

    CLEAR_RADIUS = config.getIntValue(CLEAR_RADIUS_KEY, DEFAULT_CLEAR_RADIUS);

}
 
開發者ID:MRL-RS,項目名稱:visual-debugger,代碼行數:8,代碼來源:MrlCommandLayer.java


注:本文中的rescuecore2.config.Config.getIntValue方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。