本文整理匯總了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();
}
}
}
示例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());
}
示例3: nextTimeStep
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
protected HLAinteger64Time nextTimeStep() throws IllegalTimeArithmetic {
this.logical_time = this.logical_time.add(lookaheadInterval);
return logical_time;
}
示例4: nextTimeStep
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
@Override
@SuppressWarnings("unchecked")
public HLAfloat64Time nextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
super.setupNextTimeStep();
return (HLAfloat64Time) logical_time;
}
示例5: setupNextTimeStep
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
@SuppressWarnings("unchecked")
public void setupNextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
this.logical_time = this.logical_time.add(lookaheadInterval);
}
示例6: nextTimeStep
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
@Override
@SuppressWarnings("unchecked")
public HLAinteger64Time nextTimeStep() throws IllegalTimeArithmetic, InvalidLogicalTimeInterval {
super.setupNextTimeStep();
return (HLAinteger64Time) logical_time;
}
示例7: add
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAinteger64Time add(HLAinteger64Interval val)
throws IllegalTimeArithmetic;
示例8: subtract
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAinteger64Time subtract(HLAinteger64Interval val)
throws IllegalTimeArithmetic;
示例9: add
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAfloat64Interval add(HLAfloat64Interval addend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
示例10: subtract
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAfloat64Interval subtract(HLAfloat64Interval subtrahend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
示例11: add
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAinteger64Interval add(HLAinteger64Interval addend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
示例12: subtract
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAinteger64Interval subtract(HLAinteger64Interval subtrahend)
throws
IllegalTimeArithmetic,
InvalidLogicalTimeInterval;
示例13: add
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAfloat64Time add(HLAfloat64Interval val)
throws IllegalTimeArithmetic;
示例14: subtract
import hla.rti1516e.exceptions.IllegalTimeArithmetic; //導入依賴的package包/類
HLAfloat64Time subtract(HLAfloat64Interval val)
throws IllegalTimeArithmetic;
示例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;