CodingConnected.Traci.ProtocolTypes
1.0.0
dotnet add package CodingConnected.Traci.ProtocolTypes --version 1.0.0
NuGet\Install-Package CodingConnected.Traci.ProtocolTypes -Version 1.0.0
<PackageReference Include="CodingConnected.Traci.ProtocolTypes" Version="1.0.0" />
<PackageVersion Include="CodingConnected.Traci.ProtocolTypes" Version="1.0.0" />
<PackageReference Include="CodingConnected.Traci.ProtocolTypes" />
paket add CodingConnected.Traci.ProtocolTypes --version 1.0.0
#r "nuget: CodingConnected.Traci.ProtocolTypes, 1.0.0"
#addin nuget:?package=CodingConnected.Traci.ProtocolTypes&version=1.0.0
#tool nuget:?package=CodingConnected.Traci.ProtocolTypes&version=1.0.0
README for CodingConnected.Traci.ProtocolTypes
[toc]
中文
概述
该库用于 CodingConnected.Traci
与 Traci 进行 TCP 通信时, 将发送/接受的数据流依照协议解析为 SUMO 官方定义的 Traci 命令结构. 包括以下部分:
TraciResult
用于处理原始字节流, 得到结构化的数据结构.IStatusResponse
是TraciResult
显式实现的接口. 由于在向 Traci 发送一条指令时, Traci 一般会返回两条TraciResult
, 第一条用于告知指令是否成功, 第二条包含指令执行的具体结果, 该接口提供了一些属性, 用于方便地获得指令是否执行成功IAnswerFromSumo
是TraciResult
显式实现的接口. 和上述理由相同, 该接口提供了一些属性, 用于方便地获取指令的具体结果的数据类型和实际内容.TraciResponse
中包含了用于 Traci 订阅信息的数据结构. ⚠️向Traci订阅相关功能还未经测试⚠️TraciCommand
用于将数据包装成字节流发送给 Traci
English
OverView
This library is used when CodingConnected.Traci
communicates with Traci in TCP, the sent/accepted data stream is resolved to the official SUMO Traci command structure defined by SUMO according to the protocol. It includes the following parts:
TraciResult
is used to process the original byte stream and obtain a structured data structure.IStatusResponse
is an explicit interface implemented byTraciResult
. Since when sending an instruction to Traci, Traci will generally return twoTraciResult
. The first one is used to tell whether the instruction is successful, and the second one contains the specific result of the instruction execution. The interface provides some attributes to facilitate the obtaining whether the instruction is successfully executed.IAnswerFromSumo
is an interface that is explicitly implemented byTraciResult
. Same as the above reasons, this interface provides some properties for conveniently obtaining the data type and actual content of the specific results of the instruction.TraciResponse
contains the data structure for Traci subscription information. ⚠️Subscribe to Traci related functions have not been tested yet⚠️TraciCommand
is used to wrap data into byte streams and send it to Traci
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
-
net9.0
- CodingConnected.Traci.Constants (>= 1.0.0)
- CodingConnected.Traci.DataTypes (>= 1.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on CodingConnected.Traci.ProtocolTypes:
Package | Downloads |
---|---|
CodingConnected.Traci
Traci for .NET |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 142 | 3/17/2025 |
Break Change.
Split the original project into 3 parts.