Esempio n. 1
0
        private void OnTimeAdvancedRequestMini(object sender, EventArgs e)
        {
            ILogicalTimeInterval lookahead = new DoubleValuedLogicalTimeInterval(0.1);
            ILogicalTimeIntervalFactory factory = ((XrtiExecutiveAmbassador)rtiAmbassador).LogicalTimeIntervalFactory;
            ILogicalTime time = rtiAmbassador.Federate.HLAlogicalTime.Add(lookahead);
            rtiAmbassador.TimeAdvanceRequest(time);

            OnDumpObjects(null, null);
        }
Esempio n. 2
0
        private void SetTimeRegulating(object sender, EventArgs e)
        {
            ILogicalTimeInterval lookahead = new DoubleValuedLogicalTimeInterval(1.0);
            ILogicalTimeIntervalFactory factory = ((XrtiExecutiveAmbassador)rtiAmbassador).LogicalTimeIntervalFactory;
            rtiAmbassador.EnableTimeRegulation(lookahead);

            OnDumpObjects(null, null);
        }