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


Java IllegalTimeArithmetic类代码示例

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


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

示例1: makeTARequest

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
protected void makeTARequest() throws LogicalTimeAlreadyPassed, InvalidLogicalTime, 
InTimeAdvancingState, RequestForTimeRegulationPending, 
RequestForTimeConstrainedPending, SaveInProgress, RestoreInProgress, 
FederateNotExecutionMember, NotConnected, RTIinternalError, IllegalTimeArithmetic {

	fedamb.setAdvancing(false);

	if(rtiamb != null){
		try {
			rtiamb.timeAdvanceRequest(time.nextTimeStep());
		} catch (InvalidLogicalTimeInterval e) {
			logger.error("Invalid LogicalTimeInterval.");
			e.printStackTrace();
		}
	}
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:17,代码来源:DKFHLAModule.java

示例2: makeTARequest

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
protected void makeTARequest() throws LogicalTimeAlreadyPassed, InvalidLogicalTime, 
InTimeAdvancingState, RequestForTimeRegulationPending, 
RequestForTimeConstrainedPending, SaveInProgress, RestoreInProgress, 
FederateNotExecutionMember, NotConnected, RTIinternalError, IllegalTimeArithmetic {

	fedamb.setAdvancing(false);

	if(rtiamb != null)
		rtiamb.timeAdvanceRequest(time.nextTimeStep());

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

示例3: nextTimeStep

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
protected HLAinteger64Time nextTimeStep() throws IllegalTimeArithmetic {
	this.logical_time = this.logical_time.add(lookaheadInterval);
	return logical_time;
}
 
开发者ID:SMASH-Lab,项目名称:SEE-HLA-Starter-Kit,代码行数:5,代码来源:Time.java

示例4: nextTimeStep

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public HLAfloat64Time nextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
	super.setupNextTimeStep();
	return (HLAfloat64Time) logical_time;
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:7,代码来源:Float64Time.java

示例5: setupNextTimeStep

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
@SuppressWarnings("unchecked")
public void setupNextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
	this.logical_time = this.logical_time.add(lookaheadInterval);
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:5,代码来源:TimeAbstract.java

示例6: nextTimeStep

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
@Override
@SuppressWarnings("unchecked")
public HLAinteger64Time nextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
	super.setupNextTimeStep();
	return (HLAinteger64Time) logical_time;
}
 
开发者ID:SMASH-Lab,项目名称:HLA-Development-Kit,代码行数:7,代码来源:Integer64Time.java

示例7: add

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAinteger64Time add(HLAinteger64Interval val)
throws IllegalTimeArithmetic;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:3,代码来源:HLAinteger64Time.java

示例8: subtract

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAinteger64Time subtract(HLAinteger64Interval val)
throws IllegalTimeArithmetic;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:3,代码来源:HLAinteger64Time.java

示例9: add

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAfloat64Interval add(HLAfloat64Interval addend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:5,代码来源:HLAfloat64Interval.java

示例10: subtract

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAfloat64Interval subtract(HLAfloat64Interval subtrahend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:5,代码来源:HLAfloat64Interval.java

示例11: add

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAinteger64Interval add(HLAinteger64Interval addend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:5,代码来源:HLAinteger64Interval.java

示例12: subtract

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAinteger64Interval subtract(HLAinteger64Interval subtrahend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:5,代码来源:HLAinteger64Interval.java

示例13: add

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAfloat64Time add(HLAfloat64Interval val)
throws IllegalTimeArithmetic;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:3,代码来源:HLAfloat64Time.java

示例14: subtract

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
HLAfloat64Time subtract(HLAfloat64Interval val)
throws IllegalTimeArithmetic;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:3,代码来源:HLAfloat64Time.java

示例15: add

import hla.rti1516e.exceptions.IllegalTimeArithmetic; //导入依赖的package包/类
/**
 * Returns a LogicalTimeInterval whose value is (this + addend). The returned value
 * shall be different from this value if the specified addend != 0.
 * @param addend interval to add.
 * @return new interval.
 * @throws IllegalTimeArithmetic
 * @throws InvalidLogicalTimeInterval
 */
U add(U addend)
   throws
   IllegalTimeArithmetic,
   InvalidLogicalTimeInterval;
 
开发者ID:MSG134,项目名称:IVCT_Framework,代码行数:13,代码来源:LogicalTimeInterval.java


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