我是静脉新手,想使用它。我花时间学习了 omnetpp 和 SUMO。现在我可以成功使用两者。我还下载并安装了静脉,该示例运行良好。
现在我需要使用静脉构建我自己的应用程序。简单地说,我需要模拟一条直线道路,其中车辆正在移动并向单个 RSU 发送消息。
我找不到有关静脉或其示例的任何文档。任何人都可以帮助我知道我应该遵循哪些步骤来做到这一点?例如,应该创建哪些ned文件,如何创建汽车和RSU,如何设置每个节点的应用程序等。
我正在尝试 android O 中给出的 API 来固定小部件快捷方式,如
https://developer.android.com/guide/topics/appwidgets/index.html#Pinning
给出的示例代码是:
AppWidgetManager mAppWidgetManager = context.getSystemService(AppWidgetManager.class);
ComponentName myProvider = new ComponentName(context, MyAppWidgetProvider.class);
if (mAppWidgetManager.isRequestPinAppWidgetSupported()) {
// Create the PendingIntent object only if your app needs to be notified
// that the user allowed the widget to be pinned. Note that, if the pinning
// operation fails, your app isn't notified.
Intent pinnedWidgetCallbackIntent = new Intent( ... );
// Configure the intent so that your app's broadcast receiver gets
// the callback successfully. This callback …Run Code Online (Sandbox Code Playgroud)