/// <summary> /// Creates realtime object used for communication state /// </summary> public void CreateRealtimeObjects() { // create file transfer state object m_file_transfer_state_object = RealtimeObjectStorage.Default.ObjectCreate("FileTransferState"); m_file_transfer_name_member = m_file_transfer_state_object.MemberCreate("FileName", RealtimeObjectMember.MemberType.String); m_file_transfer_percentage_member = m_file_transfer_state_object.MemberCreate("FilePercentage", RealtimeObjectMember.MemberType.Int); m_file_transfer_state_object.ObjectCreateEnd(); }
/// <summary> /// Creates realtime object used for communication state /// </summary> public void CreateRealtimeObjects() { // create file transfer state object m_file_transfer_manager.CreateRealtimeObjects(); // create device heart beat object m_device_heartbeat_object = RealtimeObjectStorage.Default.ObjectCreate("DeviceHeartBeat"); m_cpu_load_member = m_device_heartbeat_object.MemberCreate("CPULoad", RealtimeObjectMember.MemberType.Int); m_device_heartbeat_object.ObjectCreateEnd(); // create communication state object m_communication_state_object = RealtimeObjectStorage.Default.ObjectCreate("DeviceCommunicationState"); m_device_connected_member = m_communication_state_object.MemberCreate("DeviceConnected", RealtimeObjectMember.MemberType.Int); m_device_name_member = m_communication_state_object.MemberCreate("DeviceName", RealtimeObjectMember.MemberType.String); // create members from communicator plug-ins for (int i = 0; i < m_communication_interfaces.Count; i++) { m_communication_interfaces[i].CreateRealtimeObjects(m_communication_state_object); } m_communication_state_object.ObjectCreateEnd(); }
/// <summary> /// Creates realtime object member used by this interface /// </summary> /// <param name="in_realtime_object"></param> public void CreateRealtimeObjects(RealtimeObject in_realtime_object) { m_upstream_member = in_realtime_object.MemberCreate("UDPUpStream", RealtimeObjectMember.MemberType.Int); m_downstream_member = in_realtime_object.MemberCreate("UDPDownStream", RealtimeObjectMember.MemberType.Int); }