本文整理汇总了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
}
}
示例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);
}
示例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
}
}
示例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;
}
}
示例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);
}
}
示例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();
}
示例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;
示例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);
}
示例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;