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