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


Java InvalidLocalSettingsDesignator类代码示例

本文整理汇总了Java中hla.rti1516e.exceptions.InvalidLocalSettingsDesignator的典型用法代码示例。如果您正苦于以下问题:Java InvalidLocalSettingsDesignator类的具体用法?Java InvalidLocalSettingsDesignator怎么用?Java InvalidLocalSettingsDesignator使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: connect

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
protected void connect(String local_settings_designator) throws RTIinternalError, ConnectionFailed, 
InvalidLocalSettingsDesignator, UnsupportedCallbackModel, 
CallNotAllowedFromWithinCallback {

	logger.info("Connecting to HLA/RTI.");
	// Create the RTIambassador and Connect
	this.rtiamb = SEERTIAmbassador.getInstance();

	// connect	
	try {
		rtiamb.connect(this.fedamb, CallbackModel.HLA_IMMEDIATE, local_settings_designator);
	} catch (AlreadyConnected e) {
		//ignore
	}

}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:17,代码来源:SEEHLAModule.java

示例2: connectOnRTI

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
@Override
public void connectOnRTI(String local_settings_designator) throws ConnectionFailed, 
InvalidLocalSettingsDesignator, UnsupportedCallbackModel, 
CallNotAllowedFromWithinCallback, RTIinternalError {

	this.hlamodule.connect(local_settings_designator);

}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:9,代码来源:SEEAbstractFederate.java

示例3: connect

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
protected void connect(String local_settings_designator) throws RTIinternalError, ConnectionFailed, 
InvalidLocalSettingsDesignator, UnsupportedCallbackModel, CallNotAllowedFromWithinCallback {

	logger.info("Connecting to HLA/RTI.");
	// Create the RTIambassador and Connect
	this.rtiamb = DKFRTIAmbassador.getInstance();

	// connect	
	try {
		rtiamb.connect(this.fedamb, CallbackModel.HLA_IMMEDIATE, local_settings_designator);
	} catch (AlreadyConnected e) {
		//ignore
	}

}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:16,代码来源:DKFHLAModule.java

示例4: connect

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
/**
   * @param federateReference a reference to a user programmed callback
   * @param callbackModel the type of callback
   * @param localSettingsDesignator the settings for the rti
   */
  public void connect(final FederateAmbassador federateReference, final CallbackModel callbackModel, final String localSettingsDesignator) throws ConnectionFailed, InvalidLocalSettingsDesignator, UnsupportedCallbackModel, AlreadyConnected, CallNotAllowedFromWithinCallback, RTIinternalError {
this.logger.trace("connect federateReference=" + federateReference.toString() + ", callbackModel=" + callbackModel.toString() + ", localSettingsDesignator=" + localSettingsDesignator);
try {
	this._rtiAmbassador.connect(federateReference, callbackModel, localSettingsDesignator);
} catch (ConnectionFailed | InvalidLocalSettingsDesignator | UnsupportedCallbackModel | AlreadyConnected | CallNotAllowedFromWithinCallback | RTIinternalError e) {
	this.logger.error("connect exception=" + e.getMessage());
	throw e;
}
  }
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:15,代码来源:IVCT_RTIambassador.java

示例5: connect

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
/**
 * @param federateReference federate reference
 * @param callbackModel callback model
 * @param localSettingsDesignator local settings designator
 */
public void connect(final FederateAmbassador federateReference, final CallbackModel callbackModel, final String localSettingsDesignator) {
    try {
        this.ivct_rti.connect(federateReference, callbackModel, localSettingsDesignator);
    }
    catch (ConnectionFailed | InvalidLocalSettingsDesignator | UnsupportedCallbackModel | AlreadyConnected | CallNotAllowedFromWithinCallback | RTIinternalError ex) {
        this.logger.error("TcBaseModel: connect: " + ex);
    }
}
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:14,代码来源:TcBaseModel.java

