Пример #1
0
 @Override
 public void receiveInteraction(
     InteractionClassHandle interactionClass,
     ParameterHandleValueMap theParameters,
     byte[] userSuppliedTag,
     OrderType sentOrdering,
     TransportationTypeHandle theTransport,
     LogicalTime theTime,
     OrderType receivedOrdering,
     SupplementalReceiveInfo receiveInfo)
     throws FederateInternalError {
   String order = (receivedOrdering == OrderType.RECEIVE) ? "receive" : "timestamp";
   _userInterface.post(
       "�(6.9)receiveInteraction "
           + interactionClass
           + ", order: "
           + order
           + ", transportation: "
           + theTransport
           + ", tag: "
           + renderTag(userSuppliedTag));
   _userInterface.post("  time: " + theTime);
   for (ParameterHandle handle : theParameters.keySet()) {
     _userInterface.post(
         "  param: " + handle + " value: " + new String(theParameters.get(handle)));
   }
 }
Пример #2
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");
   }
 }
Пример #3
0
 @Override
 public void removeObjectInstance(
     ObjectInstanceHandle theObject,
     byte[] userSuppliedTag,
     OrderType sentOrdering,
     LogicalTime theTime,
     OrderType receivedOrdering,
     SupplementalRemoveInfo removeInfo)
     throws FederateInternalError {
   _userInterface.post(
       "�(6.11)removeObjectInstance; object:"
           + theObject
           + ", tag: "
           + renderTag(userSuppliedTag));
   _userInterface.post("  time: " + theTime);
 }
Пример #4
0
 @Override
 public void attributeOwnershipUnavailable(
     ObjectInstanceHandle theObject, AttributeHandleSet theAttributes)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.9)attributeOwnershipUnavailable; object:" + theObject + ", attrs: " + theAttributes);
 }
Пример #5
0
 @Override
 public void synchronizationPointRegistrationFailed(
     String synchronizationPointLabel, SynchronizationPointFailureReason reason)
     throws FederateInternalError {
   _userInterface.post(
       "�(4.7)synchronizationPointRegistrationFailed; label: " + synchronizationPointLabel);
 }
Пример #6
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");
   }
 }
Пример #7
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");
   }
 }
Пример #8
0
 @Override
 public void confirmAttributeOwnershipAcquisitionCancellation(
     ObjectInstanceHandle theObject, AttributeHandleSet theAttributes)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.14)confirmAttributeOwnershipAcquisitionCancellation; object:"
           + theObject
           + ", attrs: "
           + theAttributes);
 }
Пример #9
0
 @Override
 public void provideAttributeValueUpdate(
     ObjectInstanceHandle theObject, AttributeHandleSet theAttributes, byte[] userSuppliedTag)
     throws FederateInternalError {
   _userInterface.post(
       "�(6.18)Provide attribute value update, object: "
           + theObject
           + ", attributes: "
           + theAttributes);
 }
Пример #10
0
 @Override
 public void turnUpdatesOffForObjectInstance(
     ObjectInstanceHandle theObject, AttributeHandleSet theAttributes)
     throws FederateInternalError {
   _userInterface.post(
       "�(6.20)Turn updates off for object instance: "
           + theObject
           + ", attributes: "
           + theAttributes);
 }
Пример #11
0
 @Override
 public void turnUpdatesOnForObjectInstance(
     ObjectInstanceHandle theObject, AttributeHandleSet theAttributes, String updateRateDesignator)
     throws FederateInternalError {
   _userInterface.post(
       "�(6.19)Turn updates on for object instance: "
           + theObject
           + ", attributes: "
           + theAttributes);
 }
Пример #12
0
 @Override
 public void requestDivestitureConfirmation(
     ObjectInstanceHandle theObject, AttributeHandleSet offeredAttributes)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.5)attributeOwnershipDivestitureNotification; object:"
           + theObject
           + ", attrs: "
           + offeredAttributes);
 }
Пример #13
0
  @Override
  public void attributeOwnershipAcquisitionNotification(
      ObjectInstanceHandle theObject, AttributeHandleSet securedAttributes, byte[] userSuppliedTag)
      throws FederateInternalError {

    _userInterface.post(
        "�(7.6)attributeOwnershipAcquisitionNotification; object:"
            + theObject
            + ", attrs: "
            + securedAttributes);
  }
Пример #14
0
 @Override
 public void informAttributeOwnership(
     ObjectInstanceHandle theObject, AttributeHandle theAttribute, FederateHandle theOwner)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.16)informAttributeOwnership; object:"
           + theObject
           + ", attr: "
           + theAttribute
           + ", owner: "
           + theOwner);
 }
