示例#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.");
 }