示例6: testJoinIntoFederationExecution

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
@Test
public void testJoinIntoFederationExecution() throws URISyntaxException, JsonParseException, JsonMappingException, IOException, ConnectionFailed, InvalidLocalSettingsDesignator, UnsupportedCallbackModel, CallNotAllowedFromWithinCallback, RTIinternalError, CouldNotCreateLogicalTimeFactory, InconsistentFDD, ErrorReadingFDD, CouldNotOpenFDD, SaveInProgress, RestoreInProgress, NotConnected, FederateNotExecutionMember, InvalidResignAction, OwnershipAcquisitionPending, FederateOwnsAttributes, FederateIsExecutionMember {

	ConfigurationFactory factory = new ConfigurationFactory();
	File confiuration = new File(getClass().getResource("/configuration.json").toURI());
	Configuration conf = factory.importConfiguration(confiuration);
	
	DKFAbstractFederateAmbassador ambassador = new DKFAbstractFederateAmbassador() {
		
	};
	
	DKFAbstractFederate federate = new DKFAbstractFederate(ambassador) {

		@Override
		protected void doAction() {
			// TODO Auto-generated method stub
			
		}
		
	};
	
	federate.configure(conf);
	federate.connectToRTI("crcHost=" + conf.getCrcHost() + "\ncrcPort=" +conf.getCrcPort());
	federate.joinFederationExecution();
	federate.diconnectFromRTI();
	
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:28,代码来源:DKFAbstractFederateTest.java

示例7: connectOnRTI

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
/**
 * Connects the SEE Federate on the SEE Federation
 * 
 * @param local_settings_designator represents the "local settings designator" string related to the specific
 * RTI vendor
 * <p>
 * For PITCH RTI the local_settings_designator parameter MUST be "crcHost=" + {crc_host} + "\ncrcPort=" + {crc_port}<br>
 * e.g. "crcHost=localhost\ncrcPort=8989"
 * <p>
 * For MAK RTI the local_settings_designator parameter MUST be an empty string<br>
 * e.g. ""
 * @throws RTIinternalError
 * @throws CallNotAllowedFromWithinCallback 
 * @throws UnsupportedCallbackModel 
 * @throws InvalidLocalSettingsDesignator 
 * @throws ConnectionFailed 
 * @throws NotConnected 
 * @throws FederateNotExecutionMember 
 */
public void connectOnRTI(String local_settings_designator) throws RTIinternalError, ConnectionFailed, InvalidLocalSettingsDesignator, UnsupportedCallbackModel, CallNotAllowedFromWithinCallback;
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:21,代码来源:SEEFederateInterface.java

示例8: connectToRTI

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
public void connectToRTI(String local_settings_designator) throws ConnectionFailed, InvalidLocalSettingsDesignator, UnsupportedCallbackModel, 
CallNotAllowedFromWithinCallback, RTIinternalError {

	this.hlamodule.connect(local_settings_designator);

}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:7,代码来源:DKFAbstractFederate.java

示例9: connectToRTI

import hla.rti1516e.exceptions.InvalidLocalSettingsDesignator; //导入依赖的package包/类
/**
 * Connects the HLA Federate on the HLA Federation
 * 
 * @param local_settings_designator represents the "local settings designator" string related to the specific
 * RTI vendor
 * <p>
 * For PITCH RTI the local_settings_designator parameter MUST be "crcHost=" + {crc_host} + "\ncrcPort=" + {crc_port}<br>
 * e.g. "crcHost=localhost\ncrcPort=8989"
 * <p>
 * For MAK RTI the local_settings_designator parameter MUST be an empty string<br>
 * e.g. ""
 * @throws RTIinternalError
 * @throws CallNotAllowedFromWithinCallback 
 * @throws UnsupportedCallbackModel 
 * @throws InvalidLocalSettingsDesignator 
 * @throws ConnectionFailed 
 * @throws NotConnected 
 * @throws FederateNotExecutionMember 
 */
public void connectToRTI(String local_settings_designator) throws RTIinternalError, ConnectionFailed, InvalidLocalSettingsDesignator, UnsupportedCallbackModel, CallNotAllowedFromWithinCallback;
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:21,代码来源:DKFFederateInterface.java


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