Пример #15
0
 @Override
 public void requestAttributeOwnershipAssumption(
     ObjectInstanceHandle theObject, AttributeHandleSet offeredAttributes, byte[] userSuppliedTag)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.4)requestAttributeOwnershipAssumption; object:"
           + theObject
           + ", attrs: "
           + offeredAttributes
           + ", tag: "
           + renderTag(userSuppliedTag));
 }
Пример #16
0
  @Override
  public void reflectAttributeValues(
      ObjectInstanceHandle theObject,
      AttributeHandleValueMap theAttributes,
      byte[] userSuppliedTag,
      OrderType sentOrdering,
      TransportationTypeHandle theTransport,
      LogicalTime theTime,
      OrderType receivedOrdering,
      SupplementalReflectInfo reflectInfo)
      throws FederateInternalError {
    _userInterface.post(
        "�(6.7)reflectAttributeValues of obj "
            + theObject
            + ", tag: "
            + renderTag(userSuppliedTag));
    int attrCount = theAttributes.size();
    for (int a = 0; a < attrCount; ++a) {}

    for (AttributeHandle handle : theAttributes.keySet()) {
      _userInterface.post("  attr: " + handle + " value: " + new String(theAttributes.get(handle)));
    }
  }
Пример #17
0
 @Override
 public void requestAttributeOwnershipRelease(
     ObjectInstanceHandle theObject,
     AttributeHandleSet candidateAttributes,
     byte[] userSuppliedTag)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.10)requestAttributeOwnershipRelease; object:"
           + theObject
           + ", attrs: "
           + candidateAttributes
           + ", tag: "
           + renderTag(userSuppliedTag));
 }
Пример #18
0
 @Override
 public void federationRestored() throws FederateInternalError {
   _userInterface.post("�(4.21)Federation restored.");
 }
Пример #19
0
 @Override
 public void federationNotSaved(SaveFailureReason reason) throws FederateInternalError {
   _userInterface.post("�(4.15)Federation not saved, reason: " + reason);
 }
Пример #20
0
 @Override
 public void federationSaved() throws FederateInternalError {
   _userInterface.post("�(4.15)Federation saved.");
 }
Пример #21
0
 @Override
 public void attributeIsOwnedByRTI(ObjectInstanceHandle theObject, AttributeHandle theAttribute)
     throws FederateInternalError {
   _userInterface.post(
       "�(7.16)Attribute owned by RTI, object: " + theObject + ", attribute: " + theAttribute);
 }
Пример #22
0
 @Override
 public void turnInteractionsOn(InteractionClassHandle theHandle) throws FederateInternalError {
   _userInterface.post("�(5.12)turnInteractionsOn: " + theHandle);
 }
Пример #23
0
 @Override
 public void federationNotRestored(RestoreFailureReason reason) throws FederateInternalError {
   _userInterface.post("�(4.21)Federation not restored.");
 }
Пример #24
0
 @Override
 public void initiateFederateSave(String label, LogicalTime time) throws FederateInternalError {
   _userInterface.post("�(4.12)Initiate federate save.");
 }
Пример #25
0
 @Override
 public void initiateFederateRestore(
     String label, String federateName, FederateHandle federateHandle)
     throws FederateInternalError {
   _userInterface.post("�(4.19)Initiate federate restore.");
 }
Пример #26
0
 @Override
 public void attributesOutOfScope(ObjectInstanceHandle theObject, AttributeHandleSet theAttributes)
     throws FederateInternalError {
   _userInterface.post(
       "�(6.16)attributesOutOfScope; object:" + theObject + ", attrs: " + theAttributes);
 }
Пример #27
0
 @Override
 public void stopRegistrationForObjectClass(ObjectClassHandle theClass)
     throws FederateInternalError {
   _userInterface.post("�(5.11)stopRegistrationForObjectClass:" + theClass);
 }
Пример #28
0
 @Override
 public void requestRetraction(MessageRetractionHandle theHandle) throws FederateInternalError {
   _userInterface.post("�(8.22)Request retraction, handle: " + theHandle);
 }
Пример #29
0
 @Override
 public void requestFederationRestoreSucceeded(String label) throws FederateInternalError {
   _userInterface.post("�(4.17)Request federation restore succeeded, label: " + label);
 }
Пример #30
0
 @Override
 public void federationRestoreBegun() throws FederateInternalError {
   _userInterface.post("�(4.18)Federation restore begun.");
 }