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


Java FederateServiceInvocationsAreBeingReportedViaMOM类代码示例

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


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

示例1: subscribe

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public void subscribe(Class interactionClass) throws RTIinternalError, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, InstantiationException, IllegalAccessException {
	
	InteractionClassModel icm = new InteractionClassModel(interactionClass);
	icm.addEntity(interactionClass.newInstance());
	icm.subscribe();
	this.subscribed.put(((Class<? extends InteractionClass>)interactionClass).getAnnotation(InteractionClass.class).name(), icm);
	this.mapInteractionClassHandleClass.put(icm.getInteractionClassHandle(), interactionClass);
}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:10,代码来源:InteractionClassModelManager.java

示例2: subscribe

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribe() throws FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress,
RestoreInProgress, FederateNotExecutionMember, NotConnected, RTIinternalError {

	if(status == ObjectModelStatus.INITIALIZED){

		rti_ambassador.subscribeInteractionClass(this.interactionClassHandle);
		status = ObjectModelStatus.SUBSCRIBED;
	}
	else{
		logger.error("You can't subscribe an uninitialized interaction!");
		throw new IllegalStateException("You can't subscribe an uninitialized interaction!");
	}
}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:14,代码来源:InteractionClassModel.java

示例3: subscribeInteraction

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@Override
@SuppressWarnings({ "rawtypes" })
public void subscribeInteraction(Class interactionClass) throws RTIinternalError, InstantiationException, IllegalAccessException, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, SubscribeException {

	if(interactionClassIsValid(interactionClass))
		this.hlamodule.subscribeInteractionObject(interactionClass);
	else{
		logger.error("Interaction: '"+ interactionClass +"' is not valid!");
		throw new SubscribeException("Interaction: '"+ interactionClass +"' is not valid!");
	}

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

示例4: subscribeInteractionObject

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void subscribeInteractionObject(Class interactionClass) throws RTIinternalError, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, InstantiationException, IllegalAccessException  {

	if(!fedamb.interactionClassModelIsAlreadySubscribed(interactionClass)){
		fedamb.subscribeInteractionClassModel(interactionClass);
		logger.info("The InteractionClass ' "+interactionClass+" ' has been subscribed.");
	}
	else
		logger.warn("The InteractionClass ' "+interactionClass+" ' is already subscribed.");
}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:11,代码来源:SEEHLAModule.java

示例5: subscribeInteractionObject

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void subscribeInteractionObject(Class interactionClass) throws RTIinternalError, NameNotFound, FederateNotExecutionMember, 
NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, 
InteractionClassNotDefined, SaveInProgress, RestoreInProgress, InstantiationException, 
IllegalAccessException  {

	if(!fedamb.interactionClassModelIsAlreadySubscribed(interactionClass)){
		fedamb.subscribeInteractionClassModel(interactionClass);
		logger.info("The InteractionClass '"+interactionClass+"' has been subscribed.");
	}
	else
		logger.warn("The InteractionClass '"+interactionClass+"' is already subscribed.");
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:14,代码来源:DKFHLAModule.java

示例6: subscribeInteraction

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void subscribeInteraction(Class interactionClass) throws RTIinternalError, InstantiationException, IllegalAccessException, 
NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, 
FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, 
RestoreInProgress, SubscribeException {

	if(interactionClassIsValid(interactionClass))
		this.hlamodule.subscribeInteractionObject(interactionClass);
	else{
		logger.error("Interaction: '"+ interactionClass +"' is not valid!");
		throw new SubscribeException("Interaction: '"+ interactionClass +"' is not valid!");
	}

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

示例7: subscribeInteractionClass

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribeInteractionClass(final InteractionClassHandle theClass) throws FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, FederateNotExecutionMember, NotConnected, RTIinternalError {
	this.logger.trace("subscribeInteractionClass theClass=" + theClass.toString());
	try {
		this._rtiAmbassador.subscribeInteractionClass(theClass);
	} catch (FederateServiceInvocationsAreBeingReportedViaMOM | InteractionClassNotDefined | SaveInProgress | RestoreInProgress | FederateNotExecutionMember | NotConnected | RTIinternalError e) {
		this.logger.error("subscribeInteractionClass exception=" + e.getMessage());
		throw e;
	}
}
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:10,代码来源:IVCT_RTIambassador.java

示例8: subscribeInteractionClassPassively

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribeInteractionClassPassively(final InteractionClassHandle theClass) throws FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, FederateNotExecutionMember, NotConnected, RTIinternalError {
	this.logger.trace("subscribeInteractionClassPassively theClass=" + theClass.toString());
	try {
		this._rtiAmbassador.subscribeInteractionClassPassively(theClass);
	} catch (FederateServiceInvocationsAreBeingReportedViaMOM | InteractionClassNotDefined | SaveInProgress | RestoreInProgress | FederateNotExecutionMember | NotConnected | RTIinternalError e) {
		this.logger.error("subscribeInteractionClassPassively exception=" + e.getMessage());
		throw e;
	}
}
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:10,代码来源:IVCT_RTIambassador.java

示例9: subscribeInteractionClassWithRegions

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribeInteractionClassWithRegions(final InteractionClassHandle theClass, final RegionHandleSet regions) throws FederateServiceInvocationsAreBeingReportedViaMOM, InvalidRegionContext, RegionNotCreatedByThisFederate, InvalidRegion, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, FederateNotExecutionMember, NotConnected, RTIinternalError {
    this.logger.trace("subscribeInteractionClassWithRegions theClass=" + theClass.toString() + ", regions=" + regions.toString());
    try {
    	this._rtiAmbassador.subscribeInteractionClassWithRegions(theClass, regions);
    } catch (FederateServiceInvocationsAreBeingReportedViaMOM | InvalidRegionContext | RegionNotCreatedByThisFederate | InvalidRegion | InteractionClassNotDefined | SaveInProgress | RestoreInProgress | FederateNotExecutionMember | NotConnected | RTIinternalError e) {
    	this.logger.error("subscribeInteractionClassWithRegions exception=" + e.getMessage());
    	throw e;
    }
}
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:10,代码来源:IVCT_RTIambassador.java

示例10: subscribeInteractionClassPassivelyWithRegions

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribeInteractionClassPassivelyWithRegions(final InteractionClassHandle theClass, final RegionHandleSet regions) throws FederateServiceInvocationsAreBeingReportedViaMOM, InvalidRegionContext, RegionNotCreatedByThisFederate, InvalidRegion, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, FederateNotExecutionMember, NotConnected, RTIinternalError {
    this.logger.trace("subscribeInteractionClassPassivelyWithRegions theClass=" + theClass.toString() + ", regions=" + regions.toString());
    try {
    	this._rtiAmbassador.subscribeInteractionClassPassivelyWithRegions(theClass, regions);
    } catch (FederateServiceInvocationsAreBeingReportedViaMOM | InvalidRegionContext | RegionNotCreatedByThisFederate | InvalidRegion | InteractionClassNotDefined | SaveInProgress | RestoreInProgress | FederateNotExecutionMember | NotConnected | RTIinternalError e) {
    	this.logger.error("subscribeInteractionClassPassivelyWithRegions exception=" + e.getMessage());
    	throw e;
    }
}
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:10,代码来源:IVCT_RTIambassador.java

示例11: subscribeInteractionClassModel

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
public void subscribeInteractionClassModel(Class interactionClass) throws RTIinternalError, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, InstantiationException, IllegalAccessException {
	interactionManager.subscribe(interactionClass);
}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:4,代码来源:SEEAbstractFederateAmbassador.java

示例12: subscribeInteractionClassModel

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
@SuppressWarnings("rawtypes")
public void subscribeInteractionClassModel(Class interactionClass) throws RTIinternalError, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, InstantiationException, IllegalAccessException {
	interactionManager.subscribe(interactionClass);
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:5,代码来源:DKFAbstractFederateAmbassador.java

示例13: subscribeInteraction

import hla.rti1516e.exceptions.FederateServiceInvocationsAreBeingReportedViaMOM; //导入依赖的package包/类
/**
 * Subscribes an InteractionObject
 * @param interactionClass
 * @throws RTIinternalError
 * @throws InstantiationException
 * @throws IllegalAccessException
 * @throws NameNotFound
 * @throws FederateNotExecutionMember
 * @throws NotConnected
 * @throws InvalidInteractionClassHandle
 * @throws FederateServiceInvocationsAreBeingReportedViaMOM
 * @throws InteractionClassNotDefined
 * @throws SaveInProgress
 * @throws RestoreInProgress
 * @throws SubscribeException 
 */
@SuppressWarnings("rawtypes")
public void subscribeInteraction(Class interactionClass) throws RTIinternalError, InstantiationException, IllegalAccessException, NameNotFound, FederateNotExecutionMember, NotConnected, InvalidInteractionClassHandle, FederateServiceInvocationsAreBeingReportedViaMOM, InteractionClassNotDefined, SaveInProgress, RestoreInProgress, SubscribeException;
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:19,代码来源:SEEFederateInterface.java


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