本文整理汇总了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;