public RTComponent(RTC_t r) { _r = r; RTC_onFinalize_listen(_r, onFinalize); RTC_onStartup_listen(_r, onStartup); RTC_onShutdown_listen(_r, onShutdown); RTC_onActivated_listen(_r, onActivated); RTC_onDeactivated_listen(_r, onDeactivated); RTC_onExecute_listen(_r, onExecute); RTC_onAborting_listen(_r, onAborting); RTC_onError_listen(_r, onError); RTC_onReset_listen(_r, onReset); RTC_onStateUpdate_listen(_r, onStateUpdate); RTC_onRateChanged_listen(_r, onRateChanged); }
public RTC.RTComponent createComponent(string identifier) { try { RTCFactoryMethod factory = factoryDictionary[identifier]; RTC_t rtc = Manager_createComponent(_m, identifier); RTComponent r = factory(rtc); r.initialize(); return(r); } catch (KeyNotFoundException ex) { System.Console.Write("Loading RTComponent (" + identifier + ") failed. Reason: Key Not Found."); return(null); } }
private static extern Result_t RTC_onRateChanged_listen(RTC_t rtc, RtcCallback callback);
private static extern Result_t RTC_onStateUpdate_listen(RTC_t rtc, RtcCallback callback);
private static extern Result_t RTC_onError_listen(RTC_t rtc, RtcCallback callback);
private static extern Result_t RTC_onAborting_listen(RTC_t rtc, RtcCallback callback);
private static extern Result_t RTC_onDeactivated_listen(RTC_t rtc, RtcCallback callback);
private static extern Result_t RTC_onShutdown_listen(RTC_t rtc, RtcCallback callback);
public MyRTComponent(RTC_t rtc) : base(rtc) { }
private static extern Result_t RTC_getParameter(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] name, [MarshalAs(UnmanagedType.LPArray)] byte[] value);
private static extern Result_t RTC_getParameterStringLength(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] name, out Int32 size);
private static extern Result_t RTC_updateParameters(RTC_t rtc, [MarshalAs(UnmanagedType.LPArray)] byte[] confsetName);
private static extern Result_t RTC_deletePort(RTC_t rtc, Port_t port);
private static extern Result_t RTC_addOutPort(RTC_t rtc, string name, Port_t port);
static RTComponent createMyRTComponent(RTC_t rtc) { return(new MyRTComponent(rtc)); }
private static extern Result_t RTC_onFinalize_listen(RTC_t rtc, RtcVoidCallback callback);
public RTMAdapter(RTC_t r) : base(r) { }