@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))); } }
@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"); } }
@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); }
@Override public void attributeOwnershipUnavailable( ObjectInstanceHandle theObject, AttributeHandleSet theAttributes) throws FederateInternalError { _userInterface.post( "�(7.9)attributeOwnershipUnavailable; object:" + theObject + ", attrs: " + theAttributes); }
@Override public void synchronizationPointRegistrationFailed( String synchronizationPointLabel, SynchronizationPointFailureReason reason) throws FederateInternalError { _userInterface.post( "�(4.7)synchronizationPointRegistrationFailed; label: " + synchronizationPointLabel); }
@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"); } }
@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"); } }
@Override public void confirmAttributeOwnershipAcquisitionCancellation( ObjectInstanceHandle theObject, AttributeHandleSet theAttributes) throws FederateInternalError { _userInterface.post( "�(7.14)confirmAttributeOwnershipAcquisitionCancellation; object:" + theObject + ", attrs: " + theAttributes); }
@Override public void provideAttributeValueUpdate( ObjectInstanceHandle theObject, AttributeHandleSet theAttributes, byte[] userSuppliedTag) throws FederateInternalError { _userInterface.post( "�(6.18)Provide attribute value update, object: " + theObject + ", attributes: " + theAttributes); }
@Override public void turnUpdatesOffForObjectInstance( ObjectInstanceHandle theObject, AttributeHandleSet theAttributes) throws FederateInternalError { _userInterface.post( "�(6.20)Turn updates off for object instance: " + theObject + ", attributes: " + theAttributes); }
@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); }
@Override public void requestDivestitureConfirmation( ObjectInstanceHandle theObject, AttributeHandleSet offeredAttributes) throws FederateInternalError { _userInterface.post( "�(7.5)attributeOwnershipDivestitureNotification; object:" + theObject + ", attrs: " + offeredAttributes); }
@Override public void attributeOwnershipAcquisitionNotification( ObjectInstanceHandle theObject, AttributeHandleSet securedAttributes, byte[] userSuppliedTag) throws FederateInternalError { _userInterface.post( "�(7.6)attributeOwnershipAcquisitionNotification; object:" + theObject + ", attrs: " + securedAttributes); }
@Override public void informAttributeOwnership( ObjectInstanceHandle theObject, AttributeHandle theAttribute, FederateHandle theOwner) throws FederateInternalError { _userInterface.post( "�(7.16)informAttributeOwnership; object:" + theObject + ", attr: " + theAttribute + ", owner: " + theOwner); }
@Override public void requestAttributeOwnershipAssumption( ObjectInstanceHandle theObject, AttributeHandleSet offeredAttributes, byte[] userSuppliedTag) throws FederateInternalError { _userInterface.post( "�(7.4)requestAttributeOwnershipAssumption; object:" + theObject + ", attrs: " + offeredAttributes + ", tag: " + renderTag(userSuppliedTag)); }
@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))); } }
@Override public void requestAttributeOwnershipRelease( ObjectInstanceHandle theObject, AttributeHandleSet candidateAttributes, byte[] userSuppliedTag) throws FederateInternalError { _userInterface.post( "�(7.10)requestAttributeOwnershipRelease; object:" + theObject + ", attrs: " + candidateAttributes + ", tag: " + renderTag(userSuppliedTag)); }
@Override public void federationRestored() throws FederateInternalError { _userInterface.post("�(4.21)Federation restored."); }
@Override public void federationNotSaved(SaveFailureReason reason) throws FederateInternalError { _userInterface.post("�(4.15)Federation not saved, reason: " + reason); }
@Override public void federationSaved() throws FederateInternalError { _userInterface.post("�(4.15)Federation saved."); }
@Override public void attributeIsOwnedByRTI(ObjectInstanceHandle theObject, AttributeHandle theAttribute) throws FederateInternalError { _userInterface.post( "�(7.16)Attribute owned by RTI, object: " + theObject + ", attribute: " + theAttribute); }
@Override public void turnInteractionsOn(InteractionClassHandle theHandle) throws FederateInternalError { _userInterface.post("�(5.12)turnInteractionsOn: " + theHandle); }
@Override public void federationNotRestored(RestoreFailureReason reason) throws FederateInternalError { _userInterface.post("�(4.21)Federation not restored."); }
@Override public void initiateFederateSave(String label, LogicalTime time) throws FederateInternalError { _userInterface.post("�(4.12)Initiate federate save."); }
@Override public void initiateFederateRestore( String label, String federateName, FederateHandle federateHandle) throws FederateInternalError { _userInterface.post("�(4.19)Initiate federate restore."); }
@Override public void attributesOutOfScope(ObjectInstanceHandle theObject, AttributeHandleSet theAttributes) throws FederateInternalError { _userInterface.post( "�(6.16)attributesOutOfScope; object:" + theObject + ", attrs: " + theAttributes); }
@Override public void stopRegistrationForObjectClass(ObjectClassHandle theClass) throws FederateInternalError { _userInterface.post("�(5.11)stopRegistrationForObjectClass:" + theClass); }
@Override public void requestRetraction(MessageRetractionHandle theHandle) throws FederateInternalError { _userInterface.post("�(8.22)Request retraction, handle: " + theHandle); }
@Override public void requestFederationRestoreSucceeded(String label) throws FederateInternalError { _userInterface.post("�(4.17)Request federation restore succeeded, label: " + label); }
@Override public void federationRestoreBegun() throws FederateInternalError { _userInterface.post("�(4.18)Federation restore begun."); }