當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。