Пример #1
0
 @Override
 public void federationSynchronized(
     String synchronizationPointLabel, FederateHandleSet failedToSyncSet)
     throws FederateInternalError {
   if (_federationSynchronizedBarrier != null) {
     if (_federationSynchronizedBarrier.getSuppliedValue().equals(synchronizationPointLabel)) {
       _federationSynchronizedBarrier.lower(null);
     } else {
       _userInterface.post("�(4.10)federationSynchronized at:" + synchronizationPointLabel);
     }
   } else {
     _userInterface.post("ERROR: federationSynchronized with no barrier set");
   }
 }
Пример #2
0
 @Override
 public void synchronizationPointRegistrationSucceeded(String synchronizationPointLabel)
     throws FederateInternalError {
   if (_synchronizationPointRegistrationSucceededBarrier != null) {
     if (_synchronizationPointRegistrationSucceededBarrier
         .getSuppliedValue()
         .equals(synchronizationPointLabel)) {
       _synchronizationPointRegistrationSucceededBarrier.lower(null);
     } else {
       _userInterface.post(
           "�(4.7)synchronizationPointRegistrationSucceeded; label: " + synchronizationPointLabel);
     }
   } else {
     _userInterface.post("ERROR: synchronizationPointRegistrationSucceeded with no barrier set");
   }
 }
Пример #3
0
 @Override
 public void timeRegulationEnabled(LogicalTime theFederateTime) throws FederateInternalError {
   if (_enableTimeRegulationBarrier != null) {
     Object[] returnedTime = {theFederateTime};
     _enableTimeRegulationBarrier.lower(returnedTime);
   } else {
     _userInterface.post("ERROR: timeRegulationEnabled with no barrier set");
   }
 }