コード例 #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.");
 }