public void OnReceiveUpdateAttributeValues(Hla.Rti1516.IObjectInstanceHandle instanceHandle, string methodName, object newValue) { name = methodName; val = newValue; Sxta.Rti1516.HLAAttributes.HLAobjectRoot obj = registedObjects[instanceHandle] as Sxta.Rti1516.HLAAttributes.HLAobjectRoot; if (log.IsDebugEnabled) { log.Debug("The method " + methodName + " has been called; new value:" + newValue + "; parameter type = " + newValue.GetType()); log.Debug("The object is " + obj); } }
public void OnReceiveCreatedNewObject(object newObject) { if (newObject is Sxta.Rti1516.HLAAttributes.HLAobjectRoot) { newObj = newObject as Sxta.Rti1516.HLAAttributes.HLAobjectRoot; registedObjects[newObj.InstanceHandle] = newObj; } if (log.IsDebugEnabled) { log.Debug("A new object has been created " + newObject + " with type:" + newObject.GetType().Name + " and fullname:" + newObject.GetType().FullName); } }
public void OnReceiveUpdateAttributeValues(IObjectInstanceHandle instanceHandle, IDictionary <string, object> methodNameValueMap) { if (log.IsDebugEnabled) { Sxta.Rti1516.HLAAttributes.HLAobjectRoot obj = registedObjects[instanceHandle] as Sxta.Rti1516.HLAAttributes.HLAobjectRoot; log.Debug("The object is " + obj); foreach (KeyValuePair <string, object> entry in methodNameValueMap) { log.Debug("The method " + entry.Key + " from object " + instanceHandle + " has been called; new value:" + entry.Value + "; parameter type = " + entry.Value.GetType()); } } }
public void OnReceiveCreatedNewObject(object newObject) { if (newObject is Sxta.Rti1516.HLAAttributes.HLAobjectRoot) { newObj = newObject as Sxta.Rti1516.HLAAttributes.HLAobjectRoot; registedObjects[newObj.InstanceHandle] = newObj; } if (log.IsDebugEnabled) log.Debug("A new object has been created " + newObject + " with type:" + newObject.GetType().Name + " and fullname:" + newObject.GetType().FullName); }